Dynamically find the right font to avoid missing glyphs (aka glyphlessness, replacement glyph, missing glyph squares, tofu, tofubake, トーフ, トーフ化け, 豆腐化け, 文字化け)
Java Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin/fr/free/nrw
freely-distributable-fonts
gen/fr/free/nrw
lib
src/fr/free/nrw
test/fr/free/nrw
.classpath
.project
LICENSE
README.md
freely-distributable-fonts.txt
generate-database.sh
sample-log.txt

README.md

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