Fixed typo in 32fc794

This commit is contained in:
Brian Ferguson 2013-06-30 00:15:36 -06:00
parent 32fc7948ee
commit cd35729a17

View File

@ -358,7 +358,7 @@ bool CanvasD2D::MeasureTextLinesW(const WCHAR* str, UINT strLen, const TextForma
{
DWRITE_TEXT_METRICS metrics;
textLayout->GetMetrics(&metrics);
rect.Width = metrics.width + 5.0f;
rect.Width = metrics.widthIncludingTrailingWhitespace + 5.0f;
rect.Height = metrics.height + 1.0f; // 1.0f to get same result as GDI+.
lines = metrics.lineCount;
return true;