Page 1 of 1

How to set the textsize.

PostPosted: Thu Nov 21, 2013 8:06 am
by MAHE202
Hi,
I'm trying to set the textsize at the runtime say { Smallest, Smaller, Medium, Larger,Largest } to the html doc..but not finding suitable classes/methods..ANy help on implementing this.
Thanks.

Re: How to set the textsize.

PostPosted: Thu Nov 21, 2013 8:12 am
by fddima
Hi.
There is no suitable methods for this.
You can set zoom level, instead, or manipulating with styles.

Re: How to set the textsize.

PostPosted: Thu Dec 12, 2013 1:11 am
by beeplusplus
It seems we can set the different font size for different tab/domain/render.

cefBrowserSettings.DefaultFontSize = 24;
cefBrowserSettings.DefaultFixedFontSize = 24;
CefBrowserHost.CreateBrowser(windowInfo, client, cefBrowserSettings, StartUrl);

However, it is not dynamic; that is we can set before we create browser process but cannot be changed later.

On the other hand, SetZoomLevel changes the zoom level in all the tabs/domain/render.

Thanks
~Bala