Diagnosed the root cause of an issue in a TODO; still need to fix it.

This commit is contained in:
Pietro Gagliardi 2016-01-16 16:48:10 -05:00
parent eb6e10350d
commit 32cc648e13
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); logHRESULT("error setting max layout width in uiDrawTextLayoutSetWidth()", hr);
} }
// TODO for a single line the height is always taller than ascent + descent // TODO for a single line the height includes the leading; it probably shouldn't but I'm not sure
void uiDrawTextLayoutExtents(uiDrawTextLayout *layout, double *width, double *height) void uiDrawTextLayoutExtents(uiDrawTextLayout *layout, double *width, double *height)
{ {
DWRITE_TEXT_METRICS metrics; DWRITE_TEXT_METRICS metrics;