Kaydet (Commit) e748cf70 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

vcl: apply font height if defined as "size" attribute in .ui

Change-Id: I28719b16fb47a618420195640f4f75a79ca889ea
üst a4f09f8c
......@@ -1785,6 +1785,13 @@ bool Window::set_font_attribute(const OString &rKey, const OString &rValue)
aFont.SetUnderline(UNDERLINE_SINGLE);
SetControlFont(aFont);
}
else if (rKey == "size")
{
Font aFont(GetControlFont());
sal_Int32 nHeight = rValue.toInt32() / 1000;
aFont.SetHeight(nHeight);
SetControlFont(aFont);
}
else
{
SAL_INFO("vcl.layout", "unhandled font attribute: " << rKey.getStr());
......
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