freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft] get all glyphs


From: Dryden, Thomas
Subject: [ft] get all glyphs
Date: Mon, 8 Apr 2019 20:55:37 +0000

I'm attempting to extract all glyphs from a TTF in order to create a table of 
each glyph's width. I'm using a Chinese TTF, that reports it has 36k+ glyphs 
(via face->num_glyphs). When I use the following code, I only get 497 glyphs. 
Clearly, I'm doing something wrong... Any ideas?

Thanks,
-Thomas

        charcode = FT_Get_First_Char( Face, &gindex );
        while ( gindex != 0 )
        {
            printf("count: %d, charcode: 0x%X, gindex: %d\n", count, charcode, 
gindex);
            charcode = FT_Get_Next_Char( Face, charcode, &gindex );
            count++;
        }
________________________________

Please be advised that this email may contain confidential information. If you 
are not the intended recipient, please notify us by email by replying to the 
sender and delete this message. The sender disclaims that the content of this 
email constitutes an offer to enter into, or the acceptance of, any agreement; 
provided that the foregoing does not invalidate the binding effect of any 
digital or other electronic reproduction of a manual signature that is included 
in any attachment.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]