Jump to content

Fonts


Porl123

Recommended Posts

I wasn't really sure whether this was php or html but I was wondering how about fonts. When you use a font with font-family: or font face="" it only lets the user see the font if they have the specific font in their fonts folder. I was just wondering if there was a way of uploading a font to your web space and linking it to a file so others can see it.

 

If I'm way off please tell me :P thanks

Link to comment
https://forums.phpfreaks.com/topic/175692-fonts/
Share on other sites

you can get the font you want, and put it in a folder , then use gd to show that font on the user's page....

 

 

well i think gd works that way (anyone correct me...?

Through PHP GD you can load fonts and use them in images, but not on a website's text.

Link to comment
https://forums.phpfreaks.com/topic/175692-fonts/#findComment-925980
Share on other sites

If you have the font on your server, you can use it to write text to an image with the GD library, yes.  By the time it gets to the user, it's an image, not text. 

 

IMO the best thing you can do if you wish to use the font on your site, is to offer a link to the user to download and install the font.  In your css, offer multiple font choices so the browser can fall back to alternatives if the user doesn't have it installed, of course.

Link to comment
https://forums.phpfreaks.com/topic/175692-fonts/#findComment-926058
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.