diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-08-28 11:12:35 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-08-28 11:15:05 -0400 |
commit | 1fcd5ae9a9dfd3a7c5ccacd11ffd54a3ad93e643 (patch) | |
tree | 9521186e09c87931d780f4e6988f3e84035aa987 /pango/pango-context.c | |
parent | 94e5f18e80aeb95b14217ed7f7efa790eb48c3c9 (diff) | |
download | pango-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.c | 5 |
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); |