On Thu, 2014-08-28 at 12:45 -0400, Matthias Clasen wrote:
> On Thu, Aug 28, 2014 at 12:13 AM, Lasse Schuirmann
> <[email protected]> wrote:
> 
> >> There's no need to clamor for css here - Pango has always provided
> >> markup and attributes to do relative font sizes, like this:
> >>
> >> normal <span font_size="larger">big</span> <span
> >> font_size="smaller">small</span>
> >
> > That's interesting.
> >
> > The theme uses percentages. I'd assume it allows the designers to more
> > accurately tweak the thing. I'd try to use what the theme provides for
> > consistency. In any case I'd like to recommend a way for devs to scale text
> > relatively.
> 
> It seems that pango markup only lets you specify relative sizes in
> geometric steps of 1.2. If you want to use arbitrary factors, you
> currently have to manually create attributes in code, like this:
> 
> pango_attr_scale_new (0.83);

1.2 is a nice scale factor. Lots of people use it. Yelp uses it for its
HTML rendering. Maybe the themes should switch to using 0.83, 1.2, and
1.44.

--
Shaun



_______________________________________________
desktop-devel-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/desktop-devel-list

Reply via email to