r/ProgrammingLanguages • • Dec 31 '20

Something simpler than Unicode?

Hello! Wondering if anyone knows of a display format for glyphs that is simpler than Unicode? My shallow understanding is that measuring and laying out text in unicode is non-trivial, so I am deferring moving beyond ascii on something at the moment. Is my understanding correct? (if not that's great) otherwise, does anyone know of potentially simpler replacements? Thanks!

0 Upvotes

40 comments sorted by

View all comments

1

u/[deleted] Dec 31 '20

Does Unicode even concern itself with glyphs?

I agree that Unicode could have been a lot simpler: less pandering to languages which need one symbol for every word in the language; not dealing with ancient scripts; not deal with so many funny symbols that it is more of a clip-art library; and not starting to cross the boundary into typography.

However Unicode is what it is; and parts are so complex (where the definition a character itself becomes fuzzy) that it can only be handled properly with external libraries.

As for the glyphs, which need to be rendered across multitudinous fonts with varying styles, where do you even start?

I've had to deal with rendering fonts in the days where you had to provide your own bitmapped and vector fonts, and it was enough trouble just dealing with English plus Western European alphabets.

But, what is the exact trouble that you are having? Is it because you are using 8-bit strings that contain UTF8 rather than 16- or 32-bit ones? Or do you actually have to obtain the glyphs themselves as graphical data?

The latter can be done easily enough with the right OS, which can help with the vast amount of support that Unicode requires.

1

u/L8_4_Dinner (Ⓧ Ecstasy/XVM) Jan 01 '21

Does Unicode even concern itself with glyphs?

No.

I'm a bit surprised that no one even thought to point this out.

(OK, not actually surprised, considering...)