diff options
Diffstat (limited to 'app/gfx/font_mac.mm')
-rw-r--r-- | app/gfx/font_mac.mm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/gfx/font_mac.mm b/app/gfx/font_mac.mm index b39ebea..4d0a48e 100644 --- a/app/gfx/font_mac.mm +++ b/app/gfx/font_mac.mm @@ -33,6 +33,9 @@ Font::Font() void Font::calculateMetrics() { NSFont* font = nativeFont(); + // TODO(akalin): This is the wrong height to use! Use either the height + // of the bounding rect for the font or ascender - descender; this needs + // further investigation. Width may be wrong, too. height_ = [font xHeight]; ascent_ = [font ascender]; avg_width_ = [font boundingRectForGlyph:[font glyphWithName:@"x"]].size.width; |