[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] [EXTERNAL] RE: get all glyphs
From: |
Dryden, Thomas |
Subject: |
Re: [ft] [EXTERNAL] RE: get all glyphs |
Date: |
Mon, 8 Apr 2019 22:48:41 +0000 |
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: address@hidden <address@hidden>
Sent: Monday, April 8, 2019 2:44 PM
To: Dryden, Thomas <address@hidden>; address@hidden
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 <address@hidden> On Behalf Of address@hidden
Sent: Monday, April 8, 2019 23:37
To: 'Dryden, Thomas' <address@hidden>; address@hidden
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 <address@hidden> On Behalf Of Dryden, Thomas
Sent: Monday, April 8, 2019 22:56
To: address@hidden
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
address@hidden
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
address@hidden
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=
- [ft] get all glyphs, Dryden, Thomas, 2019/04/08
- Re: [ft] get all glyphs, dudasl, 2019/04/08
- Re: [ft] get all glyphs, dudasl, 2019/04/08
- Re: [ft] [EXTERNAL] RE: get all glyphs,
Dryden, Thomas <=
- Re: [ft] [EXTERNAL] RE: get all glyphs, Lawrence D'Oliveiro, 2019/04/08
- Re: [ft] [EXTERNAL] RE: get all glyphs, armin, 2019/04/09
- Re: [ft] [EXTERNAL] RE: get all glyphs, dudasl, 2019/04/09
- Re: [ft] [EXTERNAL] RE: get all glyphs, Dryden, Thomas, 2019/04/09
- Re: [ft] [EXTERNAL] RE: get all glyphs, Werner LEMBERG, 2019/04/09
- Re: [ft] [EXTERNAL] RE: get all glyphs, Werner LEMBERG, 2019/04/09
- Re: [ft] [EXTERNAL] RE: get all glyphs, Werner LEMBERG, 2019/04/09
Re: [ft] get all glyphs, Lawrence D'Oliveiro, 2019/04/09