Skip to content

About

Dynamically find the right font to avoid missing glyphs (aka glyphlessness, replacement glyph, missing glyph squares, tofu, tofubake, トーフ, トーフ化け, 豆腐化け, 文字化け)

Topics

Resources

Stars

7 stars

Watchers

1 watching

Forks

Repository files navigation

Do some of your users see white squares like □ ? Antisquare helps you avoid those squares by telling you which font is appropriate to display a given character (among the fonts you choose to embed).

Usage:

  1. Put your fonts in the fonts directory
  2. Run generate-database.sh
  3. Copy Antisquare.java and AntisquareData.java to your app
  4. In your app, call: Antisquare.getSuitableFonts('ណ') and receive as a result: "KhmerOS.ttf"

Extremely fast: 25000 calls to getSuitableFonts take 1 millisecond

About

Dynamically find the right font to avoid missing glyphs (aka glyphlessness, replacement glyph, missing glyph squares, tofu, tofubake, トーフ, トーフ化け, 豆腐化け, 文字化け)

Topics

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages