Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] how to add font to WebFOCUS?
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] how to add font to WebFOCUS?
 Login/Join
 
Gold member
posted
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
 
Posts: 54 | Registered: August 29, 2019Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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
 
Posts: 1805 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
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.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6248 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Gold member
posted Hide Post
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
 
Posts: 54 | Registered: August 29, 2019Reply With QuoteReport This Post
Expert
posted Hide Post
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.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6248 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Gold member
posted Hide Post
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
 
Posts: 54 | Registered: August 29, 2019Reply With QuoteReport This Post
Expert
posted Hide Post
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.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6248 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Gold member
posted Hide Post
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
 
Posts: 54 | Registered: August 29, 2019Reply With QuoteReport This Post
Gold member
posted Hide Post
Thank you all, I figure out by creating own Style(.Sty) and Include as that .Sty file.


WebFOCUS v8.2.06 , Windows
 
Posts: 54 | Registered: August 29, 2019Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] how to add font to WebFOCUS?

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.