Decided that yes, for a single line the leading should not be included.

This commit is contained in:
Pietro Gagliardi 2016-01-16 18:22:27 -05:00
parent 32cc648e13
commit cb8323bee6
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ void uiDrawTextLayoutSetWidth(uiDrawTextLayout *layout, double width)
logHRESULT("error setting max layout width in uiDrawTextLayoutSetWidth()", hr);
}
// TODO for a single line the height includes the leading; it probably shouldn't but I'm not sure
// TODO for a single line the height includes the leading; it should not
void uiDrawTextLayoutExtents(uiDrawTextLayout *layout, double *width, double *height)
{
DWRITE_TEXT_METRICS metrics;