Page 1 of 1
Add a font in C:/WINDOWS/Fonts
Posted: Thu Apr 09, 2009 1:14 am
by sandy24dec
Hello, this is sandeep. This is my first post.
We are developing a website in php. We are using a few new fonts, and I would like to know how to add that fonts to the server.
Re: Add a font in C:/WINDOWS/Fonts
Posted: Thu Apr 09, 2009 1:47 pm
by Bruno De Barros
I think you can just do:
Code: Select all
copy("C:/path/to/YourFont.ttf", "C:/WINDOWS/Fonts/YourFont.ttf");
I'm assuming this is a Windows Server (obvious much?

), so there should be no problems with permissions.
Re: Add a font in C:/WINDOWS/Fonts
Posted: Thu Apr 09, 2009 3:04 pm
by pickle
If these fonts are for inclusion in the website, they need to be on the client machine - not the server.
If these fonts are for building graphics, forget I said anything.
Re: Add a font in C:/WINDOWS/Fonts
Posted: Tue Apr 21, 2009 11:15 am
by mattpointblank
If you want to use a font to display some text on the page, it might be better to use something like sIFR (Flash-based custom font rendering) which is simpler than messing with client machines if you just want some nicer-looking headings.
Re: Add a font in C:/WINDOWS/Fonts
Posted: Sun Apr 26, 2009 2:20 am
by coalgames
Usually, clients do not want to download a font just to view your site (let alone someone that just got to it from a search engine).
There are many fonts to choose from and if it is not avaliable, the default browser font will be used.
It is best to just use fonts that are common such as: Times New Roman, Sans, Serif, Arial, and Verdana.
Re: Add a font in C:/WINDOWS/Fonts
Posted: Sun Apr 26, 2009 8:41 am
by jayshields
Best option is just to embed the font in an image. Second best is use flash font rendering, as mentioned. Both methods have pros and cons.
Last option is to offer a font file download, and use that font as your font in your CSS. I highly doubt anyone would actually download and install your font just for your website though.
Re: Add a font in C:/WINDOWS/Fonts
Posted: Sun Jun 28, 2009 1:53 am
by silenceghost
Have you tried
<LINK REL="fontdef" SRC="font/font.pfr">
it just cache the font on client machine and use that cache font and your browser use it
but it has it's limitation it only use pfr and eot font
it doesnot support ttf font
but there are bunch of software that can convert ttf to eot just google it