pypi weasyprint 67.0
v67.0

2 hours ago

Dependencies

  • Python 3.10+ is now needed, Python 3.9 is not supported anymore
  • tinycss2 1.5.0+ is now needed
  • fontTools 4.59.2+ is now needed

Features

  • #2560, #640, #844, #1091, #2517: Support CMYK colors, PDF/X, color profiles and light-dark() function
  • #2558, #1175: Support ::first-line, with financial support from Karte Technology
  • #2552: Support CSS layers, with financial support from Code & Co.
  • #2564, #2599, #2397: Allow page breaks in grid rows, with financial support from Ocean Recap
  • #2568, #357: Support calc() and other mathematical functions
  • #2575, #2574: Support PDF/A-1a, PDF/A-2a and PDF/A-3a
  • #2611, #2573: Support PDF/A-4e and PDF/A-4f
  • #2523: Display tofu for missing glyphs
  • #2581: Add option to disable protocols in URL resolution
  • #2570: Support rch, cap, rcap, rex, ic and ric font-relative units
  • #2547, #2140: Support "only" keyword in media queries

Bug fixes

  • #2516, #1510: Fix rendering of first line of text with nested right float
  • #2510, #1073, #2507: Avoid Pango crashes and font mismatches with @font-face rules referencing local fonts
  • #2532, #2531: Use fonttools instancer instead of deprecated mutator API
  • #2541: Fix syntax of functions
  • #2543: Allow font-related units to access @font-face fonts
  • #2525: Respect top margins and avoid overlapping footnotes for columns, with financial support from Code & Co.
  • #2536: Remove Subtype key from font descriptor
  • #2539: Fix min width for SVGs with intrinsic ratio but no intrinsic size
  • #2537, #2533: Fix order of operators when drawing SVGs
  • #2538: Don’t crash with nested unknown functions
  • #2542: Don’t crash when lh and rlh are used for line height or font size
  • #2540, #2528: Use locale encoding instead of filesystem encoding for font paths
  • #2563, #2479: Don’t avoid float collisions for atomic flex items
  • #2569: Don’t be case-sensitive for units
  • #2567, #2566: Add x-default attribute for metadata description to be compliant with PDF/A
  • #2586, #2571: Improve formatting contexts management
  • #2600: Fix SVG image aspect ratio when only width or height is specified
  • #2612, #2595: Clean block layout and fix corner cases
  • #2522: Ignore preserveAspectRatio when SVG has no viewBox
  • #2544: Allow to use a variable twice in a function
  • #2555: Fix flex gap in right-to-left context
  • #2591: Respect non-auto widths and fix padding of grid items
  • #2601: Don’t crash when tagged tables are not displayed as tables
  • #2607: Fix rendering of multiline textareas with PDF forms
  • #2106: Force variable initialization to avoid crashes during column layout
  • #2618, #2617: Fix rendering of relative grid and flex items

Documentation

Contributors

  • Guillaume Ayoub
  • Fazle Rabbi Ferdaus
  • Lucie Anglade
  • Luca Vercelli
  • ChickenF622
  • Ernie Chu
  • Mark Pullin
  • Malte Laukötter
  • Markus Mohanty
  • Yvonne Kothmeier
  • Jarom Ort
  • kuypan

Backers and sponsors

  • Spacinov
  • Syslifters
  • Kobalt
  • Simon Sapin
  • Grip Angebotssoftware
  • Manuel Barkhau
  • Simonsoft
  • KontextWork
  • Menutech
  • TrainingSparkle
  • Healthchecks.io
  • Method B
  • FieldHub
  • Hammerbacher
  • Yanal-Yves Fargialla
  • Morntag
  • Piloterr
  • Xavid
  • Charlie S.
  • Prothesis Dental Solutions
  • Kai DeLorenzo

Don't miss a new weasyprint release

NewReleases is sending notifications on new releases.