cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Font file. How get number of glyphs
Font file. How get number of glyphs
Jan 26, 2014 at 9:25am UTC
ndsoft
(2)
Hallo,
How get number of the glyphs from a font file (.ttf)?
Language C++.
Thanks
Jan 26, 2014 at 10:51pm UTC
long double main
(999)
You could use a library such as FreeType (
http://freetype.org/
) to load the font and then find out how many glyphs it has (there should be some way to do it; you may need to do some searching around).
I see some mention of it here (#4):
http://freetype.org/freetype2/docs/tutorial/step1.html
(You'll need to download/compile the library first, of course.)
Jan 27, 2014 at 11:35am UTC
ndsoft
(2)
Thanks, I believe it's good!
Topic archived. No new replies allowed.