jmecn / jme3-freetype-font

freetype font support for jme3
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

集成harfbuzz,实现文本到字形的转换。 #2

Open jmecn opened 3 months ago

jmecn commented 3 months ago

当两个或多个单独的字符组合到一起的时候,可能就变成了另外的字符。这个字符可能并没有对应的 Unicode 码位。

这意味着必须修改 BitmapText 的实现,因为它是以 char 为单位来存储和渲染的。至少也需要2个映射:

String -> codepoints -> glyphIndex

https://learn.microsoft.com/en-us/globalization/fonts-layout/text-layout