Filled in text size conversion functions on OS X.

This commit is contained in:
Pietro Gagliardi 2016-01-09 18:14:06 -05:00
parent ca75579135
commit 29794af67a
1 changed files with 5 additions and 4 deletions

View File

@ -491,16 +491,17 @@ void uiDrawFreeFontFamilies(uiDrawFontFamilies *ff)
uiFree(ff); uiFree(ff);
} }
// these two are identical:
// - https://developer.apple.com/library/mac/documentation/TextFonts/Conceptual/CocoaTextArchitecture/TypoFeatures/TextSystemFeatures.html#//apple_ref/doc/uid/TP40009459-CH6-51627-BBCCHIFF text points are 72 per inch
// - https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CocoaDrawingGuide/Transforms/Transforms.html#//apple_ref/doc/uid/TP40003290-CH204-SW5 user space points are 72 per inch
double uiDrawTextSizeToPoints(double textSize) double uiDrawTextSizeToPoints(double textSize)
{ {
// TODO return textSize;
return 0;
} }
double uiDrawPointsToTextSize(double points) double uiDrawPointsToTextSize(double points)
{ {
// TODO return points;
return 0;
} }
struct uiDrawTextLayout { struct uiDrawTextLayout {