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)
|
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)
|
||||||
|
|
Loading…
Reference in New Issue