Re: Font question

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

 



Behdad,

-----Original Message-----
>From: Behdad Esfahbod <behdad@xxxxxxxxxx>
>Sent: Aug 21, 2009 12:08 PM
>To: ikorot@xxxxxxxxxxxxx
>Cc: gtk-list@xxxxxxxxx
>Subject: Re: Font question
>
>On 08/20/2009 10:04 PM, ikorot@xxxxxxxxxxxxx wrote:
>> Hi, ALL,
>> Sorry to bring up this old thread, but I need to understand this...
>>
>> I'm trying to create a font property page to be used in my app
>> in the property page dialog.
>>
>> So I created a layout with the 3 list boxes for "Font Name", "Font Style"
>> and "Font Size". I can fill out the "Font Name" list box. Now, when I select
>> the string as a font name, I should retrieve all available sizes for this
>> particular font nameand re-fill the "Font Size" list box.
>>
>> I can get the font description using:
>>
>> PangoFontDescription *desc = pango_font_description_from_string( name );
>>
>> but after that I'm completely lost.
>>
>> I was thinking about using pango_font_face_list_sizes(), since this function
>> differentiate between "TrueType" and not "TrueType" font, so that I can use
>> a list of constant numbers, but I don't know how to pass PangoFontDescription
>> to this function.
>
>Hi,
>
>Right now the PangoFontFamily and PangoFontFace instances cannot be acquired 
>using a font description and can only be enumerated.  Sorry about that.

Does this mean that I can't do it currently using public Pango API?
But then is there another possibility, maybe with other library from GTK+?

Thank you.
>
>
>behdad
>
>
>
>> Any help will be really appreciated.
>>
>> Thank you.

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux