Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Browser font size (Priority support)
#1
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?
Reply
#2
Any update?
Reply
#3
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.
Reply
#4
This JavaScript code gives the Browser font size as I am expecting:

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


Forum Jump:


Users browsing this thread: 1 Guest(s)