summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-28 11:12:35 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-28 11:15:05 -0400
commit1fcd5ae9a9dfd3a7c5ccacd11ffd54a3ad93e643 (patch)
tree9521186e09c87931d780f4e6988f3e84035aa987 /pango/pango-context.c
parent94e5f18e80aeb95b14217ed7f7efa790eb48c3c9 (diff)
downloadpango-1fcd5ae9a9dfd3a7c5ccacd11ffd54a3ad93e643.tar.gz
Cosmetic
Improve the itemization code to have all variants take the same code paths, so we can do fixups in one place.
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r--pango/pango-context.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index d76b0ae2..2301138f 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -712,7 +712,10 @@ pango_context_get_metrics (PangoContext *context,
sample_str = pango_language_get_sample_string (language);
text_len = strlen (sample_str);
- items = pango_itemize_with_font (context, sample_str, 0, text_len, desc);
+ items = pango_itemize_with_font (context, context->base_dir,
+ sample_str, 0, text_len,
+ NULL, NULL,
+ desc);
update_metrics_from_items (metrics, language, sample_str, text_len, items);