From 90e4d12f797cc1bf0ec9c000480f240b8bb5ba8c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 7 Sep 2022 15:59:23 -0700 Subject: [PATCH] only scale fonts to height --- shaders/cell.v.glsl | 5 ----- 1 file changed, 5 deletions(-) diff --git a/shaders/cell.v.glsl b/shaders/cell.v.glsl index 15e533da4..5460e4195 100644 --- a/shaders/cell.v.glsl +++ b/shaders/cell.v.glsl @@ -130,11 +130,6 @@ void main() { // The "+ 3" here is to give some wiggle room for fonts that are // BARELY over it. vec2 glyph_size_downsampled = glyph_size; - if (glyph_size.x > cell_size_scaled.x + 2) { - glyph_size_downsampled.x = cell_size_scaled.x; - glyph_size_downsampled.y = glyph_size.y * (glyph_size_downsampled.x / glyph_size.x); - glyph_offset_calc.y = glyph_offset.y * (glyph_size_downsampled.x / glyph_size.x); - } if (glyph_size_downsampled.y > cell_size_scaled.y + 2) { glyph_size_downsampled.y = cell_size_scaled.y; glyph_size_downsampled.x = glyph_size.x * (glyph_size_downsampled.y / glyph_size.y);