[webkit-gtk] WebKit2 zoom API (II)

Carlos Garcia Campos cgarcia at igalia.com
Thu Feb 2 23:56:28 PST 2012

El vie, 03-02-2012 a las 11:09 +1300, Gavin Lambert escribió:
> Quoth Carlos Garcia Campos:
> > I still haven't heard of any use case where you want to set both
> > scales at the same time, all other ports don't allow it because it
> > produces unexpected odd results, so I still think we shouldn't
> > support it.
> The only use case which occurs to me is for someone who has a bit of
> trouble reading (but don't have a similar problem with images), so they
> want to set the default text size a bit larger than intended by the
> page author.  And then on occasion they'll want to zoom in everything
> else.  That might count as using both scales at the same time.

No, it doesn't. That use case is covered by the setting approach, the
user enables zoom-text-only setting and then she disables it to zoom
everything. Note that page zoom factor also scales the text. If both
scales were applied at the same time in that scenario, the text would be
scaled twice, first for the text zoom level and then for the page zoom
level, so in the end the text won't be scaled to the zoom level you
provided (unless page zoom level is 1, of course). That's very confusing
IMO, and it's the odd behaviour I mentioned in previous emails.

Note also that the font size is different than scaling font, I've seen
other apps that don't use the zoom api at all, they just change the font
size using WebSettings API. 

> Although I suppose the browser side could just save the default text
> zoom, and then restore it after they finish page zooming.  Might look a
> bit weird in practice, though.
> Having said that, I note that Firefox appears to have lost the ability
> to set these independently in recent versions as well (I don't have
> anything WebKit based on my PC at the moment), so I guess they don't
> see it as a useful/problem case either.
> _______________________________________________
> webkit-gtk mailing list
> webkit-gtk at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-gtk

Carlos Garcia Campos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20120203/64fb90e0/attachment.bin>

More information about the webkit-gtk mailing list