Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The display of characters to draw a table is misaligned if Chinese characters included #99521

Closed
Fang3s opened this issue Jun 6, 2020 · 1 comment
Assignees
Labels
font-rendering Font rendering issues *question Issue represents a question, should be posted to StackOverflow (VS Code)

Comments

@Fang3s
Copy link

Fang3s commented Jun 6, 2020

I used the following characters,

				┌──────────────┐
				│       │
				│  汉字啊  │-----> x
				│       │
				└──────────────┘
				    │
				    y
				+--------------+
				|              |
				|    汉字啊    |
				|              |
				+--------------+

it looks good in notepad++.
image

But, it doesn't look pretty in VSCode,

image

CPUs Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 x 3598)
GPU Status 2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled
Load (avg) undefined
Memory (System) 15.88GB (8.06GB free)
Process Argv  
Screen Reader no
VM 40%
Version: 1.45.1 (user setup)
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:27:35.169Z (3 wks ago)
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18362
@alexdima
Copy link
Member

alexdima commented Jun 9, 2020

This is entirely driven by the font.

If you want to have wide characters be 2x the width of half-width characters, then please use a font that defines that e.g. Inconsolata.

@alexdima alexdima closed this as completed Jun 9, 2020
@alexdima alexdima added *question Issue represents a question, should be posted to StackOverflow (VS Code) font-rendering Font rendering issues labels Jun 9, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jul 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
font-rendering Font rendering issues *question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants