Closed Bug 623495 Opened 14 years ago Closed 13 years ago

Turn on harfbuzz shaper by default for Hebrew on OS X

Categories

(Core :: Layout: Text and Fonts, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla5

People

(Reporter: smontagu, Assigned: jfkthame)

References

Details

Attachments

(1 file, 1 obsolete file)

Rendering of Hebrew with harbuzz turned on (gfx.font_rendering.harfbuzz.level set to 3) gives much better results for placement of diacritics and cantillation marks in fonts with good open type tables, and is no worse than CoreText in other fonts.
To handle this, it seems like a good time to revise how script-to-shaper dispatching is handled. Instead of a simple "hierarchy" of script complexity, let's use a collection of bit flags that allow the various kinds of shaper to be enabled or disabled independently. This makes it easy to split out Hebrew from the other scripts. We may also find, as harfbuzz shapers develop, that we want to switch on shaping for Hangul, Mongolian, and Indic at different times, and it's not clear which order these will happen, so the old "shaping level" model would potentially need to be repeatedly modified; bit flags give us more flexibility.
Assignee: nobody → jfkthame
Attachment #508810 - Flags: review?(smontagu)
(Sorry for the bugspam, forgot to do this earlier before posting the patch.)
Updated to consolidate the script-shaping test into gfxPlatform, rather than duplicating it in the gfxFont subclasses.
Attachment #508810 - Attachment is obsolete: true
Attachment #508863 - Flags: review?(smontagu)
Attachment #508810 - Flags: review?(smontagu)
Attachment #508863 - Flags: review?(smontagu) → review+
After the fix for bug 635639 is checked in, can we extend this to all platforms, or are there other problems with older Hebrew fonts in harfbuzz?
Blocks: 648248
Pushed this to the cedar branch:
http://hg.mozilla.org/projects/cedar/rev/e1167451033f
(In reply to comment #3)
> After the fix for bug 635639 is checked in, can we extend this to all
> platforms, or are there other problems with older Hebrew fonts in harfbuzz?

We can probably do this, but it'd be good to test a variety of Hebrew fonts on Windows and Linux before actually making the change. I'd suggest we track that in a separate bug.
Whiteboard: [fixed-in-cedar]
http://hg.mozilla.org/mozilla-central/rev/e1167451033f
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-cedar]
Target Milestone: --- → mozilla2.2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: