Summary: | Incorrect emulation of Bold style. | ||
---|---|---|---|
Product: | cairo | Reporter: | Daniel Fishman <quantera> |
Component: | freetype font backend | Assignee: | Carl Worth <cworth> |
Status: | RESOLVED MOVED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | high | CC: | mozilla, sunmoon1997 |
Version: | 1.2.4 | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Boldness emulation under Linux
Boldness emulation under Windows. |
Description
Daniel Fishman
2006-10-11 09:08:47 UTC
The tif files linked are nonexistant. Please attach them to the bug. Created attachment 7360 [details]
Boldness emulation under Linux
Here is a screenshot which shows boldness emulation for Monaco True Type font
(Linux).
Created attachment 7361 [details]
Boldness emulation under Windows.
This is a screenshot of boldness emulation for Monaco True Type font under
Windows. It is possible to generate .bdf font from Monaco and it would be
rendered under Linux exactly like in the attached screenshot under Windows - I
didn't attach suitable screenshot from Linux because I had a problem generating
.bdf font, but David Turner mentioned above did it (I don't want to attach his
screenshot without permission).
It seems the problem is we get very bad results if hinting is enabled and even worse if antialiasing is disabled too while emboldening glyphs. I have almost the same problem with simsun too. I have a dirty hack in my own cairo tree that does render the glyph to bitmap then embolden it if FC_HINTING is not FC_NO_HINTING and antialias is disabled and glyph size is small(I also have a patch for libXft). But we don't know the glyph is really hinted by freetype or not and it seems there's no way to detect that :(. Do I see correctly that this bug still exists in Cairo 1.6.x? It calls FT_GlyphSlot_Embolden() while I understand from the FreeType docs and past posts to the FT list that FT_Outline_Embolden() or FT_Bitmap_Embolden() should be superior, but dependent on the font format. I just don't understand how to express the emboldening strength in 26.6 format otherwise I would have tested if that works... -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/133. |
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.