Bug 27809 - Latin larger than Chinese with slight hinting at 9pt
Summary: Latin larger than Chinese with slight hinting at 9pt
Status: NEW
Alias: None
Product: freetype
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Werner Lemberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-23 02:18 UTC by fanhe
Modified: 2010-04-23 20:21 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
There are some pictures in the attachment which can explain the problem clearly. (190.71 KB, application/x-gzip)
2010-04-23 02:18 UTC, fanhe
Details

Description fanhe 2010-04-23 02:18:02 UTC
Created attachment 35248 [details]
There are some pictures in the attachment which can explain the problem clearly.

DejaVu Serif fonts are too big in 9 pt in chinese environment. They are higher than Chinese fonts. And my antialias is ture and hintstyle is slight.
However, if I turn hintstyle to middle or full, the problem will go way. But all fonts are ugly when hintstyle is middle or full in my opinion. I like slight. In addition, Sans and Sans Mono are no problem with slight and middle and full hintstyle.
More information is an attachment below.
Comment 1 Denis Jacquerye 2010-04-23 03:10:46 UTC
Reassigning bug to freetype as this is independant of the font, even if the usecase is DejaVu Serif.

Changing Summary from "Serif in 9 pt is too big!!!" to "Latin larger than Chinese with slight hinting at 9pt"
Comment 2 Ben Laenen 2010-04-23 03:41:17 UTC
As Denis says: we can't do anything about this:

- we don't have any control over the freetype autohinter so we also don't control how big the fonts are rendered at each size. In fact, Sans, Mono and Serif have exactly the same metrics when it comes to the heights of the letters, it's just the algorithms in freetype that trigger it to be different at one specific setting in your particular version of freetype.

- and even if we did control the autohinter, there's no way for us to make sure that our font works with other fonts well at all sizes. Making it work for this specific font would break it for others. There's something called a BASE table in OpenType to handle mixing different scripts, but it's almost completely unsupported and it probably wouldn't work exactly right anyway at these small sizes where hinting is modifying the height of the glyphs.
Comment 3 Werner Lemberg 2010-04-23 06:04:27 UTC
The only solution I see is to manually adjust fontconfig parameters so that the font in slight hinting mode gets a size correction, this is, you load it at, say, 9pt but report it as 10pt.

Similar problems exist with other fonts too, for example, think of using Times and Helvetica at the same time, at the same size: They simply don't fit together.
Comment 4 fanhe 2010-04-23 20:21:20 UTC
(In reply to comment #1)
> Reassigning bug to freetype as this is independant of the font, even if the
> usecase is DejaVu Serif.
> 
> Changing Summary from "Serif in 9 pt is too big!!!" to "Latin larger than
> Chinese with slight hinting at 9pt"

But the font named Droid Serif work correctly at 9pt and work fine at every sizes. Sigh...


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.