Jump to content

GD2 using 'point' system for fonts


cs.punk

Recommended Posts

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

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.

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.