pombreda / pgreloaded

Automatically exported from code.google.com/p/pgreloaded
Other
0 stars 0 forks source link

freetype: improperly calculated size for rotated text #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the attached Python program

What is the expected output? What do you see instead?
The rotated text should fit inside the green rectangle. Instead it is cropped.

What version of the product are you using? On what operating system?
8800a7cb0157 tip

Please provide any additional information below.
It is insufficient to calculate the size of rotated text as a square with side 
length being the maximum of the width and height of the unrotated text.

Original issue reported on code.google.com by pygame-w...@telus.net on 19 Jan 2011 at 6:22

Attachments:

GoogleCodeExporter commented 9 years ago
Oops, here is a test program that uses the sans.ttf in pygame2.examples.

Original comment by pygame-w...@telus.net on 19 Jan 2011 at 5:27

Attachments:

GoogleCodeExporter commented 9 years ago
The reason behind that issue is that the effective text size instead of the 
FreeType bbox information for the glyphs are used.

The same issue applies to overhanging glyphs, italic text, etc.

Original comment by marcusvonappen@googlemail.com on 13 Mar 2011 at 6:51

GoogleCodeExporter commented 9 years ago

Original comment by marcusvonappen@googlemail.com on 31 Mar 2012 at 2:41