Focal Point
[SOLVED] how to add font to WebFOCUS?

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

March 10, 2020, 06:29 AM
nox
[SOLVED] how to add font to WebFOCUS?
Hi,

I notice WebFOCUS didn't get all font from Microsoft OS, so I assume WebFOCUS have their own font page and I want try to add addition font for my Graph. is there a way to import into WebFOCUS so when I "Edit" the graph can select the font as I imported. or is there another way should be doing this?
(By the way, my graph was create by IA)

This message has been edited. Last edited by: nox,


WebFOCUS v8.2.06 , Windows
March 10, 2020, 11:44 AM
FP Mod Chuck
Nox

In this manual https://webfocusinfocenter.inf...fs7/wf8207crlang.pdf in chapter 9 is the only reference I can find for adding fonts but it is specific to PDF output not graphs. You may need to open a case with techsupport.

Which font are you wanting to use?


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
March 10, 2020, 12:22 PM
Waz
For a chart (JSCHART), you should be able to use a CSS files pointing to any web fonts available on the internet (IF you purchase them or they are free, copy them locally).

Then use SET CSSURL to point to the file, and stylesheet to point to the font in the chart.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

March 11, 2020, 09:26 PM
nox
Hi Chunk,

Thanks for the reply, the one what I try add is Microsoft JhengHei it is used for Chinese character.

Hi Waz,

I'll try your suggestion, but better if you can provide a sample code maybe?

Many thanks


WebFOCUS v8.2.06 , Windows
March 11, 2020, 11:00 PM
Waz
Try googling css and web and fonts

e.g.
css3 fonts

This message has been edited. Last edited by: Waz,


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

March 15, 2020, 10:45 PM
nox
Hi Waz,

I mean would be nice if have sample code in WebFOCUS's Graph XD

I try following and it DID NOT work:

ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET CSSURL 'C:\Users\Nox\Documents\Microsoft JhengHei_font\font\font.css'
ON GRAPH SET VZERO OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET LOOKGRAPH BAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT

setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setPlace(true);
setCurveFitEquationDisplay(false);

*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, ORIENTATION=LANDSCAPE, $
TYPE=DATA, COLUMN=N1, FONT='Microsoft JhengHei', BUCKET=color, $
TYPE=DATA, COLUMN=N2, FONT='Microsoft JhengHei', BUCKET=x-axis, $
TYPE=DATA, COLUMN=N3, FONT='Microsoft JhengHei', BUCKET=y-axis, $


WebFOCUS v8.2.06 , Windows
March 16, 2020, 03:27 PM
Waz
Hi nox,

Can you post an an example with what you have in the post above. Make sure its using the IBI sample data.

I can have a look at what its doing.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

March 17, 2020, 07:11 AM
nox
Hi Waz,

I get the similar idea from this discussion:

http://forums.informationbuild...1057331/m/1517040196

and try understand how to customize 'font' in this page as well:

https://webfocusinfocenter.inf...ootTitleLabel230.htm


WebFOCUS v8.2.06 , Windows
March 19, 2020, 03:05 AM
nox
Thank you all, I figure out by creating own Style(.Sty) and Include as that .Sty file.


WebFOCUS v8.2.06 , Windows