An open API service indexing awesome lists of open source software.

https://github.com/nicolas-raoul/antisquare

Dynamically find the right font to avoid missing glyphs (aka glyphlessness, replacement glyph, missing glyph squares, tofu, tofubake, トーフ, トーフ化け, 豆腐化け, 文字化け)
https://github.com/nicolas-raoul/antisquare

fonts glyphs java replacement-glyph

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

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