Skip to content

v0.9.0

Compare
Choose a tag to compare
@frank-weindel frank-weindel released this 14 May 15:26
· 21 commits to main since this release
70af9d4

What's Changed

  • Text Rendering: Reported Text Height Changes (Phase 1+2+3) by @frank-weindel in #257
    • Additionally fixes:
      • Canvas Text: Reported dimensions do not include descenders #157
      • SDF Text: Presence of descenders results to higher reported height than when they are absent #165
    • ⚠️ Breaking Change:
      • Constructors for WebTrFontFace and SdfTrFontFace have changed to use objects and add the ability to provide font metrics which are REQUIRED for SDF fonts and HIGHLY RECOMMENDED for Web/Canvas fonts. Use the L3 msdf-generator to get these metrics.
      • Text alignment will be different because of these metrics and the now defaulting ofverticalAlign to 'middle'. Please try to adjust to this new behavior instead of trying to change them back to how they were.
  • Fix textAlign property of Canvas text by @Drulokia and @frank-weindel in #265

Performance

Non-User Facing

Full Changelog: v0.8.4...v0.9.0