From 32cc648e13a145a1c9176beef14d80a00c2f445c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 16 Jan 2016 16:48:10 -0500 Subject: [PATCH] Diagnosed the root cause of an issue in a TODO; still need to fix it. --- windows/drawtext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/drawtext.cpp b/windows/drawtext.cpp index ee38fb2f..a8f13963 100644 --- a/windows/drawtext.cpp +++ b/windows/drawtext.cpp @@ -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 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) { DWRITE_TEXT_METRICS metrics;