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:
- Put your fonts in the
fonts
directory - Run
generate-database.sh
- Copy
Antisquare.java
andAntisquareData.java
to your app - In your app, call:
Antisquare.getSuitableFonts('ណ')
and receive as a result:"KhmerOS.ttf"
Extremely fast: 25000 calls to getSuitableFonts take 1 millisecond