Skip to content

Commit

Permalink
[Fix] Font loading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cocor-au-lait committed Sep 19, 2021
1 parent d290ff9 commit 66f1070
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
Binary file added public/YuseiMagic-Regular.otf
Binary file not shown.
2 changes: 1 addition & 1 deletion src/lyrics/renderer.ts
Expand Up @@ -70,7 +70,7 @@ export default ({ scene }: Props): LyricRenderer => {
transparent: true,
});
const text = new Text();
text.font = "YuseiMagic-Regular.ttf";
text.font = "YuseiMagic-Regular.otf";
text.fontSize = window.innerWidth * 0.08;
text.textAlign = "center";
text.anchorX = "center";
Expand Down
2 changes: 1 addition & 1 deletion src/side-info/renderer.ts
Expand Up @@ -18,7 +18,7 @@ interface Props {

const createText = (material: THREE.Material) => {
const text = new Text();
text.font = "YuseiMagic-Regular.ttf";
text.font = "YuseiMagic-Regular.otf";
text.textAlign = "center";
text.anchorX = "center";
text.anchorY = "bottom";
Expand Down
1 change: 0 additions & 1 deletion src/textalive.ts
@@ -1,6 +1,5 @@
import { Player, Ease, IPlayerApp } from "textalive-app-api";

import { ThreeWrapper } from "./three";
import ControlPanel from "./control-panel";
import { safetyGetElementById } from "./utils";
import { musicList } from "./definition";
Expand Down

0 comments on commit 66f1070

Please sign in to comment.