font: set pixman filter when re-scaling glyph

This commit is contained in:
Daniel Eklöf 2019-11-27 21:41:49 +01:00
parent c72893637c
commit e837e71179
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

1
font.c
View file

@ -572,6 +572,7 @@ glyph_for_wchar(const struct font *font, wchar_t wc, struct glyph *glyph)
pixman_double_to_fixed(1. / font->pixel_size_fixup), pixman_double_to_fixed(1. / font->pixel_size_fixup),
pixman_double_to_fixed(1. / font->pixel_size_fixup)); pixman_double_to_fixed(1. / font->pixel_size_fixup));
pixman_image_set_transform(pix, &scale); pixman_image_set_transform(pix, &scale);
pixman_image_set_filter(pix, PIXMAN_FILTER_BEST, NULL, 0);
} }
*glyph = (struct glyph){ *glyph = (struct glyph){