[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] query font sizes
From: |
James Walker-Hall |
Subject: |
Re: [ft-devel] query font sizes |
Date: |
Wed, 26 Nov 2008 18:45:12 +0100 |
hi
thanks for your reply!
ive tried that already: but num_fixed_sizes always reports 0! even with
arial.
FT_Face face;
2) i also tried the following, (with this quick hack code)...
FT_Face face;
FT_ListNode size = face->sizes_list.head;
while (size)
{
trace("size",((FT_Bitmap_Size*)size->data)->height);
size = size->next;
}
but this gives really meaningless figures. so i assume the pointer is not
valid.
can you explain further?
thank you
james
----- Original Message -----
From: <address@hidden>
To: "jameswh77" <address@hidden>
Cc: <address@hidden>
Sent: Wednesday, November 26, 2008 6:31 PM
Subject: Re: [ft-devel] query font sizes
> Hi,
>
> On Wed, 26 Nov 2008 08:57:47 -0800 (PST)
> jameswh77 <address@hidden> wrote:
>>im using freetype for rendering and its working fine. however i would
>>like
>>to query the list of available sizes which the font has. for example
>>arial
>>has 8,9,10,11,14,16,18 etc etc. is it possible to enumurate these? when
>>i
>>load arial, the "num_fixed_sizes" is 0. ive tried enumarating the
>>face->sizes_list too, but i cant get any useful data out of this.
>
> Excuse me, I guess you're asking about how to query
> the list of available "bitmap" sizes (in pixel) in
> given TrueType font. If so, please check
> face->num_fixed_sizes and face->available_sizes.
>
> Regards,
> mpsuzuki
>