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:
Any way to import this in WebFOCUS stylesheets?This message has been edited. Last edited by: FP Mod Chuck,
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.
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.
You set it up and I'll hit it
|Powered by Social Strata|