Decided that yes, for a single line the leading should not be included.
This commit is contained in:
parent
32cc648e13
commit
cb8323bee6
|
@ -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 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)
|
void uiDrawTextLayoutExtents(uiDrawTextLayout *layout, double *width, double *height)
|
||||||
{
|
{
|
||||||
DWRITE_TEXT_METRICS metrics;
|
DWRITE_TEXT_METRICS metrics;
|
||||||
|
|
Loading…
Reference in New Issue