Skip to content

Commit

Permalink
Revert "enable font attribute fallback for international text (#22)"
Browse files Browse the repository at this point in the history
This reverts commit ed4f3bb.
  • Loading branch information
hideyukn88 authored Apr 19, 2022
1 parent 7fe0231 commit 2ff3ef7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions shared/cairo-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,21 +461,13 @@ create_layout(cairo_t *cr, const char *title)
{
PangoLayout *layout;
PangoFontDescription *desc;
PangoAttrList *attrs;

layout = pango_cairo_create_layout(cr);
if (title) {
pango_layout_set_text(layout, title, -1);
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);
Expand Down

0 comments on commit 2ff3ef7

Please sign in to comment.