Closed pcwalton closed 4 years ago
@bors-servo: r+
:pushpin: Commit 75a9e5d has been approved by pcwalton
:hourglass: Testing commit 75a9e5da57a6cd1095b203989d34616e8c9d2a94 with merge 654dc99ad1a48452f88d3d6ea581aaa21e2c9329...
:broken_heart: Test failed - checks-travis
@bors-servo: r+
:pushpin: Commit d01bc5d has been approved by pcwalton
:hourglass: Testing commit d01bc5d002eafb3ccc7cc6209ac6f1f27fe1d4de with merge ca201ac0c88e0e84fd71d22e999e1d148445fe1f...
:sunny: Test successful - checks-travis Approved by: pcwalton Pushing ca201ac0c88e0e84fd71d22e999e1d148445fe1f to master...
This adds an extension to the HTML canvas API that allows you to pass the
TextMetrics
object returned bymeasure_text()
tofill_text()
and/orstroke_text()
to draw the measured text without laying it out again. It improves performance on thecanvas_nanovg
demo.