Thanks Laco,
I did try FT_Load_Glyph as well. The only problem is, I also need to know the 
character code. I don't know how to get the character code from the slot??
=Thomas

-----Original Message-----
From: [email protected] <[email protected]> 
Sent: Monday, April 8, 2019 2:44 PM
To: Dryden, Thomas <[email protected]>; [email protected]
Subject: [EXTERNAL] RE: [ft] get all glyphs

CAUTION: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.



Note: Consider use FT_Load_Glyph to enumerate all glyphs, i tis slow.

- Laco.

-----Original Message-----
From: Freetype <[email protected]> On 
Behalf Of [email protected]
Sent: Monday, April 8, 2019 23:37
To: 'Dryden, Thomas' <[email protected]>; [email protected]
Subject: Re: [ft] get all glyphs

Hello Thomas,

>From documentation about FT_Get_First_Char:

Return the first character code in the current charmap of a given face, ...

This mean you get only trough glyphs in current charmap. Try use FT_Load_Glyph.

- Laco.

-----Original Message-----
From: Freetype <[email protected]> On 
Behalf Of Dryden, Thomas
Sent: Monday, April 8, 2019 22:56
To: [email protected]
Subject: [ft] get all glyphs

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.
_______________________________________________
Freetype mailing list
[email protected]
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.nongnu.org_mailman_listinfo_freetype&d=DwICAg&c=YEQWdgm3lcu5w_Y3fWOQZUGtAhl_lImuPlnxuD4zIqo&r=ao7BAPdmdclRiYQx-EzSVZm51kpzkM78a1fIFHS4FxU&m=haqWp0erLLrNAaMOdP2wtixLOyCJL35z0z2aeFg3bDY&s=oJ9Nxt-AliepwxPHOYBaNKriHLH7o2rK9fvIB8cUfGE&e=


_______________________________________________
Freetype mailing list
[email protected]
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.nongnu.org_mailman_listinfo_freetype&d=DwICAg&c=YEQWdgm3lcu5w_Y3fWOQZUGtAhl_lImuPlnxuD4zIqo&r=ao7BAPdmdclRiYQx-EzSVZm51kpzkM78a1fIFHS4FxU&m=haqWp0erLLrNAaMOdP2wtixLOyCJL35z0z2aeFg3bDY&s=oJ9Nxt-AliepwxPHOYBaNKriHLH7o2rK9fvIB8cUfGE&e=


_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to