News for hackers. Stuff that matters.
Re:Libschrift: A lightweight TrueType font rendering library by qa-tari on Tuesday April 21, 2020 @12:04PM (#22936181)
On the contrary, this library currently cannot deal with a composed code point e.g. for “LATIN CAPITAL LETTER U WITH DIAERESIS” either, as TrueType fonts tend to only contain glyphs for the base letter and diacritical marks, but no combinations of them. This affects most accented characters from Latin-1, but not unique ones like ¶ or Þ.
Re:Libschrift: A lightweight TrueType font rendering library by raphlinus on Tuesday April 21, 2020 @12:14PM (#22936279)
Most fonts will include some combinations (generally Latin-1), but not all that are encoded in Unicode. A proper shaping library such as Harfbuzz will navigate all possibilities, including composed and decomposed Unicode input, and fonts with both precomposed characters and separate glyphs for combining marks. Getting all this right would be highly challenging for a small, simple library, as it requires fine-grained knowledge of both Unicode and OpenType.