mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-29 12:21:58 +00:00
Reduce the rescale threshold from 133% to 125%
This commit is contained in:
parent
122ad8a1f8
commit
01324a7ad2
1 changed files with 1 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue