CodeIgniter Forums
Custom Fonts - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Custom Fonts (/showthread.php?tid=30928)



Custom Fonts - El Forum - 05-31-2010

[eluser]-Menno-[/eluser]
Hey,

I'm using CodeIgniter for some time now, yet I still don't know very much about all the possibilities of it. I've been using the basics of it but that's about it. I don't really know where to begin with the more advanced stuff.
But now I've got a problem, I've got a Design with a custom font in it. I've got the OTF file, but I don't know how to continue. There are some rather crappy JS functions on the internet, but I thought maybe CI has a function for this. Couldn't find it in the User Guide though.
So here I am, hoping anyone can help me any further with this.

Thanks in advance!
Menno


Custom Fonts - El Forum - 05-31-2010

[eluser]michalsn[/eluser]
There is no such functionality in CI. Check this out: http://pixldinc.com/blog/web-design/5-font-replacement-techniques-for-custom-font-embedding/

There is also google font api: http://code.google.com/intl/pl/apis/webfonts/ and list of fonts: http://code.google.com/webfonts


Custom Fonts - El Forum - 05-31-2010

[eluser]LuckyFella73[/eluser]
A nice tool for using non standard fonts is "sifr":
http://www.mikeindustries.com/blog/sifr

It's a combination of css/ flash/ js. If a flash player is installed and js is enabled
the tags with defined css classes are replaced with the custom font.