dwrite: Implement some font properties accessors for IDWriteTextFormat.
This commit is contained in:
parent
81cdfc61fd
commit
8089f73e87
|
@ -871,29 +871,29 @@ static HRESULT WINAPI dwritetextformat_GetFontFamilyName(IDWriteTextFormat *ifac
|
|||
static DWRITE_FONT_WEIGHT WINAPI dwritetextformat_GetFontWeight(IDWriteTextFormat *iface)
|
||||
{
|
||||
struct dwrite_textformat *This = impl_from_IDWriteTextFormat(iface);
|
||||
FIXME("(%p): stub\n", This);
|
||||
return DWRITE_FONT_WEIGHT_NORMAL;
|
||||
TRACE("(%p)\n", This);
|
||||
return This->format.weight;
|
||||
}
|
||||
|
||||
static DWRITE_FONT_STYLE WINAPI dwritetextformat_GetFontStyle(IDWriteTextFormat *iface)
|
||||
{
|
||||
struct dwrite_textformat *This = impl_from_IDWriteTextFormat(iface);
|
||||
FIXME("(%p): stub\n", This);
|
||||
return DWRITE_FONT_STYLE_NORMAL;
|
||||
TRACE("(%p)\n", This);
|
||||
return This->format.style;
|
||||
}
|
||||
|
||||
static DWRITE_FONT_STRETCH WINAPI dwritetextformat_GetFontStretch(IDWriteTextFormat *iface)
|
||||
{
|
||||
struct dwrite_textformat *This = impl_from_IDWriteTextFormat(iface);
|
||||
FIXME("(%p): stub\n", This);
|
||||
return DWRITE_FONT_STRETCH_NORMAL;
|
||||
TRACE("(%p)\n", This);
|
||||
return This->format.stretch;
|
||||
}
|
||||
|
||||
static FLOAT WINAPI dwritetextformat_GetFontSize(IDWriteTextFormat *iface)
|
||||
{
|
||||
struct dwrite_textformat *This = impl_from_IDWriteTextFormat(iface);
|
||||
FIXME("(%p): stub\n", This);
|
||||
return 0.0;
|
||||
TRACE("(%p)\n", This);
|
||||
return This->format.size;
|
||||
}
|
||||
|
||||
static UINT32 WINAPI dwritetextformat_GetLocaleNameLength(IDWriteTextFormat *iface)
|
||||
|
|
Loading…
Reference in New Issue