3 ms·
Printing a single character to the screen; It used to be: - write a byte, maybe just write it to a byte in screen memory Now: - Oh it's UTF, how ma
by trebligdivad 5y ago
Printing a single character to the screen;
It used to be:
- write a byte, maybe just write it to a byte in screen memory
Now:
- Oh it's UTF, how many bytes, decode to find the glyph
- find a font with it in
- render it somewhere
- gets composited
- and antialiased
- or was it an emoji and needs multiple colours?
- unnouinceput 5y agoExcept before, poor Asian, Arabic and basically any other than Latin languages could not print anything to the screen. Nowadays every single language, real or invented, has Unicode characters and all you have to do is call an API be done.
- trebligdivad 5y agoYeh, as I remember they used to have their own hacks for it; what was really hard was mixing languages in a single program or document.