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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.