Commit 8089f73e authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite: Implement some font properties accessors for IDWriteTextFormat.

parent 81cdfc61
...@@ -871,29 +871,29 @@ static HRESULT WINAPI dwritetextformat_GetFontFamilyName(IDWriteTextFormat *ifac ...@@ -871,29 +871,29 @@ static HRESULT WINAPI dwritetextformat_GetFontFamilyName(IDWriteTextFormat *ifac
static DWRITE_FONT_WEIGHT WINAPI dwritetextformat_GetFontWeight(IDWriteTextFormat *iface) static DWRITE_FONT_WEIGHT WINAPI dwritetextformat_GetFontWeight(IDWriteTextFormat *iface)
{ {
struct dwrite_textformat *This = impl_from_IDWriteTextFormat(iface); struct dwrite_textformat *This = impl_from_IDWriteTextFormat(iface);
FIXME("(%p): stub\n", This); TRACE("(%p)\n", This);
return DWRITE_FONT_WEIGHT_NORMAL; return This->format.weight;
} }
static DWRITE_FONT_STYLE WINAPI dwritetextformat_GetFontStyle(IDWriteTextFormat *iface) static DWRITE_FONT_STYLE WINAPI dwritetextformat_GetFontStyle(IDWriteTextFormat *iface)
{ {
struct dwrite_textformat *This = impl_from_IDWriteTextFormat(iface); struct dwrite_textformat *This = impl_from_IDWriteTextFormat(iface);
FIXME("(%p): stub\n", This); TRACE("(%p)\n", This);
return DWRITE_FONT_STYLE_NORMAL; return This->format.style;
} }
static DWRITE_FONT_STRETCH WINAPI dwritetextformat_GetFontStretch(IDWriteTextFormat *iface) static DWRITE_FONT_STRETCH WINAPI dwritetextformat_GetFontStretch(IDWriteTextFormat *iface)
{ {
struct dwrite_textformat *This = impl_from_IDWriteTextFormat(iface); struct dwrite_textformat *This = impl_from_IDWriteTextFormat(iface);
FIXME("(%p): stub\n", This); TRACE("(%p)\n", This);
return DWRITE_FONT_STRETCH_NORMAL; return This->format.stretch;
} }
static FLOAT WINAPI dwritetextformat_GetFontSize(IDWriteTextFormat *iface) static FLOAT WINAPI dwritetextformat_GetFontSize(IDWriteTextFormat *iface)
{ {
struct dwrite_textformat *This = impl_from_IDWriteTextFormat(iface); struct dwrite_textformat *This = impl_from_IDWriteTextFormat(iface);
FIXME("(%p): stub\n", This); TRACE("(%p)\n", This);
return 0.0; return This->format.size;
} }
static UINT32 WINAPI dwritetextformat_GetLocaleNameLength(IDWriteTextFormat *iface) static UINT32 WINAPI dwritetextformat_GetLocaleNameLength(IDWriteTextFormat *iface)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment