cs.punk Posted September 22, 2011 Share Posted September 22, 2011 imagettftext is used to write text to an image using TrueType fonts. Size being one of the parameters: The font size. Depending on your version of GD, this should be specified as the pixel size (GD1) or point size (GD2). An inch representing 72 points. However how is the point size calculated? Is it based on the servers/clients screen resolution? Quote Link to comment https://forums.phpfreaks.com/topic/247671-gd2-using-point-system-for-fonts/ Share on other sites More sharing options...
requinix Posted September 22, 2011 Share Posted September 22, 2011 According to the source code it's hardcoded at 96 pixels per inch. Quote Link to comment https://forums.phpfreaks.com/topic/247671-gd2-using-point-system-for-fonts/#findComment-1271846 Share on other sites More sharing options...
xyph Posted September 22, 2011 Share Posted September 22, 2011 You'll have to go by look and feel. The font pretty much decides how big 72pt will be. 72pt in FontA could be much different than 72pt in FontB. And this all means even less when displayed on a monitor, where pixels per inch can vary widely. Quote Link to comment https://forums.phpfreaks.com/topic/247671-gd2-using-point-system-for-fonts/#findComment-1271864 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.