Hi everyone,--
I found very interesting how TheDiveO embeded the type "Font Awesome" [1].
I tried to do this on my own, and it worked, so I just share this in case some newbie like me finds it interesting.Regards,How to embed a font in TW5:
- Check for a font you like
- Visit: http://www.fontsquirrel.com/tools/webfont-generator
- Upload your font file (".ttf", ".eot", ".woff", etc) and select "Expert" option
- Check the option case at CSS >> Base64 Encode
- Generate your webkit: the output file is a ".zip" file containing a text file with the CSS code (stylesheet.css)
- Copy all text from that file into a tiddler
- Make sure the field
font-family
is what you want- Tag the tiddler "
$:/tags/Stylesheet
" and change the tiddler type to "Plain text (text/plain)"- Done! Your font is available :)
Albert
[1] http://thediveo.github.io/TW5FontAwesome/
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
The original message was not only about Font Awesome, it was about finding fonts and generating stylesheets to use in TW. Thus it is sound advice to remind us to check the licence for the fonts.
Are you seriously nitpicking about the folder the code is asked by the author to reside in?
Of course,slowly it's trickling down on me...I added a note to step 1 here :)
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
....