Google Font in Clean XHTML output

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
JasonSTI
Sr. Propeller Head
Posts: 112
Joined: Mon Jan 07, 2008 11:34 am

Google Font in Clean XHTML output

Post by JasonSTI »

We are trying to create set of cross platform pages to use with our installer project, and Clean XHTML w/ inline styles seems like the best choice because it has no other deliverables required. However, the compiling process is stripping out the Google Font code from our pages, even if they are included in a MasterPage. Currently, we are just injecting that after the build, but as the project grows that process is becoming cumbersome.

Is there some way to protect that style information from being removed? This is what we've traditionally added to the HEAD section:

Code: Select all

<style>
     @import url('https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,500,500i,600,600i,700,700i');
</style>
DLL
Propeller Head
Posts: 19
Joined: Tue Sep 12, 2017 11:58 am

Re: Google Font in Clean XHTML output

Post by DLL »

So your project can't use CSS stylesheets? Flare does aggressively sanitizes what you put in your master page's header. I just add @import statements in my project's CSS stylesheet.
DLL
Propeller Head
Posts: 19
Joined: Tue Sep 12, 2017 11:58 am

Re: Google Font in Clean XHTML output

Post by DLL »

Sorry, I misread your question. You're using Clean XHTML with inline styles only. I don't think there's a way to do that.
Post Reply