Closed Bug 1173221 Opened 9 years ago Closed 2 years ago

use FreeType embolden for synthetic bold under Android

Categories

(Core :: Graphics: Text, task)

Unspecified
Android
task
Not set
normal

Tracking

()

RESOLVED INACTIVE
Tracking Status
firefox41 --- affected

People

(Reporter: jtd, Unassigned)

Details

For synthetic bolding on Android/FFOS we're using the generic synthetic bolding code, which "stamps" the glyph repeatedly to achieve a bold effect:

http://mxr.mozilla.org/mozilla-central/source/gfx/thebes/gfxFT2Fonts.cpp#163

The Linux code uses the FreeType embolden feature to do this automatically at the glyph level. This is far more efficient and produces better results. To achieve this we need to set the CAIRO_FT_OPTIONS_EMBOLDEN option so that cairo calls FT_GlyphSlot_Embolden for each glyph. Guessing this will mean adding a cairo API for setting this explicitly.

http://mxr.mozilla.org/mozilla-central/source/gfx/cairo/cairo/src/cairo-ft-font.c#183
http://mxr.mozilla.org/mozilla-central/source/gfx/cairo/cairo/src/cairo-ft-font.c#2280
Keywords: feature
Summary: use FreeType embolden for synthetic bold under Andriod/FFOS → use FreeType embolden for synthetic bold under Android

The bug assignee didn't login in Bugzilla in the last 7 months.
:lsalzman, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: jd.bugzilla → nobody
Flags: needinfo?(lsalzman)
Flags: needinfo?(lsalzman)
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.