-
Notifications
You must be signed in to change notification settings - Fork 12
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
Spaces show up as blocks #33
Comments
Sure, I'll have a look. when you call ntk/lib/renderingcontext_2d.js Lines 144 to 146 in c623358
( "split into glyphs" is actually much difficult task in real life and would require harfbuzz library to du correctly, but for Latin scripts it mostly works juts by treating characters as glyphs ) When you specify font via something like `ctx.font = "Courier 10pt" this code is used: ntk/lib/renderingcontext_2d.js Lines 370 to 414 in c623358
"Spaces show up as blocks" problem is likely located somewhere in last two steps ^. |
Whenever a space character is rendered, it shows up as a block. I've tried lots of different fonts and I don't think it has to do with the fonts. The 2d context is causing this. Can we please have this fixed?
The text was updated successfully, but these errors were encountered: