Atozed Forums
Browser font size (Priority support) - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Browser font size (Priority support) (/thread-3187.html)



Browser font size (Priority support) - valmeras - 04-27-2023

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?


RE: Browser font size (Priority support) - valmeras - 05-01-2023

Any update?


RE: Browser font size (Priority support) - Alexandre Machado - 05-01-2023

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.


RE: Browser font size (Priority support) - valmeras - 05-11-2023

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

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