Closed Bug 1134216 Opened 5 years ago Closed 5 years ago

auto-hyphenation fails in content where text-transform has caused a change in string length

Categories

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

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla38
Tracking Status
firefox38 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

Details

Attachments

(2 files)

If we end up needing to "merge" characters in a transformed textrun, as when "ß" is uppercased to "SS", any automatic hyphenation that may have been applicable will be lost.

Testcase:

  data:text/html;charset=utf-8,<div lang="de"
    style="width:0px;-moz-hyphens:auto;text-transform:uppercase">straße

should break as "STRA-SSE", but does not hyphenate at all.

This happens because nsCaseTransformTextRunFactory::TransformString treats its aCanBreakBeforeArray as being an array of bools, whereas it should be an array of break-flags values as defined for gfxShapedText::CompressedGlyph.
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Attachment #8565990 - Flags: review?(smontagu) → review+
Attachment #8565991 - Flags: review?(smontagu) → review+
You need to log in before you can comment on or make changes to this bug.