Re: Font question
- From: Behdad Esfahbod <behdad behdad org>
- To: ikorot earthlink net
- Cc: gtk-list gnome org
- Subject: Re: Font question
- Date: Tue, 14 Apr 2009 18:32:09 -0400
On 04/14/2009 06:23 PM, ikorot earthlink net wrote:
Is there any way I can get the list of the sizes for the particular face name?
No. The APIs I mentioned are the only way to list sizes for faces.
I'm trying to create a font property page interface (font selection dialog, but
for the property page).
When user selects the font (face name), I'd like to update the size selection list
with the available sizes for this particular font...
You need to track the families and faces yourself. You can check how GTK+
does it. Check gtk+/gtk/gtkfontsel.c
behdad
Thank you.
behdad
Or I will need to call some function to transfer the name to be the type of
"PangoFontFace"? Or I need to pass the "desc" variable to this function?
Also my guess is that pango_font_description_get_size() returns only one size
and not all available sizes for this specific font name. Am I right in this?
A font description does not necessarily correspond to any font on the system.
It's just a description. pango_font_description_get_size() simply returns
whatever was set using pango_font_description_set_size().
Yes, so my thinking is correct.
behdad
Thank you.
Thank you.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]