News for hackers. Stuff that matters.
Re:Show HN: Alter – convert text/code to an image by zo1 on Saturday November 26, 2016 @06:29AM (#13042995)
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.
Re:Show HN: Alter – convert text/code to an image by sanxiyn on Saturday November 26, 2016 @06:58AM (#13043081)
No, you are wrong. Unicode characters can be halfwidth or fullwidth even for monospaced fonts.
Re:Show HN: Alter – convert text/code to an image by zo1 on Saturday November 26, 2016 @05:37PM (#13046343)
Okay - I didn't know about those. I stand corrected.
Re:Show HN: Alter – convert text/code to an image by luchs on Saturday November 26, 2016 @08:42AM (#13043450)
Here's an example where it's broken: https://i.imgur.com/ugVBCJL.png
Re:Show HN: Alter – convert text/code to an image by kbr on Saturday November 26, 2016 @11:40AM (#13044476)
Would it be a bit better if I go through each line and instead of getting the length, get the actual width of it?