Skip to content

v1.25.0

Choose a tag to compare

@dskripchenko dskripchenko released this 19 Oct 12:41
· 45 commits to main since this release
7bfd1ae

Fixed

  • SVG <text> was always set in base-14 Helvetica, so Cyrillic and any
    other non-Latin text printed as ? — a stamp "ОПЛАЧЕНО" came out as
    "????????". It is set in the document's fonts now: the family chain, the
    fallbacks and the bold/italic faces a paragraph uses.
  • SVG <text> ignored text-anchor (centred labels started at their
    anchor), a group's transform (rotated stamps printed level) and the font
    properties of its group or style. font-family, font-weight,
    font-style, font-size, fill and text-anchor are inherited as SVG
    defines, and the glyphs are placed by a text matrix that follows the
    group's rotation, scale and skew.

Added

  • Page::showTextWithMatrix() — text placed by a full text matrix, in a
    base-14 or an embedded font; SvgRenderer::render() takes an optional
    font resolver.