This is related to the following:

  1. Hosting on google drive
  2. how to import webfonts in blogger from google drive?
  3. Can I use google fonts in Google Drive web hosting?

But 1 is about hosting a static web page; 2 is about Google Fonts, and the comment by @abhay9455 to Google’s documentation does not help; and 3 was about Google Fonts, which is already well covered by both Blogger and Google Web Font implementation. What I would like to do, is use a font I created on Calligraphr for a post I am working on; this is not a professional font, and thus is not hosted by anyone but me. My only source for hosting files online is Google Drive. How can I use this font in a Blogger post when I have hosted it publicly on Google Drive?

My code for fetching the font is this:

  @font-face {
    font-family: 'Tolvtalsystem';
    src: url('https://drive.google.com/file/d/163bhcNTENeBtF1wPhykqOTlKPZud7xAG')

The font does not load. (I uninstalled it locally to make sure I would know whether it loaded or not.) What do I need to do to be able to have it loaded from my Google Drive? As for now, I think the solution might be in getting a link that actually identifies it as a font (a link ending in .otf), but I have no idea how to get this.

  • 1
    Can you not upload any fonts to Blogger? How do you deal with other files like images? – DisgruntledGoat Mar 13 at 17:25
  • I just tested if I could cheat my way through it with the image upload function. It won’t upload none-image files (‘Upload failed. Server denied.’) – Canned Man Mar 14 at 16:48
  • 1
    "I think the solution might be in getting a link that actually identifies it as a font" - certainly the link you are using doesn't actually return a "font file" at all. It returns a 302 redirect response (since you appear to be missing a trailing slash), followed by another 302 to append edit, followed by a text/html response. "a link ending in .otf" - not only that, but Google Drive would need to also respond with the appropriate mime-type (it needs to "host" the file). – MrWhite Mar 18 at 16:08
  • 2
    I would be surprised if this is possible, since Google disabled web hosting support back in August 2016. And you'd need "web hosting support" in order to correctly serve a font-file. So, Q1 and Q3 you link to are no longer possible anyway. Q2 is actually about "web fonts", not "Google Fonts" (so it's really the same as what you are asking here), except the answer to that question would seem to be a bit wrong (and out of date)? – MrWhite Mar 18 at 16:20
  • See also: stackoverflow.com/questions/40478447/… – MrWhite Mar 18 at 16:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.