From 05388f8eaa9d58ef15657332f580ace1f30d2457 Mon Sep 17 00:00:00 2001 From: Hideyuki Nagase Date: Tue, 19 Apr 2022 16:43:33 -0700 Subject: [PATCH] Revert "enable font attribute fallback for international text (#22)" (#68) This reverts commit ed4f3bbbf5efbd5bde880704bc03497f2446c3f2. --- shared/cairo-util.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/shared/cairo-util.c b/shared/cairo-util.c index 5d1387aed..f558e1d0c 100644 --- a/shared/cairo-util.c +++ b/shared/cairo-util.c @@ -461,7 +461,6 @@ create_layout(cairo_t *cr, const char *title) { PangoLayout *layout; PangoFontDescription *desc; - PangoAttrList *attrs; layout = pango_cairo_create_layout(cr); if (title) { @@ -469,13 +468,6 @@ create_layout(cairo_t *cr, const char *title) desc = pango_font_description_from_string("Sans Bold 10"); pango_layout_set_font_description(layout, desc); pango_font_description_free(desc); - /* enable fallback attribute */ - attrs = pango_attr_list_new(); - if (attrs) { - pango_attr_list_insert(attrs, pango_attr_fallback_new(true)); - pango_layout_set_attributes(layout, attrs); - pango_attr_list_unref(attrs); - } } pango_layout_set_ellipsize(layout, PANGO_ELLIPSIZE_END); pango_layout_set_alignment(layout, PANGO_ALIGN_LEFT);