Ask Your Question
0

Is there a way to use Google WebFonts in LO?

asked 2015-01-05 19:51:22 +0200

I am running a website that uses Google Fonts for its headings and body. I'd like to mirror those fonts in my LO documents, that I host on the site. I know I can download the fonts as TTF files and install them on my local computer - so far, so good. They even work when I export the LO document to PDF, and view them on a computer without the font installed.

However, there is one place I am getting stumped. I also export the document to HTML, and make it browsable on the website as a simple webpage. When I do this, the fonts work fine on the computer I generated them on, but they don't work on another computer that does not have the font installed. In other words, the outputted HTML file does not make use of Google's API to display the Google Fonts.

Is there a way to do this, so that when I output to HTML, the fonts pull from Google and display properly on the web?

Thank you!

edit retag flag offensive close merge delete

Comments

Uh, how do you use those fonts then ? The code.

rautamiekka gravatar imagerautamiekka ( 2015-01-05 19:52:33 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2015-01-07 01:01:30 +0200

oweng gravatar image

updated 2015-01-07 01:02:05 +0200

The Google Webfont API is provider-specific and as such will need to be catered for on an ad-hoc basis i.e., by manually editing the generated HTML. Someone can always write an extension for LO that performs this task at the click of a button.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-01-05 19:51:22 +0200

Seen: 1,167 times

Last updated: Jan 07 '15