Focal Point
[SOLVED] Default Font Type Setting

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/337105934

May 11, 2010, 09:26 AM
Laurie
[SOLVED] Default Font Type Setting
Is there a setting for a default font type (Arial Unicode MS) or do you have to set it individually for every report/graph?

This message has been edited. Last edited by: Kerry,
May 11, 2010, 10:19 AM
njsden
You can set your desired font in an external style sheet file and use that across all of your reports.

TABLE FILE blah
.
.
ON TABLE SET STYLE MYSTYLE
.


Inside of MYSTYLE.STY you'd have all of the standard styling you want for your site. If future changes are required, just change the contents of MYSTYLE.STY and every report that uses it will be automatically "aware" of the changes.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
May 11, 2010, 10:25 AM
njsden
Another way would be to have all of your default settings in an external file which can be -INCLUDEd in your code. This is the approach I personally use as it allows to set one's personalised style on a report-by-report basis while still keeping some higher-level settings.

TABLE FILE blah
.
.
ON TABLE SET STYLE *
$ Set default styling
-INCLUDE def_style
$ Add report-specific styling here
TYPE=DATA, COLUMN=N1, STYLE=blah, $
..


def_style.fex would contain those settings you want applicable to every report/graph (such as FONT).



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
May 11, 2010, 10:26 AM
Laurie
But my question is, what if you don't specify a font. Is there a default setting. How does it know what to use if you don't set it?
May 11, 2010, 10:46 AM
Laurie
Is there a default for HTML output?
May 11, 2010, 10:52 AM
njsden
When it comes to HTML, the default output is handled directly by the user's internet browser. There is *no* specific font setting generated by WebFOCUS.

Try it yourself. Create a dummy HTML report with no style sheet definitions. Then use your internet browser's "view source" facility to analyse the HTML code built by WebFOCUS. You should not find any CSS class or <FONT> tag there. WebFOCUS relies entirely on the user's internet browser defaults.

I hope that answers your question.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
May 11, 2010, 11:14 AM
Laurie
Yes, thanks for the input.
May 11, 2010, 08:30 PM
Doug
Check the code pages on the server. I think it can be set there.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206