From eedcacab59d70ab7866983b5567ba98d05250309 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Tue, 13 Feb 2024 09:16:14 +0100 Subject: Get missing width for the font metrics --- lib/Graphics/Fountainhead/TrueType.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/Graphics/Fountainhead/TrueType.hs') diff --git a/lib/Graphics/Fountainhead/TrueType.hs b/lib/Graphics/Fountainhead/TrueType.hs index 03852b5..ec8bb59 100644 --- a/lib/Graphics/Fountainhead/TrueType.hs +++ b/lib/Graphics/Fountainhead/TrueType.hs @@ -276,7 +276,10 @@ data PostHeader = PostHeader , italicAngle :: Fixed32 -- ^ Italic angle in degrees , underlinePosition :: Int16 -- ^ Underline position , underlineThickness :: Int16 -- ^ Underline thickness - , isFixedPitch :: Word32 -- ^ Font is monospaced; set to 1 if the font is monospaced and 0 otherwise (N.B., to maintain compatibility with older versions of the TrueType spec, accept any non-zero value as meaning that the font is monospaced) + -- | Font is monospaced; set to 1 if the font is monospaced and 0 otherwise + -- (N.B., to maintain compatibility with older versions of the TrueType + -- spec, accept any non-zero value as meaning that the font is monospaced) + , isFixedPitch :: Word32 , minMemType42 :: Word32 -- ^ Minimum memory usage when a TrueType font is downloaded as a Type 42 font , maxMemType42 :: Word32 -- ^ Maximum memory usage when a TrueType font is downloaded as a Type 42 font , minMemType1 :: Word32 -- ^ Minimum memory usage when a TrueType font is downloaded as a Type 1 font -- cgit v1.2.3