From fe41a24534e1280f088835ea1813fa64120f4169 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 28 Sep 2021 12:53:58 +1000 Subject: Fix bad layout of monospace text on Cocoa by adding separate field monospaceCharacterWidth for width of monospaced characters. --- src/Style.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Style.h') diff --git a/src/Style.h b/src/Style.h index 23a1b265f..6cef6bb60 100644 --- a/src/Style.h +++ b/src/Style.h @@ -32,6 +32,7 @@ struct FontMeasurements { XYPOSITION descent = 1; XYPOSITION capitalHeight = 1; // Top of capital letter to baseline: ascent - internal leading XYPOSITION aveCharWidth = 1; + XYPOSITION monospaceCharacterWidth = 1; XYPOSITION spaceWidth = 1; bool monospaceASCII = false; int sizeZoomed = 2; -- cgit v1.2.3