Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Help. Detecting browser font size

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Help. Detecting browser font size
 Login/Join
 
Member
posted
Does anybody have a trick to detect the browsers text-size setting. That is, how to determine the browser's current setting of the menu option: view...text-size... smallest, smaller, medium, larger, largest.

...OR...

Is there a way to make the font sizes on the page fixed/unaffected by the setting of the browsers "text-size"?
 
Posts: 15 | Registered: October 27, 2006Report This Post
Expert
posted Hide Post
The Web Browser text size does not have any impact when using 'pixel' as the unit of measure in CSS styling.

E.G.:
TABLE FILE CAR
SUM
SALES AS 'Sales'
BY COUNTRY AS 'Country'
HEADING
"Car Sales By Country"
ON TABLE SET PAGE NOLEAD
ON TABLE HOLD AS H001 FORMAT HTMTABLE
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF, $
TYPE=DATA, CLASS=cssData, $
TYPE=TITLE, CLASS=cssTitle, $
TYPE=HEADING, CLASS=cssHeading, $
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
<HTML>
<HEAD>
<STYLE>
BODY { font-family: Arial, sans-serif; font-size: 12px; }
TD { font-size: 12px; }
.cssHeading { font-size: 14px; font-weight: bold; color: blue; }
U { text-decoration: none; }
.cssTitle { font-size: 12px; font-weight: bold; color: navy; }
.cssData { font-size: 12px; }
</STYLE>
</HEAD>
<BODY>
!IBI.FIL.H001;
</BODY>
</HTML>
-HTMLFORM END


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Thanks Francis! As to my first question (detecting browser setting) I'm surprised to find little. Have seen a few tidbits where a change is detected but not an api to the font-size setting, that I can find. like the screen object, for example, to determine resolution.

eg...

<script type="text/javascript">
function whatsize()
{
alert( screen.AvailHeight + ' by ' + screen.AvailWidth );
}



-cDave
 
Posts: 15 | Registered: October 27, 2006Report This Post
Expert
posted Hide Post
cDave,

This website discusses font resizing: http://alistapart.com/articles/fontresizing


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Help. Detecting browser font size

Copyright © 1996-2020 Information Builders