Skip to content

fonts: Remove the "fast" shaper - #50236

Merged
mrobinson merged 1 commit into
servo:mainfrom
mrobinson:font-remove-fast-shaper
Nov 25, 2026
Merged

mrobinson merged 1 commit into
servo:mainfrom
mrobinson:font-remove-fast-shaper

Conversation

@mrobinson

Copy link
Copy Markdown
Member

For years, Servo has had a rudimentary shaper that read the kern tables and tried to do a very basic version of shaping itself. This change removes that shaper and all associated code because:

  1. It was rarely used: the fast shaper only ran on LTR ASCII text for fonts with neither GSUB nor GPOS tables. That covers a very small number of situations.
  2. It isn't really faster: My measurements showed that even when bending over backwards to use the fast shaper the difference in performance was within noise or slower on both macOS and Linux. HarfBuzz is a lot faster nowadays and we do a lot more caching.
  3. It produces inaccurate results. My testing showed that the fast shaper can produce degraded shaping results in certain conditions.
  4. It added a lot of code complexity and was always considered to be a bad idea. For example see this comment: Add a fast path for shaping ASCII text #11273 (comment).

There are interesting optimizations to shaping coming, so we should finally retire this workaround for a real shaper.

Testing: This should have a very tiny change in behavior, which is unlikely
to be reflected in test results. There isn't a good way to test removal
of this obsolete fast path.

@mrobinson
mrobinson requested a review from nicoburns as a code owner November 25, 2026 15:56
For years, Servo has had a rudimentary shaper that read the `kern` tables
and tried to do a very basic version of shaping itself. This change
removes that shaper and all associated code because:

1. It was rarely used: the fast shaper only ran on LTR ASCII text for
   fonts with neither `GSUB` nor `GPOS` tables. That covers a very small
   number of situations.
2. It isn't really faster: My measurements showed that even when bending
   over backwards to use the fast shaper the difference in performance
   was within noise or slower on both macOS and Linux. HarfBuzz is a lot
   faster nowadays and we do a lot more caching.
3. It produces inaccurate results. My testing showed that the fast
   shaper can produce degraded shaping results in certain conditions.
4. It added a lot of code complexity and was always considered to be a
   bad idea. For example see this comment:
   <servo#11273 (comment)>.

There are interesting optimizations to shaping coming, so we should
finally retire this workaround for a real shaper.

Signed-off-by: Martin Robinson <[email protected]>
@mrobinson
mrobinson force-pushed the font-remove-fast-shaper branch from 358d19c to 1dd9945 Compare November 25, 2026 16:09
@mrobinson
mrobinson added this pull request to the merge queue Nov 25, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 25, 2026
@github-actions

Copy link
Copy Markdown

Test results for linux-wpt from merge queue job (#45690783493):

Flaky unexpected result (22)
  • CRASH [expected OK] /IndexedDB/idbdatabase_deleteObjectStore.any.html
  • ERROR [expected OK] /_mozilla/mozilla/hit-test-pos-fixed.html
  • TIMEOUT [expected OK] /content-security-policy/inheritance/document-write-iframe.html (#47620)
    • TIMEOUT [expected PASS] subtest: document.open() keeps inherited CSPs on transient about:blank.

      Test timed out
      

  • FAIL [expected PASS] /css/css-backgrounds/background-size-041.html
  • TIMEOUT [expected PASS] /dom/nodes/moveBefore/moveBefore-range-iframe-crash.html
  • OK [expected TIMEOUT] /fetch/api/redirect/redirect-keepalive.https.any.html (#32153)
    • PASS [expected TIMEOUT] subtest: [keepalive][iframe][load] mixed content redirect; setting up
  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-same-origin-fragment.html (#20768)
    • PASS [expected FAIL] subtest: Tests that a fragment navigation in the unload handler will not block the initial navigation
  • OK /html/browsers/browsing-the-web/navigating-across-documents/refresh/same-document-refresh.html (#34597)
    • FAIL [expected PASS] subtest: Same-Document Referrer from Refresh

      assert_equals: original page loads expected "http://web-platform.test:8000/html/browsers/browsing-the-web/navigating-across-documents/refresh/resources/refresh-with-section.sub.html?url=%23section" but got "http://web-platform.test:8000/html/browsers/browsing-the-web/navigating-across-documents/refresh/resources/refresh-with-section.sub.html?url=%23section#section"
      

  • TIMEOUT /html/browsers/history/the-history-interface/001.html (#12580)
    • FAIL [expected PASS] subtest: traversing history must also traverse hash changes

      assert_equals: (this could cause other failures later on) expected "" but got "test"
      

  • TIMEOUT [expected OK] /html/browsers/windows/consume-user-activation/window-open-multi-global.html (#47399)
    • TIMEOUT [expected FAIL] subtest: window.open() and consuming user activation with multiple globals in play

      Test timed out
      

  • ERROR [expected OK] /html/semantics/forms/the-input-element/show-picker-disabled-readonly.html (#50169)
  • ERROR [expected OK] /html/semantics/forms/the-input-element/show-picker-does-not-focus.html (#50054)
  • OK /html/semantics/scripting-1/the-script-element/execution-timing/077.html (#22139)
    • FAIL [expected PASS] subtest: adding several types of scripts through the DOM and removing some of them confuses scheduler

      assert_array_equals: expected property 1 to be "Script #1 ran" but got "Script #3 ran" (expected array ["Script #2 ran", "Script #1 ran", "Script #3 ran", "Script #4 ran"] got ["Script #2 ran", "Script #3 ran", "Script #4 ran", "Script #1 ran"])
      

  • OK /html/webappapis/user-prompts/print-during-unload.html (#35944)
    • FAIL [expected PASS] subtest: print() during unload

      assert_array_equals: expected property 1 to be "destination" but got "error: window.print is not a function" (expected array ["start", "destination"] got ["start", "error: window.print is not a function"])
      

  • OK /infrastructure/testdriver/click_iframe.html (#47688)
    • FAIL [expected PASS] subtest: TestDriver click on a document in an iframe

      Unhandled rejection: assert_unreached: click failed Reached unreachable code
      

  • OK /infrastructure/testdriver/click_window.html (#47303)
    • FAIL [expected PASS] subtest: TestDriver click method in window

      Unhandled rejection: assert_unreached: click failed Reached unreachable code
      

  • TIMEOUT [expected OK] /pointerevents/compat/pointerevent_touch-action_two-finger_interaction.html (#50155)
    • NOTRUN [expected PASS] subtest: touch two-finger pan on 'touch-action: pan-x pan-y'
    • NOTRUN [expected FAIL] subtest: touch two-finger pan on 'touch-action: pinch-zoom'
  • OK /upgrade-insecure-requests/gen/sharedworker-classic-data.meta/upgrade/websocket.https.html
    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects allowed for websocket to cross-ws-downgrade origin and no-redirect redirection from https context.

      assert_equals: The resource request should be 'allowed'. expected "allowed" but got "blocked"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects allowed for websocket to same-ws-downgrade origin and no-redirect redirection from https context.

      assert_equals: The resource request should be 'allowed'. expected "allowed" but got "blocked"
      

  • OK /upgrade-insecure-requests/gen/sharedworker-module-data.meta/upgrade/xhr.https.html
    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects allowed for xhr to cross-http-downgrade origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'allowed'. expected "allowed" but got "blocked"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects allowed for xhr to cross-http-downgrade origin and no-redirect redirection from https context.

      assert_equals: The resource request should be 'allowed'. expected "allowed" but got "blocked"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects allowed for xhr to cross-https origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'allowed'. expected "allowed" but got "blocked"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects allowed for xhr to same-http-downgrade origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'allowed'. expected "allowed" but got "blocked"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects allowed for xhr to same-http-downgrade origin and no-redirect redirection from https context.

      assert_equals: The resource request should be 'allowed'. expected "allowed" but got "blocked"
      

    • FAIL [expected PASS] subtest: Upgrade-Insecure-Requests: Expects allowed for xhr to same-https origin and downgrade redirection from https context.

      assert_equals: The resource request should be 'allowed'. expected "allowed" but got "blocked"
      

  • OK /webdriver/tests/classic/external/global_privacy_control/set.py
    • ERROR [expected FAIL] subtest: test_set_gpc_success[True]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_set_gpc_success[False]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_set_gpc_failure[None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_set_gpc_failure[1]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_set_gpc_failure[hello]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_set_gpc_failure[value3]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_set_gpc_failure[value4]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

  • OK /webdriver/tests/classic/get_active_element/iframe.py
    • ERROR [expected FAIL] subtest: test_get_active_element_in_frame[same_origin]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_get_active_element_in_frame[cross_origin]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

  • OK /webdriver/tests/classic/get_title/user_prompts.py
    • ERROR [expected PASS] subtest: test_accept[alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_accept[confirm-True]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_accept[prompt-]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_accept_and_notify[alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_accept_and_notify[confirm-True]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_accept_and_notify[prompt-]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_dismiss[alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_dismiss[confirm-False]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_dismiss[prompt-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_dismiss_and_notify[alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • And 8 more unexpected results...
Stable unexpected results that are known to be intermittent (4)
  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • FAIL [expected PASS] subtest: Matching font-weight: '400' should prefer '350 399' over '351 398'

      assert_equals: Unexpected font on test element expected 487 but got 532
      

  • OK [expected TIMEOUT] /dom/xpath-evaluation-detached-nodes.html (#49715)
  • OK [expected ERROR] /focus/focus-event-after-switching-iframes.sub.html (#40368)
  • OK [expected TIMEOUT] /html/browsers/browsing-the-web/navigating-across-documents/cross-origin-top-navigation-with-user-activation-in-parent.window.html (#48205)
    • FAIL [expected TIMEOUT] subtest: Cross-origin top navigation is blocked without user activation, even if the parent has user activation

      assert_equals: expected "Denied" but got "Allowed"
      

Stable unexpected results (38)
  • OK /css/cssom/getComputedStyle-inset-inline-containing-block-vertical.html
    • FAIL [expected PASS] subtest: Resolved bottom measures the inline containing block's physical height

      assert_equals: expected -9.716666666666665 but got -9.28333333333333
      

  • OK /html/canvas/offscreen/manual/draw-generic-family/2d.text.draw.generic.family.html
    • PASS [expected FAIL] subtest: Test that drawing sans-serif produces the same result between canvas and OffscreenCanvas
    • PASS [expected FAIL] subtest: Test that drawing cursive produces the same result between canvas and OffscreenCanvas
    • PASS [expected FAIL] subtest: Test that drawing fantasy produces the same result between canvas and OffscreenCanvas
    • PASS [expected FAIL] subtest: Test that drawing monospace produces the same result between canvas and OffscreenCanvas
  • OK [expected ERROR] /html/canvas/offscreen/manual/draw-generic-family/2d.text.draw.generic.family.w.html
    • PASS [expected TIMEOUT] subtest: Test that drawing sans-serif produces the same result between canvas and OffscreenCanvas in a Worker
    • PASS [expected TIMEOUT] subtest: Test that drawing serif produces the same result between canvas and OffscreenCanvas in a Worker
    • PASS [expected TIMEOUT] subtest: Test that drawing cursive produces the same result between canvas and OffscreenCanvas in a Worker
    • PASS [expected TIMEOUT] subtest: Test that drawing fantasy produces the same result between canvas and OffscreenCanvas in a Worker
    • PASS [expected TIMEOUT] subtest: Test that drawing monospace produces the same result between canvas and OffscreenCanvas in a Worker
  • PASS [expected FAIL] /html/canvas/offscreen/manual/text/canvas.2d.offscreen.direction.html
  • OK /html/canvas/offscreen/text/2d.text.draw.align.center.worker.html
    • PASS [expected FAIL] subtest: textAlign center is the center of the em squares (not the bounding box)
  • OK /html/canvas/offscreen/text/2d.text.draw.align.end.ltr.worker.html
    • PASS [expected FAIL] subtest: textAlign end with ltr is the right edge
  • OK /html/canvas/offscreen/text/2d.text.draw.align.end.rtl.worker.html
    • PASS [expected FAIL] subtest: textAlign end with rtl is the left edge
  • OK /html/canvas/offscreen/text/2d.text.draw.align.left.worker.html
    • PASS [expected FAIL] subtest: textAlign left is the left of the first em square (not the bounding box)
  • OK /html/canvas/offscreen/text/2d.text.draw.align.right.worker.html
    • PASS [expected FAIL] subtest: textAlign right is the right of the last em square (not the bounding box)
  • OK /html/canvas/offscreen/text/2d.text.draw.align.start.ltr.worker.html
    • PASS [expected FAIL] subtest: textAlign start with ltr is the left edge
  • OK /html/canvas/offscreen/text/2d.text.draw.align.start.rtl.worker.html
    • PASS [expected FAIL] subtest: textAlign start with rtl is the right edge
  • OK /html/canvas/offscreen/text/2d.text.draw.baseline.alphabetic.worker.html
    • PASS [expected FAIL] subtest: 2d
  • OK /html/canvas/offscreen/text/2d.text.draw.baseline.bottom.worker.html
    • PASS [expected FAIL] subtest: textBaseline bottom is the bottom of the em square (not the bounding box)
  • OK /html/canvas/offscreen/text/2d.text.draw.baseline.middle.worker.html
    • PASS [expected FAIL] subtest: textBaseline middle is the middle of the em square (not the bounding box)
  • OK /html/canvas/offscreen/text/2d.text.draw.baseline.top.worker.html
    • PASS [expected FAIL] subtest: textBaseline top is the top of the em square (not the bounding box)
  • OK /html/canvas/offscreen/text/2d.text.draw.fill.maxWidth.bound.worker.html
    • PASS [expected FAIL] subtest: fillText handles maxWidth based on line size, not bounding box size
  • OK /html/canvas/offscreen/text/2d.text.draw.fontface.notinpage.worker.html
    • PASS [expected FAIL] subtest: @font-face fonts should work even if they are not used in the page
  • OK /html/canvas/offscreen/text/2d.text.draw.fontface.repeat.worker.html
    • PASS [expected FAIL] subtest: Draw with the font immediately, then wait a bit until and draw again. (This crashes some version of WebKit.)
  • OK /html/canvas/offscreen/text/2d.text.draw.fontface.worker.html
    • PASS [expected FAIL] subtest: 2d
  • OK /html/canvas/offscreen/text/2d.text.draw.space.basic.worker.html
    • PASS [expected FAIL] subtest: U+0020 is rendered the correct size (1em wide)
  • OK /html/canvas/offscreen/text/2d.text.draw.space.collapse.end.worker.html
    • PASS [expected FAIL] subtest: Space characters at the end of a line are NOT collapsed
  • OK /html/canvas/offscreen/text/2d.text.draw.space.collapse.nonspace.worker.html
    • PASS [expected FAIL] subtest: Non-space characters are not converted to U+0020 and collapsed
  • OK /html/canvas/offscreen/text/2d.text.draw.space.collapse.other.worker.html
    • PASS [expected FAIL] subtest: Space characters are converted to U+0020, and are NOT collapsed
  • OK /html/canvas/offscreen/text/2d.text.draw.space.collapse.space.worker.html
    • PASS [expected FAIL] subtest: Space characters are converted to U+0020, and are NOT collapsed
  • OK /html/canvas/offscreen/text/2d.text.draw.space.collapse.start.worker.html
    • PASS [expected FAIL] subtest: Space characters at the start of a line are NOT collapsed
  • OK /html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.small-font.worker.html
    • PASS [expected FAIL] subtest: Testing that actualBoundingBox metrics are precise at small font sizes
  • OK /html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.whitespace.worker.html
    • PASS [expected FAIL] subtest: Testing actualBoundingBox with leading/trailing whitespace
  • OK /html/canvas/offscreen/text/2d.text.measure.emHeights.worker.html
    • PASS [expected FAIL] subtest: Testing emHeights
  • OK /html/canvas/offscreen/text/2d.text.measure.fontBoundingBox.ahem.worker.html
    • PASS [expected FAIL] subtest: Testing fontBoundingBox for font ahem
  • OK /html/canvas/offscreen/text/2d.text.measure.width.basic.worker.html
    • PASS [expected FAIL] subtest: The width of character is same as font used
  • OK /html/canvas/offscreen/text/2d.text.measure.width.nullCharacter.html
    • FAIL [expected PASS] subtest: Null character does not take up space

      assert_equals: ctx.measureText('\u0000').width === 0 (got 50[number], expected 0[number]) expected 0 but got 50
      

  • OK /html/canvas/offscreen/text/2d.text.measure.width.space.worker.html
    • PASS [expected FAIL] subtest: Space characters are converted to U+0020 and NOT collapsed
  • OK /html/rendering/non-replaced-elements/form-controls/resets.html
    • FAIL [expected PASS] subtest: &lt;optgroup&gt;&lt;option&gt; (in &lt;select&gt;) - letter-spacing

      assert_equals: expected "normal" but got ""
      

    • FAIL [expected PASS] subtest: &lt;optgroup&gt;&lt;option&gt; (in &lt;select&gt;) - word-spacing

      assert_equals: expected "0px" but got ""
      

    • FAIL [expected PASS] subtest: &lt;optgroup&gt;&lt;option&gt; (in &lt;select&gt;) - line-height

      assert_equals: expected "normal" but got ""
      

    • FAIL [expected PASS] subtest: &lt;optgroup&gt;&lt;option&gt; (in &lt;select&gt;) - text-transform

      assert_equals: expected "none" but got ""
      

    • FAIL [expected PASS] subtest: &lt;optgroup&gt;&lt;option&gt; (in &lt;select&gt;) - text-indent

      assert_equals: expected "0px" but got ""
      

    • FAIL [expected PASS] subtest: &lt;optgroup&gt;&lt;option&gt; (in &lt;select&gt;) - text-shadow

      assert_equals: expected "none" but got ""
      

    • FAIL [expected PASS] subtest: &lt;optgroup&gt;&lt;option&gt; (in &lt;select&gt;) - text-align

      assert_equals: expected "start" but got ""
      

    • FAIL [expected PASS] subtest: &lt;optgroup&gt;&lt;option&gt; (in &lt;select&gt;) - overflow

      assert_equals: expected "visible" but got ""
      

    • FAIL [expected PASS] subtest: &lt;optgroup&gt;&lt;option&gt; (in &lt;select&gt;) - overflow-clip-margin

      assert_equals: expected "0px" but got ""
      

    • FAIL [expected PASS] subtest: &lt;optgroup&gt;&lt;option&gt; (in &lt;select&gt;) - align-content

      assert_equals: expected "normal" but got ""
      

    • And 12 more unexpected results...
  • OK /html/rendering/the-details-element/details-display.html
    • FAIL [expected PASS] subtest: default display of other summary element in details is block

      assert_equals: expected "block" but got ""
      

    • FAIL [expected PASS] subtest: display of other summary element in details can be changed

      assert_equals: expected "flex" but got ""
      

  • OK /html/rendering/widgets/shadow-dom.html
    • PASS [expected FAIL] subtest: &lt;video controls=""&gt;&lt;/video&gt; has a shadow tree with no slots
    • PASS [expected FAIL] subtest: &lt;audio controls=""&gt;&lt;/audio&gt; has a shadow tree with no slots
  • OK /html/rendering/widgets/the-select-element/select-as-listbox-default-styles.tentative.html
    • FAIL [expected PASS] subtest: &lt;option&gt;1 (in &lt;select multiple=""&gt;) - margin-top

      assert_equals: expected "0px" but got ""
      

    • FAIL [expected PASS] subtest: &lt;option&gt;1 (in &lt;select multiple=""&gt;) - margin-right

      assert_equals: expected "0px" but got ""
      

    • FAIL [expected PASS] subtest: &lt;option&gt;1 (in &lt;select multiple=""&gt;) - margin-bottom

      assert_equals: expected "0px" but got ""
      

    • FAIL [expected PASS] subtest: &lt;option&gt;1 (in &lt;select multiple=""&gt;) - margin-left

      assert_equals: expected "0px" but got ""
      

    • FAIL [expected PASS] subtest: &lt;option&gt;1 (in &lt;select multiple=""&gt;) - padding-top

      assert_equals: expected "0px" but got ""
      

    • FAIL [expected PASS] subtest: &lt;option&gt;1 (in &lt;select multiple=""&gt;) - padding-right

      assert_equals: expected "0px" but got ""
      

    • FAIL [expected PASS] subtest: &lt;option&gt;1 (in &lt;select multiple=""&gt;) - padding-bottom

      assert_equals: expected "0px" but got ""
      

    • FAIL [expected PASS] subtest: &lt;option&gt;1 (in &lt;select multiple=""&gt;) - padding-left

      assert_equals: expected "0px" but got ""
      

    • FAIL [expected PASS] subtest: &lt;option&gt;1 (in &lt;select multiple=""&gt;) - letter-spacing

      assert_equals: expected "normal" but got ""
      

    • FAIL [expected PASS] subtest: &lt;option&gt;1 (in &lt;select multiple=""&gt;) - word-spacing

      assert_equals: expected "0px" but got ""
      

    • And 119 more unexpected results...
  • OK /html/semantics/forms/the-select-element/customizable-select/option-color-inheritance.html
    • FAIL [expected PASS] subtest: option elements should inherit color from their parent select element.

      assert_equals: color expected "rgb(12, 34, 56)" but got ""
      

  • OK /html/semantics/forms/the-select-element/customizable-select/option-disabled-optgroup.html
    • FAIL [expected PASS] subtest: options should check ancestor optgroup for disabled state.

      assert_equals: color before optgroup disabled expected "rgb(0, 0, 0)" but got ""
      

Merged via the queue into servo:main with commit 1c8e13f Nov 25, 2026
35 checks passed
@mrobinson
mrobinson deleted the font-remove-fast-shaper branch November 25, 2026 22:59
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 25, 2026
devin-ai-integration Bot pushed a commit to baigojahanzaib/servo that referenced this pull request Nov 28, 2026
For years, Servo has had a rudimentary shaper that read the `kern`
tables and tried to do a very basic version of shaping itself. This
change removes that shaper and all associated code because:

1. It was rarely used: the fast shaper only ran on LTR ASCII text for
fonts with neither `GSUB` nor `GPOS` tables. That covers a very small
number of situations.
2. It isn't really faster: My measurements showed that even when bending
over backwards to use the fast shaper the difference in performance was
within noise or slower on both macOS and Linux. HarfBuzz is a lot faster
nowadays and we do a lot more caching.
3. It produces inaccurate results. My testing showed that the fast
shaper can produce degraded shaping results in certain conditions.
4. It added a lot of code complexity and was always considered to be a
bad idea. For example see this comment:
<servo#11273 (comment)>.

There are interesting optimizations to shaping coming, so we should
finally retire this workaround for a real shaper.

Testing: This should have a very tiny change in behavior, which is
unlikely
to be reflected in test results. There isn't a good way to test removal
of this obsolete fast path.

Signed-off-by: Martin Robinson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants