summaryrefslogtreecommitdiff
path: root/pango/pangox-fontmap.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-03-25 20:22:52 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-03-25 20:22:52 +0000
commitc49ee1c9c847805c93a5e4f40df3a9a26ab15b41 (patch)
treedf14bb99004d8c102a3e055f6f4579bd12e5bbef /pango/pangox-fontmap.c
parent991bd0cc7f1d7d28e2a10219793dd6a383c49ae8 (diff)
downloadpango-c49ee1c9c847805c93a5e4f40df3a9a26ab15b41.tar.gz
Rewrite average_digit_width computation to go through the same shaping
Mon Mar 25 14:52:29 2002 Owen Taylor <otaylor@redhat.com> * pango/pangox.c (pango_x_font_get_metrics): Rewrite average_digit_width computation to go through the same shaping hack as the average_char_width code. (Part of #53425) * pango/pangox.c (pango_x_font_describe): Implement except for results of pango_x_font_load(). * pango/pangox.c (pango_x_load_font): Document as "don't use". * pango/pangox.[ch] (pango_x_load_font): Add missing const.
Diffstat (limited to 'pango/pangox-fontmap.c')
-rw-r--r--pango/pangox-fontmap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/pango/pangox-fontmap.c b/pango/pangox-fontmap.c
index 79c332e2..52db3e77 100644
--- a/pango/pangox-fontmap.c
+++ b/pango/pangox-fontmap.c
@@ -1536,12 +1536,12 @@ pango_x_face_get_coverage (PangoXFace *xface,
g_hash_table_insert (coverage_hash, map_entry->info->id, coverage);
}
- font_level = pango_coverage_get (coverage, ch);
- if (font_level == PANGO_COVERAGE_EXACT && !map_entry->is_exact)
- font_level = PANGO_COVERAGE_APPROXIMATE;
-
- if (font_level != PANGO_COVERAGE_NONE)
- pango_coverage_set (result, ch, font_level);
+ font_level = pango_coverage_get (coverage, ch);
+ if (font_level == PANGO_COVERAGE_EXACT && !map_entry->is_exact)
+ font_level = PANGO_COVERAGE_APPROXIMATE;
+
+ if (font_level != PANGO_COVERAGE_NONE)
+ pango_coverage_set (result, ch, font_level);
}
}