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? 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. 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. 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
Archived
This topic is now archived and is closed to further replies.