How can I check if the font file contains certain font?
See original GitHub issueI use the libgdx-freetype
extension to load .ttf font file.
I have multiple fonts files. And I want to load different fonts from different files.(For example,loading Japanese fonts from a Japanese font file,loading English fonts from a English font file)
But I did not find a way for libgdx-freetype to check whether the font glyph exists.
How can I do it? Thanks.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:10 (10 by maintainers)
Top Results From Across the Web
How do I find out which font contains a certain special ...
If so, select the content and the Word font menu will show you the source font on your computer that contains the necessary...
Read more >Is there a way to programmatically determine if a font file has a ...
Then, given a char toCheck that you want to check and a Font theFont to ... It checks the font to /// see...
Read more >How to check if a ttf file contains a certain character? [duplicate]
Using the command line, how can I check if a *.ttf file contains a certain character? I want to know if the font-file...
Read more >FontFaceSet.check() - Web APIs - MDN Web Docs
The check() method of the FontFaceSet returns whether all fonts in the given font list have been loaded and are available.
Read more >Determine whether a font file is OpenType format or TrueType ...
If a font contains TrueType based outlines (thus contains both glyf and loca tables) and doesn't contain OpenType feature related tables (e.g. ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed. #6703
Great :->
I noticed that freetype provides
FT_Get_Char_Index
function to check whether the font exists.I also found the
com.badlogic.gdx.graphics.g2d.freetype
providesgetCharIndex
method.This may only require a small modification.
Should I fix it? @Frosty-J @tommyettinger @lyze237
I am very happy to make the first contribution to this project. 😃