Skip to content

Commit 3f2db6c

Browse files
committed
add DrawText
1 parent 5de0eea commit 3f2db6c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

project/project.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ const HelloScene = () => {
1717
<FillFrame style={{ alignItems: "center", justifyContent: "center" }}>
1818
<DrawText
1919
text="Hello, world!"
20-
fontUrl="./NotoSerifCJKJP-Medium.ttf"
20+
fontUrl="assets/NotoSerifCJKJP-Medium.ttf"
21+
strokeWidth={2}
2122
durationFrames={seconds(2)}
2223
/>
2324
</FillFrame>

0 commit comments

Comments
 (0)