InFeeo
Global
technology-news
New
Language
Profile channel

@MrX

No bio yet.

Since 30.05.2026

My 11-year-old font bug(play.google.com)
Back in time I used to make a stupid little font called Unison. It was a bitmap-vector hybrid font defined by text-based font description files which then get compiled by Python script. During the development of Unison, I had so frustrating bug that I had to write this comment in addition to its workaround: def custom_sort_key((name, _)): # what, the, real, fuck. # it seems that Uniscribe has some bug with Hangul and possibly more scripts: # some characters, when they are located in specific glyph indices, are correctly # mapped via ScriptGetCMap but considered to be missing via ScriptShape. # combined with SSA_FALLBACK it causes the wrong *and* inconsistent fallback behavior. # given that the range of those indices abruptly end with 2^n boundaries, # I strongly suspect that this is something to do with the internal lookup mechanism. # for now, reorder problematic scripts to (empirically) avoid the problem... *sigh* if not name.startswith('uni'): return (2, name) try: c = int(name[3:], 16) except ValueError: return (2, name) return (0 if 0x1100