Skip to content

Commit

Permalink
Merge pull request #93 from pattern-x/feature/fix-font-path
Browse files Browse the repository at this point in the history
Fix font path error
  • Loading branch information
pattern-x committed Jun 11, 2023
2 parents 0090090 + d4329ae commit 0b86f03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/demo/bim_2_overlay_with_dxf.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
toolbar.updateMenu(ToolbarMenuId.BimTree, { visible: false });

// font file is needed for loading dxf
// const fontFiles = ["three/fonts/Microsoft_YaHei_Regular.typeface.json"];
// const fontFiles = ["./demo/three/fonts/Microsoft_YaHei_Regular.typeface.json"];
const fontFiles = ["./demo/three/fonts/hztxt.shx", "./demo/three/fonts/simplex.shx"];
await viewer.setFont(fontFiles);

Expand Down
2 changes: 1 addition & 1 deletion public/demo/dxf_3.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
};
const viewer = new DxfViewer(config);
// const fontFiles = ["three/fonts/Microsoft_YaHei_Regular.typeface.json"];
// const fontFiles = ["./demo/three/fonts/Microsoft_YaHei_Regular.typeface.json"];
const fontFiles = ["./demo/three/fonts/hztxt.shx", "./demo/three/fonts/simplex.shx"];
await viewer.setFont(fontFiles);
window.viewer = viewer;
Expand Down
2 changes: 1 addition & 1 deletion public/demo/empty_dxf_project.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
},
};
const viewer = new DxfViewer(config);
// const fontFiles = ["three/fonts/Microsoft_YaHei_Regular.typeface.json"];
// const fontFiles = ["./demo/three/fonts/Microsoft_YaHei_Regular.typeface.json"];
const fontFiles = ["./demo/three/fonts/hztxt.shx", "./demo/three/fonts/simplex.shx"];
await viewer.setFont(fontFiles);
window.viewer = viewer;
Expand Down

0 comments on commit 0b86f03

Please sign in to comment.