How to set the textsize.

Having problems with building or using the CefGlue .NET/Mono binding? Ask your questions here.

Moderator: fddima

How to set the textsize.

Postby MAHE202 » Thu Nov 21, 2013 8:06 am

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.
MAHE202
Techie
 
Posts: 10
Joined: Wed Aug 28, 2013 6:05 am

Re: How to set the textsize.

Postby fddima » Thu Nov 21, 2013 8:12 am

Hi.
There is no suitable methods for this.
You can set zoom level, instead, or manipulating with styles.
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am

Re: How to set the textsize.

Postby beeplusplus » Thu Dec 12, 2013 1:11 am

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
beeplusplus
Techie
 
Posts: 17
Joined: Fri Aug 30, 2013 6:48 am


Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 15 guests

cron