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     [CLOSED] Google Fonts in STY files
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Google Fonts in STY files
 Login/Join
 
Member
posted
I need help adding Google Fonts (or any web font) to a STY file. I used the following statement to make Google Fonts (Open Sans) work with CSS:

@import url('https://fonts.googleapis.com/css?family=Open+Sans');

Any way to import this in WebFOCUS stylesheets?

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.2.03
Windows 10
 
Posts: 2 | Registered: October 22, 2018Reply With QuoteReport This Post
Master
posted Hide Post
Not sure if you can import it to a stylesheet, but you can in an HTMLFORM block
  
-SET &ECHO=ALL;

TABLE FILE CAR
PRINT
CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
CAR.BODY.SALES
BY LOWEST CAR.ORIGIN.COUNTRY
BY LOWEST CAR.COMP.CAR
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/combine_templates/ENWarm.sty,$
TYPE=REPORT, FONT='Open Sans', TITLETEXT='Google Open Sans', $
ENDSTYLE
END

-HTMLFORM BEGIN NOEVAL
<head>
    <style>
        @import url('https://fonts.googleapis.com/css?family=Open+Sans');
    </style>
</head>
-HTMLFORM END


Hallway
WF(Prod):8202M
WF(Test):8202M
OS/Platform:Win 10
Outputs:All
 
Posts: 495 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Reply With QuoteReport This Post
Member
posted Hide Post
quote:
Originally posted by Hallway:
Not sure if you can import it to a stylesheet, but you can in an HTMLFORM block
  
-SET &ECHO=ALL;

TABLE FILE CAR
PRINT
CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
CAR.BODY.SALES
BY LOWEST CAR.ORIGIN.COUNTRY
BY LOWEST CAR.COMP.CAR
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/combine_templates/ENWarm.sty,$
TYPE=REPORT, FONT='Open Sans', TITLETEXT='Google Open Sans', $
ENDSTYLE
END

-HTMLFORM BEGIN NOEVAL
<head>
    <style>
        @import url('https://fonts.googleapis.com/css?family=Open+Sans');
    </style>
</head>
-HTMLFORM END


Thank you for the reply.

The HTMLFORM block works at a report/chart level. I need it to be part of a WebFOCUS stylesheet. Doing this at a report level is not an option for me. Thank you once again.


WebFOCUS 8.2.03
Windows 10
 
Posts: 2 | Registered: October 22, 2018Reply With QuoteReport This Post
Expert
posted Hide Post
Have you thought about using SET CSSURL = [path to your css file] and then add that to your site profile?

You should then be able to set the font within your .sty file.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5617 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Master
posted Hide Post
quote:
Originally posted by Tony A:
Have you thought about using SET CSSURL = [path to your css file] and then add that to your site profile?

You should then be able to set the font within your .sty file.

T


Good One


Hallway
WF(Prod):8202M
WF(Test):8202M
OS/Platform:Win 10
Outputs:All
 
Posts: 495 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Reply With QuoteReport This Post
Expert
posted Hide Post
You set it up and I'll hit it Smiler

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5617 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Google Fonts in STY files

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