Re: Rendering Arabic text with Pango & Cairo VS Pango & FreeType
- From: Behdad Esfahbod <behdad behdad org>
- To: John Boncek <jboncek Hunter COM>
- Cc: gtk-i18n-list gnome org
- Subject: Re: Rendering Arabic text with Pango & Cairo VS Pango & FreeType
- Date: Thu, 03 Dec 2009 15:52:32 -0500
On 12/03/2009 03:28 PM, John Boncek wrote:
Owen Taylor wrote:
The , is supported in the string format of Pango font descriptions - it
is allowed so that you can represent font names that have components in
them that would be otherwise be interpreted as slant/weight/etc.
Arial Bold, 10
Arial, Bold 10
Probably would have been clearer to support quotes...
- Owen
Where, if at all, is this documented? I just looked thru the online Pango
doc that discusses font descriptions,
http://library.gnome.org/devel/pango/unstable/pango-Fonts.html, and couldn't
find anything related. The only use of commas it talks about is
comma-separated lists of families, etc.
From that same page:
PangoFontDescription * pango_font_description_from_string
(const char *str);
Creates a new font description from a string representation in the form
"[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]", where FAMILY-LIST is a comma separated
list of families optionally terminated by a comma,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pango_font_description_to_string ()
char * pango_font_description_to_string (const
PangoFontDescription *desc);
Creates a string representation of a font description. See
pango_font_description_from_string() for a description of the format of the
string representation. The family list in the string description will only
have a terminating comma if the last word of the list is a valid style option.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
behdad
John Boncek
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]