Non-English Character Rendering Fails
Closed this issue · 3 comments
hoshinojyunn commented
Describe the bug
When I enter non-English characters in vscode, the previewer fails to render. But it can be rendered successfully on typst.app. This problem is very clearly shown in the picture
VSCode version(Help -> About):
Version: 1.90.2 (user setup)
Commit: 5437499feb04f7a586f677b155b039bc2b3669eb
Date: 2024-06-18T22:34:26.404Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.22631
typst-preview extension version: v0.11.7
Logs:
typst-preview server log(Output Panel -> typst-preview):
[2024-06-29T16:35:12Z INFO typst_preview] Arguments: CliArguments {
preview: PreviewArgs {
data_plane_host: "127.0.0.1:0",
control_plane_host: "127.0.0.1:0",
enable_partial_rendering: true,
invert_colors: "never",
},
preview_mode: Document,
static_file_host: "127.0.0.1:0",
dont_open_in_browser: true,
inputs: [],
ignore_system_fonts: false,
font_paths: [],
root: Some(
"/opt/Doc",
),
input: "/opt/Doc/test.typ",
}
[2024-06-29T16:35:12Z INFO typst_preview] Previewer: typst actor spawned
[2024-06-29T16:35:12Z DEBUG typst_preview::actor::typst] TypstActor: waiting for message
[2024-06-29T16:35:12Z DEBUG typst_ts_compiler::service::compile] CompileActor: initialized
[2024-06-29T16:35:12Z DEBUG typst_ts_compiler::service::compile] CompileActor: fs event incoming None
[2024-06-29T16:35:12Z INFO typst_ts_compiler::service::diag::console] /test.typ: compiling ...
[2024-06-29T16:35:12Z DEBUG typst_ts_compiler::service::watch] start watching files...
[2024-06-29T16:35:12Z INFO typst_preview] Data plane server listening on: 127.0.0.1:60779
[2024-06-29T16:35:12Z INFO typst_ts_compiler::service::diag::console] /test.typ: Compilation succeeded in 2.443715ms
[2024-06-29T16:35:12Z DEBUG typst_ts_compiler::service::watch] watching "/opt/Doc/test.typ"
[2024-06-29T16:35:12Z DEBUG typst_ts_compiler::service::compile] CompileActor: fs event incoming Some(Update(FileChangeSet { removes: [], inserts: [("/opt/Doc/test.typ", FileSnapshot { mtime: SystemTime { tv_sec: 1719678074, tv_nsec: 423641130 }, content: FileContent { len: 93 } })] }))
[2024-06-29T16:35:12Z INFO typst_ts_compiler::service::diag::console] /test.typ: compiling ...
[2024-06-29T16:35:12Z INFO typst_ts_compiler::service::diag::console] /test.typ: Compilation succeeded in 38.323µs
[2024-06-29T16:35:12Z INFO typst_preview] Control plane server listening on: 127.0.0.1:60711
[2024-06-29T16:35:13Z INFO typst_preview] Static file server listening on: 127.0.0.1:60769
[2024-06-29T16:35:13Z INFO typst_preview] Peer address: 127.0.0.1:60716
[2024-06-29T16:35:13Z INFO typst_preview] New WebSocket connection: 127.0.0.1:60716
[2024-06-29T16:35:13Z DEBUG typst_preview::actor::editor] EditorActor: received message from editor: SyncMemoryFiles []
[2024-06-29T16:35:13Z DEBUG typst_preview::actor::typst] TypstActor: processing SYNC memory files: []
[2024-06-29T16:35:13Z DEBUG typst_ts_compiler::service::compile] CompileActor: memory event incoming
[2024-06-29T16:35:13Z INFO typst_ts_compiler::service::diag::console] /test.typ: compiling ...
[2024-06-29T16:35:13Z INFO typst_ts_compiler::service::diag::console] /test.typ: Compilation succeeded in 80.694µs
[2024-06-29T16:35:13Z INFO typst_preview] Peer address: 127.0.0.1:7485
[2024-06-29T16:35:13Z INFO typst_preview] New WebSocket connection: 127.0.0.1:7485
[2024-06-29T16:35:13Z DEBUG typst_preview::actor::render] OutlineRenderActor: waiting for message
[2024-06-29T16:35:13Z DEBUG typst_preview::actor::render] RenderActor: waiting for message
[2024-06-29T16:35:13Z DEBUG typst_preview::actor::render] RenderActor: has_full_render: true
[2024-06-29T16:35:13Z DEBUG typst_preview::actor::render] OutlineRenderActor: received message: RenderFullLatest
[2024-06-29T16:35:13Z DEBUG typst_preview::actor::render] OutlineRenderActor: sending outline
[2024-06-29T16:35:13Z DEBUG typst_preview::actor::render] OutlineRenderActor: waiting for message
[2024-06-29T16:35:13Z DEBUG typst_preview::actor::render] RenderActor: waiting for message
typst-preview client log(Help -> Toggle Developer Tools -> Console):
......
[Extension Host] skip extension-output file extension-output-mgt19937.typst-preview-#1-typst-preview
VM8:1336 render_in_window with partial rendering enabled window 2.4833333333333334 1537.1833333333334 47.18333333333334 635.7333333333333 1090.1833333333334 , patch scale 518
VM8:327 parse 0.00 ms, rerender 5.50 ms, total 5.50 ms
VM8:1751 updateCanvas start
VM8:1801 updateCanvas done 0.10000002384185791
VM8:1336 render_in_window with partial rendering enabled window 1.114018691588785 689.577570093458 21.166355140186916 594.8859813084113 489.05420560747666 , patch scale 518
VM8:327 parse 0.00 ms, rerender 4.50 ms, total 4.50 ms
VM8:1751 updateCanvas start
VM8:1801 updateCanvas done 0.30000001192092896
Enter-tainer commented
you dont have these fonts installed on your system.
the official webapp bundles noto cjk so it works.
Enter-tainer commented
you may want to directly run it in windows rather than in wsl.
hoshinojyunn commented
Oh, That makes sense. I try to run it in windows, and it works. Thank you