Reduce the rescale threshold from 133% to 125%

This commit is contained in:
Kovid Goyal 2017-12-05 23:32:40 +05:30
parent 122ad8a1f8
commit 01324a7ad2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -350,7 +350,7 @@ render_bitmap(Face *self, int glyph_id, ProcessedBitmap *ans, unsigned int cell_
size_t extra = bitmap->width - max_width;
if (italic && extra < cell_width / 2) {
trim_borders(ans, extra);
} else if (rescale && self->is_scalable && extra > MAX(2, cell_width / 3)) {
} else if (rescale && self->is_scalable && extra > MAX(2, cell_width / 4)) {
FT_F26Dot6 char_width = self->char_width, char_height = self->char_height;
float ar = (float)max_width / (float)bitmap->width;
if (set_font_size(self, (FT_F26Dot6)((float)self->char_width * ar), (FT_F26Dot6)((float)self->char_height * ar), self->xdpi, self->ydpi, 0)) {