Closed (fixed)
Project:
Webfont Loader
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2011 at 00:35 UTC
Updated:
17 Aug 2011 at 20:31 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedYeah, I agree. I'm using 7.x. I would add this to the .css for the google example, and to documentation in general. Taken from http://code.google.com/apis/webfonts/docs/webfont_loader.html#Styles
Comment #2
btmash commentedThanks for this, Mtro! Also, documentation made its way over to the latest dev releases - would you be able to provide me with some feedback on that documentation? It would be very helpful in setting up a doc page for it.
Comment #3
Anonymous (not verified) commentedyeah, I'll check it out.
Comment #4
Vc Developer commentedHow do you get your custom font to show up in the list? I went to http://www.fontsquirrel.com/fontface/generator to generate the files, created a folder \google_webfont_loader_api\fonts\palaoe and:
palaoe.info:
name = "Paleo Bora Hebrew"
custom_families[] = PaleoBoraRegular
custom_style_css[] = stylesheet.css
stylesheet.css:
@font-face {
font-family: 'PaleoBoraRegular';
src: url('pab_____-webfont.eot?') format('eot'),
url('pab_____-webfont.woff') format('woff'),
url('pab_____-webfont.ttf') format('truetype'),
url('pab_____-webfont.svg#webfont0Go134pl') format('svg');
font-weight: normal;
font-style: normal;
}
what else I need to do to make this successful?
Comment #5
Vc Developer commentedCancel that! I didn't have the correct .ext name. .fontinfo not .info
Comment #6
Vc Developer commentedQuestion! How can you use more than one font at a time? For instance, I want to be able to show two different languages side by side.
Comment #7
btmash commentedYes, the .fontinfo can be a bit trippy (its a little more performant and, though changing it would mean it could be in any .info file, changing it would be a not-so-fun change for anyone else currently using the module.)
I'm trying to understand what you mean by using more than one font. The fontinfo file can have multiple custom (or not-custom) fonts:
You specify multiple families via adding more custom families and more custom font definitions by specifying other css files (or you can have one css file with @font-face definitions for both fonts - its flexible if you want to be able to reference different urls). And your render css could then go based off that.
Comment #8
Vc Developer commentedAwh, I gotcha! Thanks!
And to be more precise about the side by side language is; I want to be able to show a Greek word next to a Hebrew. Now I can do this thanks to your clarification!
Comment #9
btmash commentedI'm going to mark this as fixed - looks like things are working.
Comment #10
btmash commentedWhoops.