4 ms·
Regarding point number 2, it should be noted that this only applies for non mono-spaced fonts. If you were using a mono-spaced font, then each character glyph u
by zo1 10y ago
Regarding point number 2, it should be noted that this only applies for non mono-spaced fonts. If you were using a mono-spaced font, then each character glyph uses the same physical canvas width as all others.
- sanxiyn 10y agoNo, you are wrong. Unicode characters can be halfwidth or fullwidth even for monospaced fonts.
- zo1 10y agoOkay - I didn't know about those. I stand corrected.
- luchs 10y agoHere's an example where it's broken: https://i.imgur.com/ugVBCJL.png https://i.imgur.com/ugVBCJL.png
- kbr 10y agoWould it be a bit better if I go through each line and instead of getting the length, get the actual width of it?