Font::Font(FontFamily &font_family, float height) { font_family.throw_if_null(); FontDescription desc; desc.set_height(height); *this = Font(font_family, desc); }
Font_Impl::Font_Impl(FontFamily &new_font_family, const FontDescription &description) { new_font_family.throw_if_null(); font_family = new_font_family; selected_description = description.clone(); selected_line_height = description.get_line_height(); }