Jump to content

Recommended Posts

Hi, how would I go about finding out what True Type fonts are available on the shared server I am on. Need to know so I can create an array of usable fonts to use with the GD library.

Also, how would I go about finding out the font width of a true type font? GD doesn't seem to provide a function for doing so outside of

int imagefontwidth  ( int $font  )

 

Returns the pixel width of a character in font.

which is not compatible with True Type it seems.

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

okay, I saw that tool on the php.net but I'm always weary about downloading EXEs

But, if you recomend it I'll give it a run. Then I can use imageloadfont() and the other functions that go with it, right?

 

Thanks printf

 

Yes, any TTF font that you convert with that program can be used with PHP(s) imageloadfont();

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.