Discussion Overview
The discussion revolves around the differences in font sizes between Flash and GD images in PHP, focusing on potential discrepancies in measurement units and how to align them for consistent text display.
Discussion Character
- Debate/contested
- Technical explanation
- Exploratory
Main Points Raised
- Some participants note that Flash and GD images in PHP appear to have different text sizes, suggesting a possible difference in measurement units.
- One participant questions whether Flash uses pixels instead of points, indicating that some tutorials suggest it uses points.
- Another participant mentions that Flash uses pixel fonts, which are essentially images, but expresses confusion over why the sizes differ.
- It is stated that PHP uses points when utilizing GD, but there is uncertainty about how to change units in either PHP or Flash.
- One suggestion is made to use CSS to experiment with font sizes, including using style attributes to set font sizes in points or pixels.
- A participant points out that the CSS method may only work with monospaced fonts and expresses a need for a way to change the size type.
- Another participant suggests using imagefontwidth() and imagefontheight() in GD to determine font size, and mentions drawing with imagettftext() as an alternative.
- One participant highlights the challenge of determining the required space for text in Flash when PHP uses points and Flash uses pixels, indicating a mismatch in dimensions.
Areas of Agreement / Disagreement
Participants express differing views on the measurement units used by Flash and PHP, and there is no consensus on how to resolve the discrepancies in font sizes.
Contextual Notes
There are unresolved assumptions regarding the measurement units used by Flash and PHP, and the discussion includes various methods to address font size discrepancies without reaching a definitive solution.