Supporting complex text layout with OpenType fonts in Android

后端 未结 2 1078
野性不改
野性不改 2020-12-06 16:01

What I would like

I would like to put an OpenType font in my assets folder and use Typeface.createFromAsset to render Unicode text in my Android appli

2条回答
  •  甜味超标
    2020-12-06 16:25

    If you want to use Harfbuzz to do this, I have written a simple guide to implementing a text shaper using Harfbuzz: http://www.simon-cozens.org/content/duffers-guide-fontconfig-and-harfbuzz

    That should get you from font selection to knowing which glyphs should be used and where to put them in the output.

提交回复
热议问题