From 821d08e5ea36b1bd49b6abeb98bd44969d39c90f Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Sun, 8 May 2005 06:24:35 +0000 Subject: [PATCH] Added a TODO item git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12596 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/FontFamily.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/servers/app/FontFamily.cpp b/src/servers/app/FontFamily.cpp index c046f413c9..853329372c 100644 --- a/src/servers/app/FontFamily.cpp +++ b/src/servers/app/FontFamily.cpp @@ -92,6 +92,9 @@ font_height FontStyle::GetHeight(const float &size) // font units are 26.6 format, so we get REALLY big numbers if // we don't do some shifting. + // TODO: As it looks like that the "units_per_em" don't change + // for the lifetime of FontStyle, can't we apply these + // conversions in the constructor and get rid of "units_per_em" ? fh.ascent = (fHeight.ascent * size) / fHeight.units_per_em; fh.descent = (fHeight.descent * size) / fHeight.units_per_em; fh.leading = (fHeight.leading * size) / fHeight.units_per_em;