Gfx: Add Util::GetAdjustedDWriteTextLayoutMetrics to reduce code duplication

This commit is contained in:
Birunthan Mohanathas
2013-07-31 13:09:48 +03:00
parent 82b8920443
commit 37fd105650
3 changed files with 39 additions and 35 deletions

View File

@ -24,6 +24,11 @@
namespace Gfx {
namespace Util {
// If |gdiEmulation| is true, the returns metrics have similar characteristics to those provided
// by GDI+.
DWRITE_TEXT_METRICS GetAdjustedDWriteTextLayoutMetrics(
IDWriteTextLayout* textLayout, bool gdiEmulation);
// Maps the GDI family name and italic/bold flags to the DirectWrite family name, weight, style,
// and stretch.
HRESULT GetDWritePropertiesFromGDIProperties(