Skip to content

Commit

Permalink
Fixed wrong font used in AnimatedTextOnPath (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrfalch authored Jun 14, 2022
1 parent 4daea3b commit b61b364
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/src/Examples/Animation/AnimateTextOnPath.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ import {
import { AnimationDemo, Padding } from "./Components";

const ExampleHeight = 60;
const Font = require("../../assets/SF-Mono-Semibold.otf");

export const AnimateTextOnPath = () => {
const { width } = useWindowDimensions();

const font = useFont("helvetica", 14);
const font = useFont(Font, 12);

// Create a progress going from 0..1 and back
const progress = useLoop({
Expand Down

0 comments on commit b61b364

Please sign in to comment.