Added a TODO item
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12596 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -92,6 +92,9 @@ font_height FontStyle::GetHeight(const float &size)
|
|||||||
|
|
||||||
// font units are 26.6 format, so we get REALLY big numbers if
|
// font units are 26.6 format, so we get REALLY big numbers if
|
||||||
// we don't do some shifting.
|
// 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.ascent = (fHeight.ascent * size) / fHeight.units_per_em;
|
||||||
fh.descent = (fHeight.descent * size) / fHeight.units_per_em;
|
fh.descent = (fHeight.descent * size) / fHeight.units_per_em;
|
||||||
fh.leading = (fHeight.leading * size) / fHeight.units_per_em;
|
fh.leading = (fHeight.leading * size) / fHeight.units_per_em;
|
||||||
|
|||||||
Reference in New Issue
Block a user