Browser font size (Priority support)

<< Click to Display Table of Contents >>

Navigation:  Forum >

Browser font size (Priority support)

Forum link

 


 

04-27-2023, 06:20 PM:

 

I am using Intraweb 15.3.3 with Rad Studio 10.2.3 (C++ Builder).

 

Is there a function in Intraweb to get the browser font size?

 


 

05-01-2023, 02:48 PM:

 

Any update?

 


 

05-01-2023, 10:14 PM:

 

The browser font size will be the one that you specify in the style of the element (or any parent element, if no style is defined for that specific element).

 

If no style is defined, the browser will use it's default style which can vary depending on several things, including the browser itself, the device where the browser is, the OS, the screen size, etc, etc, etc.

 

There is no built-in function to retrieve the default style of the browser because simply there is no need for it in IntraWeb.

 


 

05-11-2023, 07:20 PM:

 

This JavaScript code gives the Browser font size as I am expecting:

 

parseFloat(window.getComputedStyle(document.documentElement).getPropertyValue('font-size'));