Jump to content
xisto Community
Sign in to follow this  
DoR

Html Document Fonts How to use special fonts?

Recommended Posts

I want to use some fonts, from a .ttf file (or another). How can I do that?I tried the @font-face with no success.Someone can help me?Really thanks.

Share this post


Link to post
Share on other sites

use WEFT http://forums.xisto.com/no_longer_exists/

ur css code would be this

<!-- CSS enable font face coding for html markup..@font-face{font-family:myfont created with WEFT;font-style: nromal;font-weight: normal;scr: url(myfont created with WEFT.eot);}-->

this will work regardless of visitors have installed your font or not in their machine.. good for those non-english websites.

Share this post


Link to post
Share on other sites

Thanks badinfluence, but what if I use only Linux (cannot and don't wan to to install MS software on it) and want to use fonts on a site accesible by most used browser's (IE and Mozilla).How can I do?Where can I download free fonts to use?

Share this post


Link to post
Share on other sites

Uhm, if you just want to use common fonts you obviously just do

elementname {font-family: font1, font2, font2;}
example:
body {font-family: tahoma, arial, sans-serif;}

If you have some special font you want to use, but don't know if your visitors will have the font or not, you can either do what badinfluence suggested, or just give up.

That is if you want to use the font for running text, if you just want to do it for headings and such, you could either generate heading images on the fly with PHP, or do some sIFR thing (which uses flash).
Generating headings with PHP: http://alistapart.com/article/dynatext
sIFR: https://mikeindustries.com/blog/archive/2004/08/sifr
more sIFR: https://mikeindustries.com/blog/files/sifr/2.0/

But for running text (the main body of text) you will have to use "universal" fonts.

Share this post


Link to post
Share on other sites

go to font websites to download them but the css script is right but the only problem with using other font you have to disaply the universal fonts in the css script if your one of those people that like to have their website validated. but reguardless of that the universal fonts would have to put into the script so it will run properly

Share this post


Link to post
Share on other sites

The most common fonts used on a website is Verdana and Times New Roman, as they're the easiest to read. You're more than welcome to visit and download from the free font websites, but I doubt it my show up on the browser.

Share this post


Link to post
Share on other sites

The most common fonts used on a website is Verdana and Times New Roman, as they're the easiest to read. You're more than welcome to visit and download from the free font websites, but I doubt it my show up on the browser.

I wouldn't use Times New Roman on a website, ever. If you want to use a serif font on a website, at least make sure it's a font which looks good on a screen. You would be better off using Georgia (which has been designed especially for computer screens). I think Palatino looks well too (and Palatino is included as a standard font in most modern OSs).

Share this post


Link to post
Share on other sites

i think it may be same as my problem... because as of my language still not completely standardize with unicode and unicode compliant fonts, so its become a big issue on web development. not just easy translation every scripts(e.g.phpbb, wordpress..) to access in my own language.
so i have to find lot of other resources and also looking for most browsers compatibility. this topic aim to solve this issue.. this css tutorial link also help a lot on non standard font enable writing in textarea..
nice sharing :unsure:

Share this post


Link to post
Share on other sites

If you are writing content in a language that isn't covered by Unicode yet (whichever language that may be), then I guess you'd have to make sure that you are sending your pages with the right encoding.And if fonts are a problem try sticking to just serif/sans serif/monospaced and which size. That way the users get their preferred fonts.So if you are writing in Elbonian for the Elbonian reading people, you send it with some Elbonian encoding. And since the only people who are reading your Elbonian text are Elbonians themselves, they will have the right fonts, right?(Elbonia is not a real country)

Share this post


Link to post
Share on other sites

you could simply just make an image with the text in the desired font upload that and place it where you want the text to be.

And if you use a CSS image replacement technique, you can still have the text in your HTML as well as using an image.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.