How can I add nonstandard fonts to a PHP form?

I am trying to get a PHP form to match the other pages in my site, http://www.morwynscloset.com .
I have gotten the background to match but I cannot get the font to work.
Any help would be apreciated.

follow the steps

  1. copy your desired font into a folder in your website.

  2. add the following to your css file

@font-face {
font-family: font_name;
src: url(‘fontlocation/fontname.ttf’);
}

  1. then u can use that font to whatever style you want. Ex:

p {
font-family: font_name;
}


NOTE: in the font-family: font_name, no need to add .ttf extent… just font name is enough…

Regards,

;D
Got it to work…Final Product:

http://www.morwynscloset.com/Photo_UpLoader/form.php

Thanks for the advice

BTW: the actual code came out like this:

@font-face {
font-family: ChopinScript;
src: url(‘ChopinScript-webfont.eot’);
src: local(‘:slight_smile:’), url(‘ChopinScript-webfont.woff’) format(‘woff’), url(‘ChopinScript-webfont.ttf’) format(‘truetype’), url(‘ChopinScript-webfont.svg#webfontSkQKvGGN’) format(‘svg’);
}

Note: This @font-face uses EOT primarily, with WOFF, TTF, and SVG font types concurrently. This is to allow for the font to appear regardless of what browser is used. The primary @font-face was provided by fontsquirrel.com. You do need all font type files in your directory.

Sponsor our Newsletter | Privacy Policy | Terms of Service