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     [CLOSED] Google Fonts in STY files

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[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, 2018Report 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

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report 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, 2018Report 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.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report 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.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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     [CLOSED] Google Fonts in STY files

Copyright © 1996-2020 Information Builders