Skip to main content
schroffenegger
Participant
Oct 27, 2019 6:31 PM UTC
Question

Remove Google Font

I used a google Web-Font in my Animate app. This added the following lines to my index.htm, which worked fine:

<script> var gFontsFamilies = ["Baloo Thambi"]; </script>
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Baloo+Thambi:regular&subset=latin">

 

Now I don't want to use the google Web-Font any more (GDPR issue) and replaced all used fonts with arial. 

 

But now the above code is still in my index.htm after publishing the Script. I could remove it manually every time I publish it - but how can I get rid of it generally?

 

Thanks for Help

Thomas

 

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

ShawnCatalyist
Participant
Oct 10, 2023 8:11 PM UTC

I ran into the same problem.

Only thing I could find to get rid of the google web font inclusion in the output it was to copy everything to a new fla.

On a related note, the adobe web font that I do want in the file seems to included twice in the html file.

Translate
kglad
Community Expert
Community Expert
Oct 10, 2023 8:45 PM UTC

@ShawnCatalyist 

 

i'm not sure what caused the problem you encountered, but generally, if animate is exhibiting a glitch, saving your fla in a new folder with new fla name will fix the problem.

Translate
schroffenegger
Participant
Oct 11, 2023 7:21 AM UTC

Thank you. I solved it by removing the links in the code and replaced it with a local path on my server to the same font.

Translate
Inspiring
Nov 5, 2019 3:00 PM UTC

Hi,

in your Publish settings (File > Publish Settings...) select the HTML/JS tab and make sure 'Overwrite HTML file on Publish' is ticked.

I hope this helps.

Cheers

Greg

 

Translate
schroffenegger
Participant
Nov 7, 2019 6:07 PM UTC

Dear Greg

many Thanks for your effort. Unfortunataly it did not help .. ich have still the Google Font reference in my HMTL.

 

any other idea?

 

thanks very much!

Thomas

 

 

Translate