Open Bug 986580 Opened 11 years ago Updated 3 years ago

Enable harfbuzz support in freetype (2.5.3+)

Categories

(Core :: Graphics: Text, enhancement)

enhancement

Tracking

()

People

(Reporter: mwu, Unassigned)

References

Details

Attachments

(1 file)

I figured out how to turn on harfbuzz support, as requested in bug 985803 comment 4 , but I have no idea if it's doing anything good. Jonathan, do you want to try this and see if this seems to give reasonable results? At the very least, it builds and continues to render text reasonably.
Attachment #8394914 - Flags: review?(jfkthame)
This patch will require the patch from 985806 to be applied first.
I'll also be requesting review from a build peer for this changes, but I figure we should find out if it's doing something reasonable first.
Sorry I haven't gotten to this yet. In theory, enabling harfbuzz support should result in more consistent glyph hinting for things like glyph variants that are only accessed via OpenType features, not as default Latin-script glyphs. But finding/creating examples where the difference is visible may take a bit of digging around.

Is this something we'd still want to do?

Flags: needinfo?(jfkthame)
Type: defect → task

As I understand it, this would primarily (only?) affect Android builds, as that's where we use the in-tree freetype; Linux builds typically use system freetype (so they'll be affected by how the system lib is built, but that's out of our hands), and Windows and macOS don't use it at all.

Not sure what the current situation is with regard to hinting settings on Android; it's possible we're rendering without hinting anyhow, in order to ensure linear scaling for pinch-zoom, in which case I don't know if the harfbuzz support here (which is used to assist the FT autohinter) would actually come into play or not.

Short answer: I'm unsure how much value - if any - this would offer us; OTOH, it shouldn't have any ill effects, so no harm in trying.

Flags: needinfo?(jfkthame)

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: mwu.code → nobody
Flags: needinfo?(lsalzman)
Type: task → enhancement
Flags: needinfo?(lsalzman)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: