- #1
mtanti
- 172
- 0
Has anyone noticed that the font size for Flash and the font size for GD images in PHP don't give the same text size?
mtanti said:Has anyone noticed that the font size for Flash and the font size for GD images in PHP don't give the same text size?
This could be due to the fact that Flash and PHP use different methods for calculating font sizes. In Flash, font sizes are measured in pixels, while in PHP, font sizes are measured in points. This can result in slight discrepancies in the actual size of the font.
One solution is to manually adjust the font sizes in your code to ensure that they are consistent between Flash and PHP. Another option is to use a conversion tool to convert the font sizes from pixels to points or vice versa.
Yes, you can use CSS to set font sizes in both Flash and PHP. However, keep in mind that the default units for font sizes in Flash and PHP are different, so you may need to adjust your CSS code accordingly.
Yes, the font itself can also play a role in the perceived size of the font. For example, a bold font may appear larger than a regular font, even if they are set to the same size in the code.
One way to ensure consistency in font sizes between Flash and PHP is to use a standard font that is available in both platforms. This can help minimize any discrepancies caused by different font types.