Open Bug 2089278 Opened 9 days ago Updated 5 days ago

Fit unspaced text while accumulating glyph metrics

Categories

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

enhancement

Tracking

()

ASSIGNED

People

(Reporter: mayankleoboy1, Assigned: mayankleoboy1)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file, 6 obsolete files)

Fit a single font run during the existing glyph measurement pass when
spacing and hyphenation are absent and loose ink bounds are requested.
Keep call-local snapshots of glyph-dependent metrics at accepted breaks,
including emergency wrapping, break-spaces and trimmable whitespace.
Finalize the selected prefix through the existing font metrics, RTL,
synthetic-oblique, baseline and platform-padding code.

Retain the general path for multiple font runs, spacing, hyphenation,
tight bounds and partial ligatures. Specialize ordinary measurement so
callers that do not fit text have no per-glyph fitting checks. Also batch
simple unbreakable glyph spans in the eligible general fitting path.

No persistent cache or text-run invalidation machinery is introduced.

Blocks: speedometer3
See Also: → 2089286

Sum simple non-space glyphs without break flags in a compact loop when
spacing, hyphenation and additional wrapping opportunities are absent.
Retain ligature boundaries and reset trailing-whitespace state after a
non-space span. Skip buffer refills when neither spacing nor hyphenation
data is needed.

This optimization is independent of fused fitting and glyph measurement.

Attachment #9674550 - Attachment description: WIP: Bug 2089278 - Fit unspaced text while accumulating glyph metrics. → Bug 2089278 - Fit unspaced text while accumulating glyph metrics.
Attachment #9674568 - Attachment description: WIP: Bug 2089278 - Batch simple glyph spans in general text fitting. → Bug 2089278 - Batch simple glyph spans in general text fitting.
Assignee: nobody → mayankleoboy1
Status: NEW → ASSIGNED
See Also: → 2090465

Comment on attachment 9674568 [details]
Bug 2089278 - Batch simple glyph spans in general text fitting.

Revision D339778 was moved to bug 2090465. Setting attachment 9674568 [details] to obsolete.

Attachment #9674568 - Attachment is obsolete: true
Attachment #9674550 - Attachment description: Bug 2089278 - Fit unspaced text while accumulating glyph metrics. → Bug 2089278 - Fit unspaced text while accumulating glyph metrics
Attachment #9677380 - Attachment is obsolete: true
Attachment #9677381 - Attachment is obsolete: true
Attachment #9674550 - Attachment is obsolete: true
Attachment #9677385 - Attachment is obsolete: true
Attachment #9677384 - Attachment is obsolete: true

Fit a single font run during the existing glyph measurement pass when
spacing and hyphenation are absent and loose ink bounds are requested.
Keep call-local snapshots of glyph-dependent metrics at accepted breaks,
including emergency wrapping, break-spaces and trimmable whitespace.
Finalize the selected prefix through the existing font metrics, RTL,
synthetic-oblique, baseline and platform-padding code.

Retain the general path for multiple font runs, spacing, hyphenation,
tight bounds and partial ligatures. Specialize ordinary measurement so
callers that do not fit text have no per-glyph fitting checks. Also batch
simple unbreakable glyph spans in the eligible general fitting path.

No persistent cache or text-run invalidation machinery is introduced.

Attachment #9677674 - Attachment description: WIP: Bug 2089278 - Fit unspaced text while accumulating glyph metrics. r=#gfx-reviewers → Bug 2089278 - Fit unspaced text while accumulating glyph metrics. r=#gfx-reviewers
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: