From 6b295b2d3f0a58dd539234154b47e0604990bc2c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 1 Nov 2017 20:23:52 -0400 Subject: [PATCH] And fixed a comment placeholder (and typo) and reformatted it slightly. --- doc/export/fonttraits.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/export/fonttraits.m b/doc/export/fonttraits.m index 1f49fc65..10aa45ea 100644 --- a/doc/export/fonttraits.m +++ b/doc/export/fonttraits.m @@ -77,9 +77,9 @@ static uiDrawTextFontItalic guessItalicOblique(CTFontDescriptorRef desc) return uiDrawFontItalicItalic; } -// Core Text does (usWidthClass - 0.5) x 10 -// this roughly maps to our values with increments of 0.1, except for the fact 0 and 10 are allowed by Core Text, despite being banned by TrueType and OpenType themselves -// we'll just treat them as identical to 1 and 9, respectively +// Core Text does (usWidthClass / 10) - 0.5 here. +// This roughly maps to our values with increments of 0.1, except for the fact 0 and 10 are allowed by Core Text, despite being banned by TrueType and OpenType themselves. +// We'll just treat them as identical to 1 and 9, respectively. static const uiDrawFontStretch os2WidthsToStretches[] = { uiDrawTextStretchUltraCondensed, uiDrawTextStretchUltraCondensed,