Closed Bug 375662 Opened 17 years ago Closed 17 years ago

Fix a couple of ATSUI issues

Categories

(Core :: Graphics, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: roc, Assigned: roc)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch fix (obsolete) — Splinter Review
1) SetupClusterBoundaries is totally broken. It needs to set kUCTextBreakLeadingEdgeMask for the calls to UCFindTextBreak and it needs to not just ignore the first break found. (This only affects new textframe.)

2) See
http://weblogs.mozillazine.org/roc/archives/2007/02/superlaser_targ.html#comments
The issues I saw with trailing whitespace are apparently "as intended". Instead of messing around with the output as I did, a slightly simpler workaround is to append a non-whitespace character, say ".", to the text when we wrap it in LRO/RLO + PDF. Then there is no trailing whitespace. It's easy to ignore that character's glyph in PostLayoutCallback.

While making this change I also changed the string length passed into InitTextRun and MakeTextRunInternal to include any wrapping characters. This is better than before, when I left it as the length of the original string, even though aString pointed to the wrapped string not the original string.

I reran font selection and other tests and things look good.
Attachment #259888 - Flags: review?(vladimir)
Attached patch real patchSplinter Review
The last patch omitted the .h changes.
Attachment #259888 - Attachment is obsolete: true
Attachment #259890 - Flags: review?(vladimir)
Attachment #259888 - Flags: review?(vladimir)
checked in.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: