Exemple #1
0
double FontSize(const Pango::FontDescription& dsc)
{
    int sz = dsc.get_size();

    if( dsc.get_size_is_absolute() )
        return sz * (72./GetDpi());
    else
        return pango_units_to_double(sz);
}
Exemple #2
0
void Gobby::ViewCommands::on_zoom_out()
{
	Pango::FontDescription desc = m_preferences.appearance.font;
	desc.set_size(desc.get_size() / PANGO_SCALE_LARGE);
	m_preferences.appearance.font = desc;
}