mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-11 02:59:40 +02:00
Dont abort for too small scaled font sizes
This commit is contained in:
@@ -837,7 +837,7 @@ effective_scale(RunFont rf) {
|
||||
|
||||
static float
|
||||
scaled_cell_dimensions(RunFont rf, unsigned *width, unsigned *height) {
|
||||
float frac = effective_scale(rf);
|
||||
float frac = MAX(effective_scale(rf), 4.0f / *width);
|
||||
*width = (unsigned)ceilf(frac * *width);
|
||||
*height = (unsigned)ceilf(frac * *height);
|
||||
return frac;
|
||||
|
||||
Reference in New Issue
Block a user