css embedding fonts
- Started
- Last post
- 18 Responses
- Dno
Is it possible to embed fonts into css so any user will see the desired font?
Can anyone point in the right direction please?
- brandelec0
u mean besides web-safe fonts like arial, verdana, etc?
- jakeyj0
you can't embed fonts
what you can do is a replacement technique that uses flash to replace a selected tag (ie h1). you code your page like normal.
the best/most popular is sIFR
google it you'll come up with tons of results
- nocomply0
I don't think so, but you can do sIFR and embed your fonts into flash.
http://www.mikeindustries.com/si…
It looked like a lot of work so I've never tried it though.
- nocomply0
Jesus you guys are quick
- sherman0
its a little tricky to setup.
- Dno0
jesus!!! you 'are' quick!!!
thanks for the replies folks!
I want to embed into css and html - not flash (sorry for not being clearer!).
Is there anyway of doing that?
- jakeyj0
I think the initial learning curve of sIFR is a bit steep, but once you get it figured out, its a really nice solution.
Tip: only use it very sparingly. If you use it for body text or a lot of titles it will totally bog down the load time. use it wisely.
- Dno0
yeh that looks good - but as you say loading times etc...
thanks again y'all!
;)
- sherman0
There is now way to embed a font using css. What siFR does is apply a layer over your html using flash to display the font of your choice. In your CSS file you specify a alternate to your embedded font which will display if the user doesnt have flash. Its really seemless if setup correctly.
siFR is very light weight.
- sherman0
load times are next to none.
- Dno0
...sounds like the way to go!
thnx
- ornj0
sIFR is a bit heavy, it's a lot more than you really need. We did a project where instead we just used swfObject to pass the text to be replaced and the pages finished loading a bit quicker.
sIFR does automate a lot of the process for you though. Don't use it more than a couple times on each page though.
- jakeyj0
using the swfObject wouldn't you haven't to create the graphics before hand tho?
- komkrktprod0
I could have sworn that this guy was asking about how to have a website viewable with a font of his choosing regardless of what is intalled on the viewer's system.
- Neuarmy0
great examples of sIFR in wordpress blogs:
- Fizik0
wow, where'd the sIFR conversation come from;
There was a way to use CSS to embed a custom font back in the day -- IE introduced support for it, still has it, but not widespread. You can convert a TrueType font to an .eot file with MS WEFT software (Web Embedded Font Type) and then specify the file as a src: url(filename) in you css..... google it.
- spiralstarez0
I'm not exactly sure what your needs are, but another reasonable option might be fahrner image replacement.
http://www.stopdesign.com/articl…
pretty laborious (still have to create images) but if you are trying to keep you page semantic and want nice headings it works.