Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Font-Face

1404094217
Stephen Koontz
Forum Champion
Marketplace Creator
Sheet Author
API Scripter
Compendium Curator
Hello. I'm brand new to HTML and CSS but I'm teaching myself to bang out a character sheet for roll20. I'm trying to import a font and having no luck. I uploaded the font I want to use as a shared file on a drop box, using it's shared external link as the url for the font. Can anyone help me figure out what I'm doing wrong? @font-face { font-family: 'Snow'; font-style: normal; font-weight: 400; src: url('<a href="https://dl.dropboxusercontent.com/u/1970434/snow_regular_ttnorm.ttf" rel="nofollow">https://dl.dropboxusercontent.com/u/1970434/snow_regular_ttnorm.ttf</a>') format('truetype'); } h3 { font-family: 'Snow', times; }
1404233266

Edited 1404233677
Stephen Koontz
Forum Champion
Marketplace Creator
Sheet Author
API Scripter
Compendium Curator
Well, I've tried a bunch of other things and I'm stumped. I've tried hosting my custom font on a personal website, through a font hosting site, and on drop box and it never works. However, if I load a google font that works fine. Does anyone have any idea whats going on or can offer a suggestion of what to try? These URLs to a .ttf file don't work <a href="https://dl.dropboxusercontent.com/u/1970434/snow_r" rel="nofollow">https://dl.dropboxusercontent.com/u/1970434/snow_r</a>... <a href="http://koontzfamily.org/steve/snow_regular_ttnorm" rel="nofollow">http://koontzfamily.org/steve/snow_regular_ttnorm</a>.... But this one does <a href="http://themes.googleusercontent.com/static/fonts/p" rel="nofollow">http://themes.googleusercontent.com/static/fonts/p</a>...
Sorry for bumping but I'm curious about this as well. I guess fonts are either blocked at the Roll20 level or need to go through a proxy or something... Whether custom fonts are allowed or not, this should be documented! :)
Maybe only fonts from google are allowed?
Possibly, but it would be nice to have some dev input on this, if only to confirm that it is the case. For the record, I'm using a different Google font and it's working all right.
1406401052
Dan W.
Sheet Author
I would like to know more about this as well !!