liushaolin / gdipp

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

Clipping with 9 pt font size #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which program triggers the problem? Specify the filename if possible.
I've reproduced it in vBulletin forums, Microsoft Word 2010, Notepad

What steps will reproduce the problem?
1. Text written in 9pt size with Verdana or Tahoma font used.
2.
3.

What is the expected output? What do you see instead?
Clipping occurs in character "trails" (I don't know the exact definition)

What version of gdipp (including renderer)? On which operating system?
gdipp 0.8.0 Beta for 32-bit Windows installed with default settings as a
service. I didn't modify any other settings.
OS: Windows 7 RTM, 32bit

Please provide any additional information below. Screenshots always help.
The affected fonts are for sure Verdana and Tahoma. Calibri, Segoe UI and
Arial are ok. I haven't tried with others.

http://img138.imageshack.us/img138/3886/captureqc.png

Original issue reported on code.google.com by gkr...@gmail.com on 27 May 2010 at 12:34

GoogleCodeExporter commented 9 years ago
This problem is caused by the native incompatibility of ClearType and FreeType. 
The
notepad specifies the cell descent to 2 rows, while the generated "g" in 9pt 
has 3
rows descent. Therefore, the bottom 1 row is cut, as your screenshot shows. 
Ad-hoc
fix to this problem is very easy, either by ignoring the descent limit, lifting 
the
baseline of "g" character by 1 pixel, or simulating ClearType so to "project" 
the
missing row to the bottom row. Unfortunately, these tricks may not be 
acceptable as
general solutions for all characters/fonts/point size/applications.

Original comment by crendk...@gmail.com on 3 Jun 2010 at 4:43

GoogleCodeExporter commented 9 years ago

Original comment by crendk...@gmail.com on 3 Jun 2010 at 5:24

GoogleCodeExporter commented 9 years ago
This is solved in the development version. The clipped pixels are put on the 
bottom of the clipping box instead.

There is also a discussion thread in ThemeX forum: 
http://bbs.themex.net/showthread.php?t=16866347.

Original comment by crendk...@gmail.com on 10 Aug 2010 at 5:22

Attachments: