Jump to content

[SOLVED] Fonts available


Brian W

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();

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.