listbox header font

This commit is contained in:
Jinhao
2017-11-21 17:20:47 +08:00
parent a57c7ac409
commit b71427334a
8 changed files with 203 additions and 30 deletions

View File

@@ -127,11 +127,14 @@ namespace paint
return impl_->real_font->family();
}
double font::size() const
double font::size(bool fixed) const
{
if(empty()) return 0;
double size_pt = (empty() ? 0.0 : impl_->real_font->size());
return impl_->real_font->size();
if (fixed && (0.0 == size_pt))
return platform_abstraction::font_default_pt();
return size_pt;
}
bool font::bold() const