Brian W Posted February 16, 2009 Share Posted February 16, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/145427-solved-fonts-available/ Share on other sites More sharing options...
printf Posted February 16, 2009 Share Posted February 16, 2009 Convert windows fonts to PHP fonts with Dave's little tool (Win32 App), then upload them on to your server... [ [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/145427-solved-fonts-available/#findComment-763424 Share on other sites More sharing options...
Brian W Posted February 16, 2009 Author Share Posted February 16, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/145427-solved-fonts-available/#findComment-763429 Share on other sites More sharing options...
printf Posted February 16, 2009 Share Posted February 16, 2009 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(); Quote Link to comment https://forums.phpfreaks.com/topic/145427-solved-fonts-available/#findComment-763433 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.