Greetings!
I'm trying to figure out how to embed a font. From the
1.4 release notes:
[quote]You can now embed font files, which can then be used in stylesheets, or, if you don't know CSS, the <font> element. Fonts are simply imported as stylesheet passages containing the font file in base64 encoding. Supported font file extensions are TTF, WOFF, OTF and SVG.
So, I downloaded the font I wanted. Then, I Googled Base 64 Encoder and
found one. I uploaded the file, encoded it and pasted the huge mass of text into a passage with a stylesheet tag.
Is that it?
Thanks!
EDIT: Nah, I'm not doing something right because on my friend's computer, it's some standard font.
Comments
Thanks a lot, man! It says it was successful.
HTML: http://www.w3schools.com/tags/tag_font.asp
HTML: <font face="Times New Roman" size="10" color="green">I am a space alien!</font>
CSS: <span style="color:blue; font-size: 10; font-family: Serif;">I am a Space Marine!</span>
Now, as for the "correct way" to do it, I'm not 100% certain, but I tested the code below so I know it works.
In your CSS stylesheet (any passage with the tag "stylesheet" without quotes), you could enter to following code: Then, in your passage, you could make a more simplified version of the CSS code above: Doing it that way will mean less text and less typing, and as far as I know, it's the "right" way to do what you're seeking.
For more information on id and class selectors: http://www.w3schools.com/css/css_id_class.asp
Hope that helps!