From cb8323bee61982c474849ae57568ea468a7876be Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 16 Jan 2016 18:22:27 -0500 Subject: [PATCH] Decided that yes, for a single line the leading should not be included. --- windows/drawtext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/drawtext.cpp b/windows/drawtext.cpp index a8f13963..9c283ea2 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 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;