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, トーフ, トーフ化け, 豆腐化け, 文字化け)
- Host: GitHub
- URL: https://github.com/nicolas-raoul/antisquare
- Owner: nicolas-raoul
- License: lgpl-3.0
- Created: 2012-03-13T02:08:48.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2022-05-09T19:41:54.000Z (about 4 years ago)
- Last Synced: 2024-06-11T19:19:24.262Z (about 2 years ago)
- Topics: fonts, glyphs, java, replacement-glyph
- Language: Java
- Homepage:
- Size: 924 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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