diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-07-31 18:42:35 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-07-31 18:42:35 +0000 |
commit | c506f17f0155956d90a506be3cc1b33f3618af64 (patch) | |
tree | bb8e62334f6143f9f3e190a080be4c6a5e658f86 /pango/pangox.c | |
parent | 682109791d6b704d169aca87c1c0f4dc0dace9df (diff) | |
download | pango-c506f17f0155956d90a506be3cc1b33f3618af64.tar.gz |
Make charset ordering more important than ordering in the font
Wed Jul 31 14:41:07 2002 Owen Taylor <otaylor@redhat.com>
* pango/pangox.c (pango_x_list_subfonts): Make charset
ordering more important than ordering in the font
specfication, and document the previously undocumented
ordering. (#88562, Brian Yuan.)
Diffstat (limited to 'pango/pangox.c')
-rw-r--r-- | pango/pangox.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pango/pangox.c b/pango/pangox.c index d64d13fe..72627e6c 100644 --- a/pango/pangox.c +++ b/pango/pangox.c @@ -1086,7 +1086,8 @@ pango_x_insert_subfont (PangoFont *font, const char *xlfd) * @subfont_charsets: location to store a pointer to an array of subfont IDs for each found subfont; * the result must be freed using g_free(). * - * Lists the subfonts of a given font. + * Lists the subfonts of a given font. The result is ordered first by charset, + * and then within each charset, by the order of fonts in the font specification. * * Return value: length of the arrays stored in @subfont_ids and * @subfont_charsets. @@ -1164,8 +1165,8 @@ pango_x_list_subfonts (PangoFont *font, n_subfonts = 0; - for (i=0; i<xfont->n_fonts; i++) - for (j=0; j<n_charsets; j++) + for (j=0; j<n_charsets; j++) + for (i=0; i<xfont->n_fonts; i++) if (subfont_lists[j][i]) { (*subfont_ids)[n_subfonts] = subfont_lists[j][i]; |