summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-01-30 04:52:28 +0100
committerMatthias Clasen <mclasen@redhat.com>2022-01-30 04:52:28 +0100
commit2f1c1f033eb81eb8a5d864f744d9ec95e66df991 (patch)
treeda5b3ab32ad341c8f855552795b57e0eafdf1f46
parentf4c319ba9093e9d8ecadc4baddf3a5f3caf945dd (diff)
downloadpango-2f1c1f033eb81eb8a5d864f744d9ec95e66df991.tar.gz
Fix up non-user font shaping
-rw-r--r--pango/shape.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/shape.c b/pango/shape.c
index 1a03ec1e..68d11eee 100644
--- a/pango/shape.c
+++ b/pango/shape.c
@@ -638,14 +638,14 @@ pango_shape_internal (const char *item_text,
g_return_if_fail (paragraph_text <= item_text);
g_return_if_fail (paragraph_text + paragraph_length >= item_text + item_length);
- if (PANGO_IS_HB_FONT (analysis->font))
+ if (PANGO_IS_USER_FONT (analysis->font))
+ pango_user_shape (item_text, item_length, analysis, glyphs, flags);
+ else if (analysis->font)
pango_hb_shape (item_text, item_length,
paragraph_text, paragraph_length,
analysis,
log_attrs, num_chars,
glyphs, flags);
- else if (PANGO_IS_USER_FONT (analysis->font))
- pango_user_shape (item_text, item_length, analysis, glyphs, flags);
else
glyphs->num_glyphs = 0;