vec-io 0.7.2__tar.gz → 0.9.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (485) hide show
  1. {vec_io-0.7.2 → vec_io-0.9.0}/PKG-INFO +3 -1
  2. {vec_io-0.7.2 → vec_io-0.9.0}/README.md +2 -0
  3. vec_io-0.9.0/docs/ai.md +524 -0
  4. {vec_io-0.7.2 → vec_io-0.9.0}/docs/api.md +21 -9
  5. vec_io-0.9.0/docs/reference/Color.md +269 -0
  6. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Page.md +15 -4
  7. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/TextLayout.md +7 -5
  8. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.ClipPath.md +1 -0
  9. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Mask.md +1 -0
  10. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Polygon.md +1 -0
  11. {vec_io-0.7.2 → vec_io-0.9.0}/hatch_build.py +1 -0
  12. {vec_io-0.7.2 → vec_io-0.9.0}/pyproject.toml +1 -1
  13. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_api.py +14 -4
  14. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_canvas_features.py +31 -0
  15. vec_io-0.9.0/tests/test_color.py +124 -0
  16. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_css_browser.py +1 -1
  17. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_document_write.py +2 -2
  18. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_textlayout.py +62 -1
  19. {vec_io-0.7.2 → vec_io-0.9.0}/tools/build_native.py +13 -0
  20. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/__init__.py +24 -2
  21. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/canvas.py +46 -7
  22. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/draw.py +34 -1
  23. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/paint.py +346 -10
  24. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/properties.py +1 -1
  25. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/text/breaking.py +84 -24
  26. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/types.py +6 -0
  27. vec_io-0.7.2/docs/reference/Color.md +0 -60
  28. {vec_io-0.7.2 → vec_io-0.9.0}/LICENSE +0 -0
  29. {vec_io-0.7.2 → vec_io-0.9.0}/docs/examples.md +0 -0
  30. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/AVIF.md +0 -0
  31. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Bookmark.md +0 -0
  32. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/CMYK.md +0 -0
  33. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Document.md +0 -0
  34. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Filter.md +0 -0
  35. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Flatten.md +0 -0
  36. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Font.md +0 -0
  37. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/FontDB.md +0 -0
  38. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Fonts.md +0 -0
  39. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/GlyphRun.md +0 -0
  40. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Image.md +0 -0
  41. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/ImagePolicy.md +0 -0
  42. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/JPEG.md +0 -0
  43. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/JXL.md +0 -0
  44. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Limits.md +0 -0
  45. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/LinearGradient.md +0 -0
  46. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Marker.md +0 -0
  47. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Mask.md +0 -0
  48. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Matrix.md +0 -0
  49. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/PDF.md +0 -0
  50. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/PDFFile.md +0 -0
  51. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/PDFPage.md +0 -0
  52. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/PNG.md +0 -0
  53. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/PageBoxes.md +0 -0
  54. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Path.md +0 -0
  55. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/PathMarker.md +0 -0
  56. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Pattern.md +0 -0
  57. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/RadialGradient.md +0 -0
  58. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/SVGDocument.md +0 -0
  59. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Simplify.md +0 -0
  60. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Span.md +0 -0
  61. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Spot.md +0 -0
  62. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/Style.md +0 -0
  63. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/TIFF.md +0 -0
  64. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/View.md +0 -0
  65. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Area.md +0 -0
  66. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Cells.md +0 -0
  67. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Circle.md +0 -0
  68. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Drawing.md +0 -0
  69. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Element.md +0 -0
  70. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Ellipse.md +0 -0
  71. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Group.md +0 -0
  72. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Image.md +0 -0
  73. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Line.md +0 -0
  74. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Lines.md +0 -0
  75. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Marker.md +0 -0
  76. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Markers.md +0 -0
  77. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Path.md +0 -0
  78. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Pattern.md +0 -0
  79. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Polygons.md +0 -0
  80. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Polyline.md +0 -0
  81. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Rect.md +0 -0
  82. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Rects.md +0 -0
  83. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.SVG.md +0 -0
  84. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Segments.md +0 -0
  85. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.TSpan.md +0 -0
  86. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Text.md +0 -0
  87. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.TextBox.md +0 -0
  88. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/draw.Use.md +0 -0
  89. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.Blend.md +0 -0
  90. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.ColorMatrix.md +0 -0
  91. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.ComponentTransfer.md +0 -0
  92. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.Composite.md +0 -0
  93. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.ConvolveMatrix.md +0 -0
  94. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.DiffuseLighting.md +0 -0
  95. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.DisplacementMap.md +0 -0
  96. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.DistantLight.md +0 -0
  97. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.DropShadow.md +0 -0
  98. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.Flood.md +0 -0
  99. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.GaussianBlur.md +0 -0
  100. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.Image.md +0 -0
  101. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.Merge.md +0 -0
  102. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.Morphology.md +0 -0
  103. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.Offset.md +0 -0
  104. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.PointLight.md +0 -0
  105. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.Primitive.md +0 -0
  106. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.SpecularLighting.md +0 -0
  107. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.SpotLight.md +0 -0
  108. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.Tile.md +0 -0
  109. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.Transfer.md +0 -0
  110. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/filter.Turbulence.md +0 -0
  111. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/text.Extent.md +0 -0
  112. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/text.Glyph.md +0 -0
  113. {vec_io-0.7.2 → vec_io-0.9.0}/docs/reference/text.Paragraphs.md +0 -0
  114. {vec_io-0.7.2 → vec_io-0.9.0}/docs/tutorial.md +0 -0
  115. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/abc.br +0 -0
  116. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/abc.out.z +0 -0
  117. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/big.br +0 -0
  118. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/big.out.z +0 -0
  119. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/binary.br +0 -0
  120. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/binary.out.z +0 -0
  121. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/bits2.br +0 -0
  122. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/bits2.out.z +0 -0
  123. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/dictwords.br +0 -0
  124. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/dictwords.out.z +0 -0
  125. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/empty.br +0 -0
  126. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/empty.out.z +0 -0
  127. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/four.br +0 -0
  128. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/four.out.z +0 -0
  129. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/handmade.br +0 -0
  130. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/handmade.out.z +0 -0
  131. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/ints.br +0 -0
  132. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/ints.out.z +0 -0
  133. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/mixed.br +0 -0
  134. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/mixed.out.z +0 -0
  135. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/multi.br +0 -0
  136. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/multi.out.z +0 -0
  137. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/one.br +0 -0
  138. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/one.out.z +0 -0
  139. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/random.br +0 -0
  140. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/random.out.z +0 -0
  141. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/text11.br +0 -0
  142. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/text11.out.z +0 -0
  143. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/text_q2.br +0 -0
  144. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/text_q2.out.z +0 -0
  145. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/three.br +0 -0
  146. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/three.out.z +0 -0
  147. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/w10.br +0 -0
  148. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/w10.out.z +0 -0
  149. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/w24.br +0 -0
  150. {vec_io-0.7.2 → vec_io-0.9.0}/tests/brotli/w24.out.z +0 -0
  151. {vec_io-0.7.2 → vec_io-0.9.0}/tests/colorfonts/ColrV0Test.ttf +0 -0
  152. {vec_io-0.7.2 → vec_io-0.9.0}/tests/colorfonts/ColrV1Test.ttf +0 -0
  153. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/bench_showcase.svg +0 -0
  154. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/clipping.svg +0 -0
  155. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/css.svg +0 -0
  156. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/empty.svg +0 -0
  157. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/filters.svg +0 -0
  158. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/fonts_face.svg +0 -0
  159. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/gradients.svg +0 -0
  160. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/images.svg +0 -0
  161. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/markers.svg +0 -0
  162. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/masks.svg +0 -0
  163. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/opacity.svg +0 -0
  164. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/paths.svg +0 -0
  165. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/patterns.svg +0 -0
  166. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/rasterized.svg +0 -0
  167. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/shapes.svg +0 -0
  168. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/strokes.svg +0 -0
  169. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/structure.svg +0 -0
  170. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/text-wrap.svg +0 -0
  171. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/text_basic.svg +0 -0
  172. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/text_features.svg +0 -0
  173. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/text_layout.svg +0 -0
  174. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/text_path.svg +0 -0
  175. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/text_unicode.svg +0 -0
  176. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/transforms.svg +0 -0
  177. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/units.svg +0 -0
  178. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/use_symbol.svg +0 -0
  179. {vec_io-0.7.2 → vec_io-0.9.0}/tests/corpus/viewbox.svg +0 -0
  180. {vec_io-0.7.2 → vec_io-0.9.0}/tests/fonts/VioTest-Bold.ttf +0 -0
  181. {vec_io-0.7.2 → vec_io-0.9.0}/tests/fonts/VioTest-Regular.ttf +0 -0
  182. {vec_io-0.7.2 → vec_io-0.9.0}/tests/fuzz_native.py +0 -0
  183. {vec_io-0.7.2 → vec_io-0.9.0}/tests/fuzz_pdfread.py +0 -0
  184. {vec_io-0.7.2 → vec_io-0.9.0}/tests/group_oracle.py +0 -0
  185. {vec_io-0.7.2 → vec_io-0.9.0}/tests/helpers.py +0 -0
  186. {vec_io-0.7.2 → vec_io-0.9.0}/tests/jbig2_encoder.py +0 -0
  187. {vec_io-0.7.2 → vec_io-0.9.0}/tests/jpx_fixtures.py +0 -0
  188. {vec_io-0.7.2 → vec_io-0.9.0}/tests/make_crypt_fixtures.py +0 -0
  189. {vec_io-0.7.2 → vec_io-0.9.0}/tests/maps.py +0 -0
  190. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfbuild.py +0 -0
  191. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/cmyk8.j2k +0 -0
  192. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/cmyk8.jp2 +0 -0
  193. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/gray12.j2k +0 -0
  194. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/gray16.jp2 +0 -0
  195. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/gray4-signed.j2k +0 -0
  196. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/graya16.jp2 +0 -0
  197. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/gs-r2.pdf +0 -0
  198. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/gs-r3.pdf +0 -0
  199. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/icc-gray8.jp2 +0 -0
  200. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/qpdf-r2.pdf +0 -0
  201. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/qpdf-r3.pdf +0 -0
  202. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/qpdf-r4-aes-nometa.pdf +0 -0
  203. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/qpdf-r4-aes.pdf +0 -0
  204. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/qpdf-r4-objstm.pdf +0 -0
  205. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/qpdf-r4-pdfdoc.pdf +0 -0
  206. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/qpdf-r4-rc4.pdf +0 -0
  207. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/qpdf-r5.pdf +0 -0
  208. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/qpdf-r6-empty.pdf +0 -0
  209. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/qpdf-r6-utf8.pdf +0 -0
  210. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/qpdf-r6.pdf +0 -0
  211. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/rgb8.j2k +0 -0
  212. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/rgb8.jp2 +0 -0
  213. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/rgba8.jp2 +0 -0
  214. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/ycc420.jp2 +0 -0
  215. {vec_io-0.7.2 → vec_io-0.9.0}/tests/pdfread/ycc422-offset.jp2 +0 -0
  216. {vec_io-0.7.2 → vec_io-0.9.0}/tests/scene_oracle.py +0 -0
  217. {vec_io-0.7.2 → vec_io-0.9.0}/tests/shapes.py +0 -0
  218. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_actual_text.py +0 -0
  219. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_avif.py +0 -0
  220. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_backends.py +0 -0
  221. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_ccitt.py +0 -0
  222. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_cells.py +0 -0
  223. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_chrome_suite.py +0 -0
  224. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_cli.py +0 -0
  225. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_cmap.py +0 -0
  226. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_cmyk.py +0 -0
  227. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_codecs.py +0 -0
  228. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_compile.py +0 -0
  229. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_convert.py +0 -0
  230. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_dlist.py +0 -0
  231. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_dpi.py +0 -0
  232. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_encodings.py +0 -0
  233. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_eps.py +0 -0
  234. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_features.py +0 -0
  235. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_filters.py +0 -0
  236. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_flatten.py +0 -0
  237. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_font_sources.py +0 -0
  238. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_font_tables.py +0 -0
  239. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_fonts_io.py +0 -0
  240. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_google_fonts.py +0 -0
  241. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_image_formats.py +0 -0
  242. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_jpx_jbig2.py +0 -0
  243. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_jxl.py +0 -0
  244. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_marker_runs.py +0 -0
  245. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_native.py +0 -0
  246. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_native_emit.py +0 -0
  247. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_native_jpeg.py +0 -0
  248. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_native_limits.py +0 -0
  249. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_native_png.py +0 -0
  250. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_network.py +0 -0
  251. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_output.py +0 -0
  252. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_paint_browser.py +0 -0
  253. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_parsing.py +0 -0
  254. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_pdf_security.py +0 -0
  255. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_pdfa.py +0 -0
  256. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_pdffile.py +0 -0
  257. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_pdfread.py +0 -0
  258. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_raster.py +0 -0
  259. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_readers.py +0 -0
  260. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_resize.py +0 -0
  261. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_save_pages.py +0 -0
  262. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_scene.py +0 -0
  263. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_shapes.py +0 -0
  264. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_simplify.py +0 -0
  265. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_svg_fonts.py +0 -0
  266. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_svg_semantics.py +0 -0
  267. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_svg_writer.py +0 -0
  268. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_text.py +0 -0
  269. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_text_as_paths.py +0 -0
  270. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_text_browser.py +0 -0
  271. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_threads.py +0 -0
  272. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_trim.py +0 -0
  273. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_type1.py +0 -0
  274. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_units.py +0 -0
  275. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_varfonts.py +0 -0
  276. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_views.py +0 -0
  277. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_woff2.py +0 -0
  278. {vec_io-0.7.2 → vec_io-0.9.0}/tests/test_woff2_write.py +0 -0
  279. {vec_io-0.7.2 → vec_io-0.9.0}/tests/testfont.py +0 -0
  280. {vec_io-0.7.2 → vec_io-0.9.0}/tests/typing_sample.py +0 -0
  281. {vec_io-0.7.2 → vec_io-0.9.0}/tests/varfonts/VarTest.otf +0 -0
  282. {vec_io-0.7.2 → vec_io-0.9.0}/tests/varfonts/VarTest.ttf +0 -0
  283. {vec_io-0.7.2 → vec_io-0.9.0}/tests/woff2/make.py +0 -0
  284. {vec_io-0.7.2 → vec_io-0.9.0}/tests/woff2/pair.woff2 +0 -0
  285. {vec_io-0.7.2 → vec_io-0.9.0}/tests/woff2/rich-null.woff2 +0 -0
  286. {vec_io-0.7.2 → vec_io-0.9.0}/tests/woff2/rich.ttf +0 -0
  287. {vec_io-0.7.2 → vec_io-0.9.0}/tests/woff2/rich.woff2 +0 -0
  288. {vec_io-0.7.2 → vec_io-0.9.0}/tools/gen_api.py +0 -0
  289. {vec_io-0.7.2 → vec_io-0.9.0}/tools/zig.lock +0 -0
  290. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/__main__.py +0 -0
  291. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/arrays.py +0 -0
  292. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/cells.py +0 -0
  293. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/cli.py +0 -0
  294. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/convert.py +0 -0
  295. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/css_tokens.py +0 -0
  296. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/document.py +0 -0
  297. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/eps/__init__.py +0 -0
  298. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/eps/fonts.py +0 -0
  299. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/errors.py +0 -0
  300. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/filter.py +0 -0
  301. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/flate.py +0 -0
  302. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/flatten.py +0 -0
  303. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/__init__.py +0 -0
  304. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/cff.py +0 -0
  305. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/cff2.py +0 -0
  306. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/charstring.py +0 -0
  307. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/colr.py +0 -0
  308. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/ctan.py +0 -0
  309. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/download.py +0 -0
  310. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/encodings.py +0 -0
  311. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/fontdb.py +0 -0
  312. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/fontshare.py +0 -0
  313. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/fontshare_families.txt +0 -0
  314. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/fontsource.py +0 -0
  315. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/fontsource_families.txt +0 -0
  316. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/glyphlist.txt +0 -0
  317. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/google.py +0 -0
  318. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/google_families.txt +0 -0
  319. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/opentype.py +0 -0
  320. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/program.py +0 -0
  321. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/sfnt.py +0 -0
  322. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/type1.py +0 -0
  323. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/urw.py +0 -0
  324. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/variations.py +0 -0
  325. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/web.py +0 -0
  326. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/fonts/woff2.py +0 -0
  327. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/geometry.py +0 -0
  328. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/image/__init__.py +0 -0
  329. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/image/avif.py +0 -0
  330. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/image/bmp.py +0 -0
  331. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/image/codecs.py +0 -0
  332. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/image/gif.py +0 -0
  333. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/image/icc.py +0 -0
  334. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/image/jbig2.py +0 -0
  335. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/image/jpx.py +0 -0
  336. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/image/jxl.py +0 -0
  337. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/image/resource.py +0 -0
  338. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/image/tiff.py +0 -0
  339. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/image/webp.py +0 -0
  340. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/items.py +0 -0
  341. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/limits.py +0 -0
  342. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/lines.py +0 -0
  343. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/README.md +0 -0
  344. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/__init__.py +0 -0
  345. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/__main__.py +0 -0
  346. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/_api.py +0 -0
  347. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/brotli.py +0 -0
  348. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/emit.py +0 -0
  349. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/filters.py +0 -0
  350. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/jpeg.py +0 -0
  351. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/manifest.json +0 -0
  352. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/pdfread.py +0 -0
  353. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/png.py +0 -0
  354. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/alloc.c +0 -0
  355. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/brotli.c +0 -0
  356. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/brotli.h +0 -0
  357. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/brotli_dict.c +0 -0
  358. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/brotli_enc.c +0 -0
  359. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/ccitt.c +0 -0
  360. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/color.c +0 -0
  361. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/crypt.c +0 -0
  362. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/cull.c +0 -0
  363. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/data.c +0 -0
  364. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/dlist.c +0 -0
  365. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/dlist.h +0 -0
  366. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/emit.c +0 -0
  367. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/epsw.c +0 -0
  368. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/filters.c +0 -0
  369. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/flat.c +0 -0
  370. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/flatten.c +0 -0
  371. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/func.c +0 -0
  372. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/image.c +0 -0
  373. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/interp.c +0 -0
  374. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/interp.h +0 -0
  375. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/items.c +0 -0
  376. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/jpeg.h +0 -0
  377. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/jpeg_dec.c +0 -0
  378. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/jpeg_enc.c +0 -0
  379. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/jpx.c +0 -0
  380. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/lex.h +0 -0
  381. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/math.c +0 -0
  382. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/matrix.h +0 -0
  383. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/median.c +0 -0
  384. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/mesh.c +0 -0
  385. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/paint.c +0 -0
  386. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/path.c +0 -0
  387. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/pdfread.c +0 -0
  388. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/png.c +0 -0
  389. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/quant.c +0 -0
  390. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/raster.h +0 -0
  391. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/res.c +0 -0
  392. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/rt.c +0 -0
  393. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/samples.c +0 -0
  394. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/scan.c +0 -0
  395. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/scene.c +0 -0
  396. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/scene.h +0 -0
  397. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/shade.c +0 -0
  398. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/shade.h +0 -0
  399. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/signatures.c +0 -0
  400. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/stroke.c +0 -0
  401. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/svgw.c +0 -0
  402. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/vio.h +0 -0
  403. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/vio_api.h +0 -0
  404. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/src/woff2.c +0 -0
  405. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/native/woff2.py +0 -0
  406. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/network.py +0 -0
  407. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/notebook.py +0 -0
  408. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/options.py +0 -0
  409. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/output_plan.py +0 -0
  410. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdf/__init__.py +0 -0
  411. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdf/copier.py +0 -0
  412. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdf/images.py +0 -0
  413. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdf/objects.py +0 -0
  414. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdf/pdfa.py +0 -0
  415. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdf/writer.py +0 -0
  416. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdffile.py +0 -0
  417. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/__init__.py +0 -0
  418. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/ccitt.py +0 -0
  419. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/cmap.py +0 -0
  420. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/cmap_resources.txt +0 -0
  421. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/cmaps.zip +0 -0
  422. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/colors.py +0 -0
  423. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/content.py +0 -0
  424. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/convert.py +0 -0
  425. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/errors.py +0 -0
  426. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/file.py +0 -0
  427. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/fonts.py +0 -0
  428. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/functions.py +0 -0
  429. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/images.py +0 -0
  430. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/meshes.py +0 -0
  431. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/origin.py +0 -0
  432. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/parser.py +0 -0
  433. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/reader.py +0 -0
  434. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/resources.py +0 -0
  435. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/security.py +0 -0
  436. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/shadings.py +0 -0
  437. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/pdfread/strings.py +0 -0
  438. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/py.typed +0 -0
  439. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/raster/__init__.py +0 -0
  440. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/raster/groups.py +0 -0
  441. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/raster/resources.py +0 -0
  442. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/recorder.py +0 -0
  443. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/records.py +0 -0
  444. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/resample.py +0 -0
  445. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/resources.py +0 -0
  446. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/scene.py +0 -0
  447. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/shapes.py +0 -0
  448. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/simplify.py +0 -0
  449. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/__init__.py +0 -0
  450. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/basic_shapes.py +0 -0
  451. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/clipmask.py +0 -0
  452. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/common.py +0 -0
  453. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/css.py +0 -0
  454. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/filters.py +0 -0
  455. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/fontface.py +0 -0
  456. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/images.py +0 -0
  457. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/markers.py +0 -0
  458. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/painter.py +0 -0
  459. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/parse.py +0 -0
  460. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/references.py +0 -0
  461. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/render.py +0 -0
  462. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/servers.py +0 -0
  463. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/text.py +0 -0
  464. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/text_paint.py +0 -0
  465. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/tree.py +0 -0
  466. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/values.py +0 -0
  467. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/svg/writer.py +0 -0
  468. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/text/__init__.py +0 -0
  469. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/text/bidi.py +0 -0
  470. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/text/harfbuzz.py +0 -0
  471. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/text/hyph_en_us.py +0 -0
  472. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/text/hyph_fr.py +0 -0
  473. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/text/hyphenation.py +0 -0
  474. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/text/mirroring.py +0 -0
  475. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/text/path.py +0 -0
  476. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/text/segment.py +0 -0
  477. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/text/shaping.py +0 -0
  478. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/text/ucd_grapheme.py +0 -0
  479. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/text/ucd_ignorable.py +0 -0
  480. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/text/ucd_linebreak.py +0 -0
  481. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/text/ucd_scripts.py +0 -0
  482. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/threads.py +0 -0
  483. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/transfer.py +0 -0
  484. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/trim.py +0 -0
  485. {vec_io-0.7.2 → vec_io-0.9.0}/vec_io/units.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: vec_io
3
- Version: 0.7.2
3
+ Version: 0.9.0
4
4
  Summary: Vector graphics in Python: read SVG and PDF; write PDF, SVG, EPS, PNG, JPEG, JPEG XL, AVIF
5
5
  Project-URL: Repository, https://github.com/ajgouhier/vec_io
6
6
  Author-email: Arthur Gouhier <ajgouhier@gmail.com>
@@ -96,6 +96,8 @@ Every command takes `-` for stdin or stdout; `vec_io COMMAND --help` lists its f
96
96
 
97
97
  ## Documentation
98
98
 
99
+ * [For agents](https://github.com/ajgouhier/vec_io/blob/main/docs/ai.md): one page for
100
+ coding agents (also `vec_io.ai_doc()` in the installed package): read it first.
99
101
  * [Tutorial](https://github.com/ajgouhier/vec_io/blob/main/docs/tutorial.md): first steps.
100
102
  * [Examples](https://github.com/ajgouhier/vec_io/blob/main/docs/examples.md): nine scripts
101
103
  with their images, and recipes.
@@ -80,6 +80,8 @@ Every command takes `-` for stdin or stdout; `vec_io COMMAND --help` lists its f
80
80
 
81
81
  ## Documentation
82
82
 
83
+ * [For agents](https://github.com/ajgouhier/vec_io/blob/main/docs/ai.md): one page for
84
+ coding agents (also `vec_io.ai_doc()` in the installed package): read it first.
83
85
  * [Tutorial](https://github.com/ajgouhier/vec_io/blob/main/docs/tutorial.md): first steps.
84
86
  * [Examples](https://github.com/ajgouhier/vec_io/blob/main/docs/examples.md): nine scripts
85
87
  with their images, and recipes.
@@ -0,0 +1,524 @@
1
+ # vec_io for agents
2
+
3
+ <!-- gen: ai-header -->
4
+ **vec_io 0.9.0.** For agents writing code that uses vec_io: read this first, then the linked pages. Generated parts are written from the package; the rest is kept short on purpose.
5
+ <!-- end gen -->
6
+
7
+ 1. [What it is](#1-what-it-is) · 2. [How it works](#2-how-it-works) ·
8
+ 3. [Rules](#3-rules) · 4. [Recipes](#4-recipes) · 5. [API index](#5-api-index) ·
9
+ 6. [Errors and limits](#6-errors-and-limits) · 7. [Where to look next](#7-where-to-look-next)
10
+
11
+ ## 1. What it is
12
+
13
+ - Draw pages in Python and write PDF, SVG, SVGZ, EPS, PNG, JPEG, JPEG XL, AVIF or TIFF
14
+ from the same drawing.
15
+ - Convert SVG and PDF to any of those formats (`vec_io.convert`, or the `vec_io` command).
16
+ - Read PDF into pages that can be drawn on, merge or split PDF files without interpreting
17
+ them (`PDFFile`), get a PDF's text.
18
+ - Lay out text (paragraphs, justification, hyphenation, bidi, rich text, links), use
19
+ installed fonts, font files or downloaded families (embedded as subsets).
20
+ - Plot primitives for large data: markers, lines, areas, segments, rectangles, polygons,
21
+ cell grids, from lists or numpy arrays.
22
+ - No Python dependencies; a bundled C library does the heavy work. Python 3.11+.
23
+
24
+ Not in vec_io: axes, ticks, legends, colour maps, statistics: those are
25
+ [plot_io](https://github.com/ajgouhier/plot_io)'s (`import plot_io as plt`), which draws
26
+ with vec_io. No HTML or CSS layout, no editing of existing PDF content streams, no
27
+ animation or scripts.
28
+
29
+ ## 2. How it works
30
+
31
+ - **`Document` → `Page` → drawing calls.** `doc = vec_io.Document(unit="mm")`,
32
+ `page = doc.add_page(width, height)` (or `size="A4"`), then `page.draw_*(…)`.
33
+ - **Recorded, then written.** Drawing records; `doc.save(path)`, `doc.write(format)`,
34
+ `page.save(path)`, `page.render()` make an output from the record, any number of times,
35
+ each with its own options; drawing can go on between saves. The format comes from the
36
+ file extension or `format=`.
37
+ - **One unit per document**: `pt` (default), `px` (1/96 in), `mm`, `cm`, `in`, `pc`, `q`.
38
+ Coordinates, sizes, line widths and font sizes are all in it.
39
+ - **Coordinates**: origin top-left, y down, angles in degrees clockwise.
40
+ - **Style** = SVG property names with `_` (`fill`, `stroke`, `stroke_width`,
41
+ `font_family`, `font_size`, `text_anchor`, `opacity`…; the list is `Style` in §5). Set
42
+ on the page (`page.fill = "red"`), for a block (`with page.state(fill="red"):`) or per
43
+ call (`page.draw_rect(…, fill="red")`). Geometry is positional, style keyword-only.
44
+ - **Groups**: `with page.group(opacity=…, clip_path=…, mask=…, filter=…, transform=…):`
45
+ composites its body as one; `with page.mask() as m:` / `page.pattern(…)` /
46
+ `page.marker()` record content used elsewhere.
47
+ - **Bulk calls** (`draw_markers`, `draw_lines`, `draw_segments`, `draw_area`,
48
+ `draw_rects`, `draw_polygons`, `draw_cells`) take columns (lists or numpy arrays) and
49
+ per-item `fill`/`stroke`/`stroke_width`/`opacity`. They run in C: use them instead of
50
+ loops of `draw_circle` for more than a few hundred items.
51
+ - **`vec_io.draw`**: an element tree (`Drawing`, `Rect`, `Text`, `Group`…, drawsvg-like)
52
+ that writes itself (`d.save("x.pdf")`) or draws onto a page (`d.draw(page, x, y)`).
53
+ - **`vec_io.text`**: shaping and measuring without a page (`text.Font`, `text.measure`,
54
+ `text.layout`).
55
+ - **Fonts**: CSS family lists, matched as browsers do; an installed metric alias replaces
56
+ Helvetica, Arial, Times, Courier; a family not installed is downloaded once and cached.
57
+
58
+ ## 3. Rules
59
+
60
+ - Import as `import vec_io` (no alias); submodules `import vec_io.draw as draw`,
61
+ `from vec_io import text`.
62
+ - `fill` defaults to black and `stroke` to none: an outline only is
63
+ `fill=None, stroke="black"`. `None` turns a paint off.
64
+ - `draw_text(text, x, y)`: `y` is the **baseline**, `text_anchor` (`"start"`, `"middle"`,
65
+ `"end"`) places `x` and `dominant_baseline` places `y`: `"central"` centres the text on
66
+ `y`, `"middle"` centres lowercase, `"hanging"`/`"text-top"` hang it below `y`. Boxes of
67
+ text: `draw_text_box(content, x, y, width, height)`, `y` the top, `columns=2` (with
68
+ `column_gap=`) flows it over columns (balanced without `height`); its `TextLayout` has
69
+ `width`, `height`, `lines`, `baselines`, `columns`, `overflow` and `remainder` (the
70
+ `Span`s that did not fit: content for the next box or page).
71
+ - Font sizes are in the document's unit too: in a `mm` document `font_size=4` is about 11 pt.
72
+ - Rotation is clockwise (y down): text rising to the right is `page.rotate(-45, cx, cy)`.
73
+ - Colours: CSS strings (`"steelblue"`, `"#1f6fb2"`, `"#1f6fb280"`, `"rgb(…)"`,
74
+ `"oklch(…)"`), or tuples **in [0, 1]** (`(0.2, 0.4, 0.8)`), or `vec_io.Color`
75
+ (`Color.from_rgb255(…)`, `Color.from_hex(…)`). Per-item colour columns may also be
76
+ `(n, 3|4)` buffers of bytes 0–255. Print: `CMYK(…)`, `Spot(…)`.
77
+ - *Opacity* multiplies what is drawn (`opacity`, `fill_opacity`, `stroke_opacity`,
78
+ `group(opacity=)`); *alpha* is a colour's channel. Both work; they multiply.
79
+ - Lengths: a number is in the context's unit (a page: the document's; `View`, `convert`
80
+ and the command line: CSS pixels); a string carries its unit (`"5mm"`, `"2in"`) or names
81
+ a paper size (`"a4"`).
82
+ - Resolution: `dpi=` is dots per inch or `"Nx"` (N × 96). Image output defaults to the
83
+ document's `default_dpi`, `"2x"` (192 dpi).
84
+ - Paths: SVG path data (`"M0 0 L10 10 Z"`) or `vec_io.Path().move_to(…).line_to(…)`.
85
+ - Missing values (`None`, NaN) in bulk calls break lines and areas and skip items.
86
+ - `with page.state(…)` / `page.group(…)` must be closed before writing (`StateError`).
87
+ - Write options are keywords of `save`/`write`/`convert` (`text="paths"`: glyphs as
88
+ outlines, no font; `background=` for images; `dpi=`; `view=`); one that does not apply
89
+ to the output raises `OptionError` (`compression` is not a PNG option: PNG's is
90
+ `png=vec_io.PNG(compression=…)`). Option objects also take dicts (`png={"quality": 90}`).
91
+ - Same bytes on every machine: `Document(fonts=vec_io.Fonts(dirs=[…], system=False,
92
+ downloads=False))`. Turn downloads off everywhere with `VEC_IO_FONT_DOWNLOADS=0`; no
93
+ network at all with `VEC_IO_NETWORK=0`.
94
+ - Untrusted SVG or PDF: `network=False`, `base_dir=None` (explicitly: for a path it
95
+ defaults to the file's folder), `limits=vec_io.Limits(time=…)`.
96
+ - Large data: pass `simplify=True` (or `"auto"`) to `save`/`write` or a bulk call:
97
+ hidden markers culled, dense lines decimated, no visible change at 300 dpi
98
+ (translucent markers rarely hide others, so they save little). Marker `size` is the
99
+ diameter.
100
+ - Notebooks show pages, documents, drawings and images as SVG by themselves.
101
+
102
+ ## 4. Recipes
103
+
104
+ Each block runs as written (after the ones above it), files from earlier blocks in its
105
+ folder.
106
+
107
+ Page with shapes and text, saved in three formats:
108
+
109
+ ```python
110
+ import vec_io
111
+
112
+ doc = vec_io.Document(unit="mm", title="Report")
113
+ page = doc.add_page(width=120, height=60)
114
+ page.draw_rect(10, 10, 100, 40, rx=3, fill="#1f6fb2")
115
+ page.draw_text("Hello", 60, 35, fill="white", font_size=12, font_weight="bold",
116
+ text_anchor="middle")
117
+ page.draw_circle(100, 15, 4, fill=None, stroke="black", stroke_width=0.5)
118
+ doc.save("hello.pdf")
119
+ doc.save("hello.svg")
120
+ page.save("hello.png", dpi=150)
121
+ ```
122
+
123
+ Several pages, a link, a bookmark, A4 portrait:
124
+
125
+ ```python
126
+ doc = vec_io.Document(unit="mm")
127
+ for i in range(3):
128
+ page = doc.add_page(size="A4")
129
+ page.draw_text(f"Page {i + 1}", 20, 30, font_size=18)
130
+ doc.add_bookmark(f"Page {i + 1}", page)
131
+ doc.pages[0].link(20, 20, 40, 12, page=2) # to the third page
132
+ doc.save("pages.pdf")
133
+ ```
134
+
135
+ Convert files (format from the extension; `convert` also returns the bytes):
136
+
137
+ ```python
138
+ vec_io.convert("drawing.svg", "drawing.pdf")
139
+ vec_io.convert("drawing.svg", "drawing.png", dpi=300, background="white")
140
+ vec_io.convert("figure.svg", "figure.pdf", view={"trim": True, "margin": "2mm"})
141
+ vec_io.convert("report.pdf", "page-{page}.png", dpi=72) # one file per page
142
+ png = vec_io.convert("<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'/>",
143
+ format="png")
144
+ ```
145
+
146
+ Text in a box, justified, with rich runs; columns; text centred on a point:
147
+
148
+ ```python
149
+ doc = vec_io.Document(unit="pt")
150
+ page = doc.add_page(size="A5")
151
+ layout = page.draw_text_box(
152
+ ["Bold start, ", vec_io.Span("a link", url="https://example.org", underline=True),
153
+ ", then a long paragraph that wraps inside the box and is justified."],
154
+ 40, 40, 300, 200, text_align="justify", font_size=11, line_height=1.4,
155
+ hyphens="auto", lang="en")
156
+ print(layout.height, layout.lines, layout.remainder) # what did not fit: remainder
157
+ page.draw_text_box("Two balanced columns. " * 40, 40, 260, 340, columns=2,
158
+ column_gap=16, font_size=9, text_align="justify")
159
+ page.draw_text("Centred on y", 210, 500, text_anchor="middle",
160
+ dominant_baseline="central", font_size=14)
161
+ ```
162
+
163
+ Scatter of many points, colour per point, lines with gaps:
164
+
165
+ ```python
166
+ import math, random
167
+
168
+ doc = vec_io.Document()
169
+ page = doc.add_page(400, 300)
170
+ xs = [random.uniform(20, 380) for _ in range(10_000)]
171
+ ys = [random.uniform(20, 280) for _ in range(10_000)]
172
+ colors = [(x / 400, 0.3, 1 - x / 400) for x in xs]
173
+ page.draw_markers(xs, ys, size=3, fill=colors, opacity=0.6)
174
+ t = [20 + i for i in range(360)]
175
+ page.draw_lines(t, [150 + 60 * math.sin(i / 20) if i % 90 else None for i in range(360)],
176
+ stroke="black", stroke_width=1.5)
177
+ doc.save("scatter.pdf", simplify=True)
178
+ ```
179
+
180
+ numpy arrays work the same (no import needed by vec_io); `draw_lines` with a 2-D `y`
181
+ draws one line per row, with `stroke` per row.
182
+
183
+ Heatmap from values (vec_io has no colour maps: map values to colours or palette indices):
184
+
185
+ ```python
186
+ palette = ["#440154", "#3b528b", "#21918c", "#5ec962", "#fde725"]
187
+ values = [[(r + c) % 5 for c in range(20)] for r in range(10)]
188
+ page = vec_io.Document().add_page(220, 120)
189
+ page.draw_cells([10 + 10 * i for i in range(21)], [10 + 10 * i for i in range(11)],
190
+ [v for row in values for v in row], palette=palette)
191
+ ```
192
+
193
+ Groups: opacity, clip, transform, a gradient, a dashed state:
194
+
195
+ ```python
196
+ page = vec_io.Document().add_page(200, 120)
197
+ grad = vec_io.LinearGradient(0, 0, 200, 0, [(0, "orange"), (1, "purple")])
198
+ with page.group(opacity=0.5, clip_path=vec_io.Path().circle(100, 60, 50)):
199
+ page.draw_rect(0, 0, 200, 120, fill=grad)
200
+ with page.state(stroke="red", stroke_dasharray=[4, 2], fill=None):
201
+ page.rotate(10, 100, 60)
202
+ page.draw_path("M20 100 L180 20")
203
+ ```
204
+
205
+ Images and SVG placed on a page:
206
+
207
+ ```python
208
+ page = vec_io.Document().add_page(300, 200)
209
+ page.draw_image("photo.png", 10, 10, width=120) # aspect kept
210
+ page.draw_svg("drawing.svg", 150, 10, width=140)
211
+ page.draw_pdf("report.pdf", 150, 110, width=60, page=1)
212
+ ```
213
+
214
+ Render to pixels:
215
+
216
+ ```python
217
+ image = page.render(dpi=96, background="white") # a vec_io.Image
218
+ image.save("page.jpg", jpeg=vec_io.JPEG(quality=85))
219
+ print(image.width, image.height, image.channels) # numpy.asarray(image) works
220
+ ```
221
+
222
+ Read a PDF, draw on it, get its text:
223
+
224
+ ```python
225
+ doc = vec_io.open_pdf("report.pdf") # unit pt, pages at crop size
226
+ doc.pages[0].draw_text("APPROVED", 20, 30, fill="red", font_size=16)
227
+ doc.save("stamped.pdf")
228
+ from vec_io.records import TextItem # also FillItem, ImageItem…
229
+
230
+ text = " ".join(item.text for item in doc.pages[0].items() if isinstance(item, TextItem))
231
+ ```
232
+
233
+ Merge, select, rotate pages without interpreting them:
234
+
235
+ ```python
236
+ merged = vec_io.PDFFile("a.pdf")
237
+ merged.add_pages("b.pdf", pages=[0, 2]) # indices from 0
238
+ merged.pages[0].rotation = 90
239
+ merged.save("merged.pdf")
240
+ ```
241
+
242
+ A drawing as an element tree:
243
+
244
+ ```python
245
+ import vec_io.draw as draw
246
+
247
+ d = draw.Drawing(400, 200, font_family="sans-serif")
248
+ d.append(draw.Rect(10, 10, 380, 180, rx=16, fill="#eef"))
249
+ d.append(draw.Text("Hello", 48, 200, 120, text_anchor="middle"))
250
+ with d.group(stroke="black", fill=None) as g:
251
+ g.append(draw.Circle(60, 60, 30))
252
+ d.save("hello_draw.svg")
253
+ d.save("hello_draw.png", dpi=96)
254
+ ```
255
+
256
+ Measure text without a page:
257
+
258
+ ```python
259
+ from vec_io import text
260
+
261
+ font = text.Font("sans-serif", size=10, weight="bold")
262
+ width, ascent, descent = text.measure("Label", font)
263
+ ```
264
+
265
+ Print output, PDF/A, small files:
266
+
267
+ ```python
268
+ doc.save("print.pdf", color="cmyk", ink_limit=300)
269
+ doc.save("archive.pdf", pdf=vec_io.PDF(a="2b"))
270
+ doc.save("small.pdf", compression="small", images={"dpi": 150, "quality": 85})
271
+ doc.pages[0].save("small.png", dpi=96, png={"quality": 90}) # lossy palette PNG
272
+ ```
273
+
274
+ Command line (every command takes `-` for stdin or stdout; `--help` lists flags):
275
+
276
+ ```sh
277
+ vec_io convert drawing.svg out.pdf
278
+ vec_io convert --trim --margin 2mm figure.svg figure.png --dpi 300
279
+ vec_io pages a.pdf b.svg -o out.pdf --select 1-3,5 --nup 2x2 --size a4
280
+ vec_io info report.pdf --json
281
+ vec_io text report.pdf
282
+ vec_io fonts find "Helvetica"
283
+ vec_io doctor
284
+ ```
285
+
286
+ ## 5. API index
287
+
288
+ <!-- gen: ai-index -->
289
+ Full signatures of the calls used most:
290
+
291
+ ```python
292
+ convert(source, output=None, *, format=None, base_dir=None, fonts=None, filters=True,
293
+ network=True, embedding="honor", media="print", color_scheme="light",
294
+ default_dpi=None, page=None, password=None, annotations=True, intent="view",
295
+ files="base_dir", root_background=True, title=None, lang=None, alt=None,
296
+ limits=None, **options) -> bytes | list[str]
297
+ open_pdf(source, *, password=None, pages=None, annotations=True, intent="view",
298
+ limits=None) -> Document
299
+ Document(unit="pt", *, title=None, author=None, subject=None, keywords=None, creator=None,
300
+ lang=None, alt=None, fonts=None, base_dir=None, filters=True, network=True,
301
+ creation_date=None, default_dpi="2x", embedding="honor")
302
+ document.add_page(width=None, height=None, *, size="A4", landscape=False, copy=None) -> Page
303
+ document.save(file, *, format=None, pages=None, limits=None, **options) -> Union
304
+ document.write(format, *, pages=None, limits=None, **options) -> bytes
305
+ page.draw_rect(x, y, width, height, *, rx=0.0, ry=None, **style)
306
+ page.draw_circle(cx, cy, r, **style)
307
+ page.draw_path(path, *, markers=None, marker_start=None, marker_mid=None, marker_end=None,
308
+ **style)
309
+ page.draw_text(text, x, y, **style)
310
+ page.draw_text_box(content, x, y, width, height=None, *, text_align="start",
311
+ line_height=1.2, overflow="visible", breaking="greedy",
312
+ paragraph_spacing=0.0, text_indent=0.0, hyphens="manual", columns=1,
313
+ column_gap=None, **style) -> TextLayout
314
+ page.draw_image(source, x, y, width=None, height=None, *,
315
+ preserve_aspect_ratio="xMidYMid meet", opacity=1.0, smooth=None)
316
+ page.draw_svg(svg, x=0.0, y=0.0, width=None, height=None, *, base_dir=None, clip=True,
317
+ media="print", color_scheme="light", files="base_dir", root_background=True,
318
+ limits=None)
319
+ page.draw_markers(x, y, *, marker=None, size=6.0, fill=<state>, stroke=<state>,
320
+ stroke_width=None, opacity=1.0, simplify=None, **style)
321
+ page.draw_lines(x, y, *, stroke=<state>, stroke_width=None, stroke_dasharray=None,
322
+ opacity=1.0, stroke_linecap=None, stroke_linejoin=None, simplify=None,
323
+ interpolation="linear", missing="break", **style)
324
+ page.draw_segments(x0, y0, x1, y1, *, stroke=<state>, stroke_width=None, opacity=1.0,
325
+ stroke_linecap=None, simplify=None, **style)
326
+ page.draw_area(x, y1, y2=0.0, *, fill=<state>, stroke=None, stroke_width=None, opacity=1.0,
327
+ simplify=None, interpolation="linear", missing="break", **style)
328
+ page.draw_rects(x, y, width, height, *, fill=<state>, stroke=<state>, stroke_width=None,
329
+ opacity=1.0, simplify=None, **style)
330
+ page.draw_cells(x_edges, y_edges, fill, *, palette=None, bounds=None, bad=None,
331
+ mode="image", opacity=1.0)
332
+ page.group(*, opacity=1.0, mix_blend_mode="normal", isolation="auto", filter=None,
333
+ clip_path=None, mask=None, transform=None, rasterize=False, dpi=None,
334
+ quality=None, simplify=None)
335
+ page.render(*, dpi=None, simplify=None, background=None, limits=None) -> Image
336
+ page.save(file, *, format=None, limits=None, **options) -> Union
337
+ draw.Drawing(width, height, *children, view_box=None, unit="px", **attrs)
338
+ drawing.write(format, **options) -> bytes
339
+ image.open(source) -> Image
340
+ text.Font(family="system-ui", size=12.0, *, weight=400, style="normal", stretch="normal",
341
+ variations=None, optical_sizing="auto", embed=True, unit=1.0, variant=None,
342
+ features=None, synthesis="weight style", lang=None)
343
+ text.measure(content, font, db=None, **options) -> Extent
344
+ text.layout(content, font, width, height=None, db=None, *, text_align="start",
345
+ line_height=1.2, overflow="visible", breaking="greedy", font_kerning="auto",
346
+ paragraph_spacing=0.0, text_indent=0.0, letter_spacing=0.0, word_spacing=0.0,
347
+ direction="ltr", hyphens="manual", lang=None) -> Paragraphs
348
+ ```
349
+
350
+ Every public name, by module. Reference page of a class: `https://github.com/ajgouhier/vec_io/blob/main/docs/reference/NAME.md` (`NAME` as listed: [`Page`](https://github.com/ajgouhier/vec_io/blob/main/docs/reference/Page.md), [`draw.Rect`](https://github.com/ajgouhier/vec_io/blob/main/docs/reference/draw.Rect.md)). Errors and warnings: [next section](#6-errors-and-limits).
351
+
352
+ **`vec_io`**
353
+
354
+ - `convert`: Convert an SVG or PDF document to PDF, EPS, SVG, PNG, JPEG, JPEG XL, AVIF or TIFF; returns the file's bytes and writes them to `output` (a path or a binary file object) when given.
355
+ - `SVGDocument(source, *, base_dir, network, fetcher, media, color_scheme, files, fragment, …)`: A parsed SVG document with resolved CSS declarations. `load`, `get_by_id`.
356
+ - `open_pdf`: Read a PDF file into a new `Document` (unit `pt`): every page sized by its crop box (rotated), links and the outline kept.
357
+ - `PDFFile(source, *, password, limits)`: A PDF file as objects: its pages, taken from one file or several, written again as they are (content, resources, annotations, fonts and images copied, never interpreted). `pages`, `catalog`, `resolve`, `stream`, `add_pages`, `remove_pages`, `save`.
358
+ - `PDFPage` (from `file.pages[i]`): A page of a `PDFFile` (`file.pages[i]`). `dict`, `rotation`, `boxes`, `resolve`, `stream`.
359
+ - `PageBoxes` (from `pdf_page.boxes`): The boxes of a `PDFPage` (`boxes`), a mapping of `"media"`, `"crop"`, `"bleed"`, `"trim"` and `"art"` to `(x0, y0, x1, y1)` in PDF points.
360
+ - `Document`: A document made of pages you draw on, written as PDF, SVG, EPS, PNG, JPEG, JPEG XL or AVIF. `creation_date`, `bookmarks`, `font_db`, `unit`, `points_per_unit`, `add_page`, `extend`, `add_bookmark`, `attach`, `write`, `save`, `add_font`.
361
+ - `Page` (from `doc.add_page(…)`): A page of a `Document` (`add_page`): the drawing surface, in the document's unit, y down from the top-left corner. `render`, `draw_page`, `items`, `write`, `save`, `view`, `box`, `trim`, `view_scale`, `resize`, `margin`, `width`, `height`, `state`, `translate`, `scale`, `rotate`, `skew`, `transform`, `clip`, `draw_rect`, `draw_circle`, `draw_ellipse`, `draw_path`, `font`, `shape_text`, `measure_text`, `text_extent`, `draw_text`, `draw_text_on_path`, `layout_text`, `draw_text_box`, `draw_paragraphs`, `draw_markers`, `draw_image`, `draw_lines`, `draw_segments`, `draw_rects`, `draw_polygons`, `draw_area`, `draw_cells`, `group`, `mask`, `pattern`, `marker`, `link`, `draw_svg`, `draw_pdf`.
362
+ - `Bookmark` (from `doc.add_bookmark(…)`): An entry of the document outline, made by `add_bookmark` (it is the `parent` of the entries under it).
363
+ - `Style()`: The drawing attributes, named as SVG's and CSS's properties (`-` as `_`): the `**style` keywords of every drawing call and of `state(**style)`, and the attributes of a page's state (`page.fill = "red"`). `stroke_miterlimit`, `stroke_dashoffset`, `fill_opacity`, `stroke_opacity`, `font_family`, `font_weight`, `font_style`, `font_stretch`, `font_variation_settings`, `font_optical_sizing`, `font_kerning`, `font_embed`, `font_variant`, `font_feature_settings`, `direction`, `lang`, `text_anchor`, `dominant_baseline`, `letter_spacing`, `word_spacing`, `fill_rule`, `font_size`, `stroke_dasharray`, `stroke_linecap`, `stroke_linejoin`, `fill`, `stroke`, `stroke_width`, `opacity`.
364
+ - `Fonts(*, dirs, system, downloads, db)`: Where fonts come from.
365
+ - `Flatten(*, transparency, fallback, dpi, budget, cell)`: Transparency flattening: translucent content (opacity, colors with alpha, gradients with alpha) drawn as opaque vectors, each translucent shape in its color composited over what lies under it (white where nothing is), clipped to each shape under it.
366
+ - `Simplify(*, dpi, tolerance)`: Simplification, on (as `simplify=True`) with its settings.
367
+ - `View(*, trim, margin, width, height, scale, size, aspect, align)`: What an output shows of each page and at what size; numbers are CSS pixels, strings lengths (`"2mm"`). `apply`.
368
+ - `ImagePolicy(*, quality, jxl, dpi, dpi_mode, dpi_threshold, dpi_average)`: How PDF, EPS and SVG output store their images. `resolution`.
369
+ - `PDF(*, a, icc_profile)`: PDF output.
370
+ - `PNG(*, compression, quality)`: PNG output.
371
+ - `JPEG(*, quality, compression, progressive)`: JPEG output of `quality` (1-100), progressive or baseline; `compression` as `jpeg_encode`.
372
+ - `JXL(*, quality, compression)`: JPEG XL output (needs libjxl): lossless, or lossy at `quality` (1-100); `compression` sets the effort.
373
+ - `AVIF(*, quality, compression)`: AVIF output (needs libavif 1.x): lossless, or lossy at `quality` (1-100), alpha lossless; `compression` sets the speed.
374
+ - `TIFF(*, compression)`: TIFF output.
375
+ - `Color(r, g, b, alpha)`: An sRGB color, a 4-tuple of red, green, blue and alpha in [0, 1] (any 3- or 4-tuple of numbers in [0, 1], a CSS string, `CMYK` or `Spot` is a color too). `from_rgb255`, `from_hex`, `from_oklch`, `r`, `g`, `b`, `alpha`, `rgb255`, `rgba255`, `hex`, `lightness`, `chroma`, `hue`, `luminance`, `grayscale`, `simulated`, `with_alpha`, `without_alpha`, `with_lightness`, `with_chroma`, `with_hue`, `mix`, `blend_alpha`, `nearest_from`.
376
+ - `CMYK(c, m, y, k, alpha)`: A device CMYK color; components and alpha are clamped to [0, 1]. `rgba`, `with_alpha`, `css`.
377
+ - `Spot(name, cmyk, tint, alpha)`: A spot (separation) color: ink `name` at `tint`, written as a `Separation` color space. `with_alpha`.
378
+ - `LinearGradient(x1, y1, x2, y2, stops, spread, transform)`: A linear gradient from `(x1, y1)` to `(x2, y2)` in user space. `add_stop`.
379
+ - `RadialGradient(cx, cy, r, stops, fx, fy, fr, spread, …)`: A radial gradient centered at `(cx, cy)` with radius `r`, from the focal circle out to that circle. `add_stop`.
380
+ - `Pattern` (from `page.pattern(…)`): A repeating tile of `width` x `height`, recorded with `pattern`.
381
+ - `Mask` (from `page.mask()`): A luminosity mask recorded with `with page.mask() as m` and applied with `with page.group(mask=m)` (`mask`).
382
+ - `Marker` (from `page.marker()`): A marker drawn by `draw_markers` at every point as it was recorded with `marker`.
383
+ - `PathMarker(draw, width, height, ref, orient, units, view_box, preserve_aspect_ratio, …)`: A marker drawn at vertices of a path (SVG's `<marker>`), by `draw_path`.
384
+ - `Filter(*primitives, region)`: A filter: primitives run in order on the pixels of a group. `split`, `apply`.
385
+ - `Matrix(a, b, c, d, e, f)`: A 2D affine matrix `[a b c d e f]` using PDF/SVG conventions, frozen: a named tuple of its six numbers. `translate`, `scale`, `rotate`, `skew_x`, `skew_y`, `apply`, `determinant`, `inverse`, `is_identity`, `values`.
386
+ - `Path(d)`: A path of absolute moves, lines, cubic curves and closes, packed in `verbs` (a `bytearray` of `MOVE`, `LINE`, `CURVE`, `CLOSE`) and `coords` (an `array('d')`: 2 per move or line, 6 per curve). `move_to`, `line_to`, `curve_to`, `quad_to`, `arc`, `arc_to`, `rect`, `ellipse`, `circle`, `close`, `segments`, `to_svg`, `current_point`, `is_empty`, `extend`, `transformed`, `bbox`, `area`, `vertices`.
387
+ - `Font(family, size, *, weight, style, stretch, variations, optical_sizing, embed, …)`: A font description: what text is shaped with.
388
+ - `GlyphRun` (from `text.shape(…)`): Text shaped on one line. `segments`, `glyphs`, `extent`.
389
+ - `Span(text, *, font_family, font_size, font_weight, font_style, color, url, letter_spacing, …)`: A run of text with its own style. `with_text`.
390
+ - `TextLayout` (from `page.layout_text(…)`): `Paragraphs` laid out for a canvas by `layout_text`. `lines`, `baselines`, `line_cells`, `line_text`.
391
+ - `FontDB(font_dirs, system_fonts, cache, font_downloads)`: Font lookup: document `@font-face` rules, extra and system directories, then downloaded families. `add_font_data`, `add_rule_face`, `local`, `dir_faces`, `all_faces`, `match`, `match_faces`, `download`, `generic`, `fallback`.
392
+ - `Image(width, height, channels, data, dpi, *, icc)`: Pixels: 8-bit samples interleaved row by row from the top. `open`, `data`, `opaque`, `flattened`, `encode`, `to_srgb`, `save`.
393
+ - `Limits(*, time, work, stream_bytes, ratio, ratio_bytes, document_bytes, svg_bytes, image_pixels, …)`: What one call may spend on its input and output; the defaults suit untrusted files.
394
+ - `ai_doc()`: vec_io's guide for coding agents (`docs/ai.md`): what the package does, how it works, the rules to follow, recipes and an index of the API, with links to the reference pages.
395
+ - Types: `ColorLike`, `Paint`, `Content`.
396
+
397
+ **`vec_io.draw`**
398
+
399
+ - `draw.Drawing`: The root of a drawing: a box its children are drawn in. `document`, `render`, `write`, `save`.
400
+ - `draw.Element(**attrs)`: Base class of drawing elements.
401
+ - `draw.Group(*children, **attrs)`: Children drawn together, in order; its style keywords are inherited by them, its element keywords (`opacity`, `clip_path`, `mask`, `filter`…) apply to the group as a whole. `append`, `extend`, `group`.
402
+ - `draw.Rect(x, y, width, height, rx, ry, **attrs)`: A rectangle with its top-left corner at `(x, y)`.
403
+ - `draw.Circle(cx, cy, r, **attrs)`: A circle; a radius of 0 or less draws nothing.
404
+ - `draw.Ellipse(cx, cy, rx, ry, **attrs)`: An ellipse, axes along x and y (`transform=` turns it); a radius of 0 or less draws nothing.
405
+ - `draw.Line(x1, y1, x2, y2, **attrs)`: A line from `(x1, y1)` to `(x2, y2)`: stroked only (it has no fill; the default stroke is none, so give `stroke=`).
406
+ - `draw.Polyline(points, **attrs)`: An open polyline.
407
+ - `draw.Polygon(points, **attrs)`: A closed polygon: filled and stroked closed, with `fill_rule` for its overlaps; markers at its vertices as for `Polyline`.
408
+ - `draw.Path(d, **attrs)`: A path; the methods named after the SVG path commands append to its `Path` (`M`, `L`, `C`... absolute, `m`, `l`, `c`... relative; drawing commands without a current point raise `ArgumentError`). `d`, `M`, `m`, `L`, `l`, `H`, `h`, `V`, `v`, `Z`, `C`, `c`, `S`, `s`, `Q`, `q`, `T`, `t`, `A`, `a`.
409
+ - `draw.Text(text, font_size, x, y, line_height, path, offset, side, …, **attrs)`: Text with its first baseline at `(x, y)`; `text_anchor` aligns it.
410
+ - `draw.TSpan(text, **attrs)`: A styled run inside `Text`.
411
+ - `draw.TextBox(content, x, y, width, height, **attrs)`: Text laid out in a box with its top-left corner at `(x, y)`. `layout`.
412
+ - `draw.Image(x, y, width, height, path, data, preserve_aspect_ratio, smooth, **attrs)`: An image (PNG, JPEG, TIFF, GIF, BMP, ICO, WebP, AVIF, JPEG XL, as `draw_image`) drawn in a box; give `path` or `data`.
413
+ - `draw.SVG(source, x, y, width, height, base_dir, **attrs)`: An SVG document drawn in a box, with everything SVG has: style sheets, filter effects (when enabled), text on paths, markers.
414
+ - `draw.Use(element, x, y, **attrs)`: An element drawn again, moved; style keywords given here apply where the element does not set its own.
415
+ - `draw.Markers(xs, ys, shape, size, **attrs)`: A marker at many points (`draw_markers`).
416
+ - `draw.Cells(x_edges, y_edges, fill, palette, bounds, bad, mode, **attrs)`: A grid of cells, each with its own color (`draw_cells`).
417
+ - `draw.Lines(xs, ys, interpolation, missing, **attrs)`: One or many polylines (`draw_lines`); `stroke`, `stroke_width`, `stroke_dasharray` and `opacity` take one value or one per series.
418
+ - `draw.Segments(x0, y0, x1, y1, **attrs)`: Many segments `(x0, y0) -> (x1, y1)` (`draw_segments`).
419
+ - `draw.Area(xs, y1, y2, interpolation, missing, **attrs)`: The area between `y1` and `y2` over `xs` (`draw_area`), filled and optionally stroked; `fill`, `stroke`, `stroke_width` and `opacity` take one value each.
420
+ - `draw.Rects(x, y, width, height, **attrs)`: Many axis-aligned rectangles (`draw_rects`).
421
+ - `draw.Polygons(paths, **attrs)`: Many filled polygons, each with holes (`draw_polygons`); `fill_rule` applies to all.
422
+ - `draw.Pattern` (from `page.pattern(…)`): A tile drawn by its children, repeated to fill or stroke shapes (as `fill=` or `stroke=`). `record`.
423
+ - `draw.ClipPath(*children, **attrs)`: A clip: the outlines of its children as one path, given as `clip_path=` of another element; it draws nothing itself.
424
+ - `draw.Mask` (from `page.mask()`): A luminance mask drawn by its children, given as `mask=` of another element: where the mask is white the element shows, where black it is hidden, grays in between (opacity multiplies in).
425
+ - `draw.Marker` (from `page.marker()`): A marker drawn by its children at vertices of paths (`marker_start=` ... of `Path`, `Line`, `Polyline`, `Polygon`), as SVG's `<marker>`; see `PathMarker`. `path_marker`.
426
+
427
+ **`vec_io.filter`**
428
+
429
+ - `filter.Primitive(*, input, result, x, y, width, height, space)`: A filter primitive: the keywords every primitive takes (`input2` names a second input where there is one).
430
+ - `filter.GaussianBlur(std_deviation, **common)`: Gaussian blur (`feGaussianBlur`).
431
+ - `filter.Offset(dx, dy, **common)`: The input moved (`feOffset`); what moves out of the subregion is cut, what moves in is transparent.
432
+ - `filter.Flood(color, opacity, **common)`: The subregion filled with a colour (`feFlood`).
433
+ - `filter.DropShadow(dx, dy, std_deviation, color, opacity, **common)`: The input over its shadow (`feDropShadow`): the input's alpha in a colour, blurred and moved.
434
+ - `filter.Composite(operator, input2, k1, k2, k3, k4, **common)`: `input` composited with `input2` (`feComposite`); `arithmetic` gives `k1 i1 i2 + k2 i1 + k3 i2 + k4`.
435
+ - `filter.Merge(*inputs, **common)`: Inputs drawn over one another, the first at the bottom (`feMerge`).
436
+ - `filter.Blend(mode, input2, **common)`: `input` blended onto `input2` (`feBlend`).
437
+ - `filter.ColorMatrix(type, values, **common)`: A color matrix applied to each pixel (`feColorMatrix`).
438
+ - `filter.ComponentTransfer(r, g, b, a, **common)`: A `Transfer` function per channel (`feComponentTransfer`), applied to unpremultiplied values 0–1 in `space`.
439
+ - `filter.Transfer(type, table, slope, intercept, amplitude, exponent, offset)`: A transfer function of one channel (`ComponentTransfer`). `as_dict`.
440
+ - `filter.Morphology(operator, radius, **common)`: The minimum or maximum of each channel over a box around each pixel (`feMorphology`).
441
+ - `filter.Tile(*, input, result, x, y, width, height, space)`: The input's subregion repeated over this primitive's subregion (`feTile`): give the input primitive a subregion and this one a larger one.
442
+ - `filter.ConvolveMatrix(kernel, order, divisor, bias, target_x, target_y, edge_mode, preserve_alpha, **common)`: A convolution (`feConvolveMatrix`).
443
+ - `filter.Turbulence(base_frequency, octaves, seed, type, stitch, transform, **common)`: Perlin turbulence or fractal noise (`feTurbulence`).
444
+ - `filter.DiffuseLighting(light, surface_scale, constant, color, **common)`: Diffuse lighting (`feDiffuseLighting`) of the input's alpha as a height map (normals from heights one user unit apart).
445
+ - `filter.SpecularLighting(light, surface_scale, constant, exponent, color, **common)`: Specular lighting (`feSpecularLighting`) of the input's alpha as a height map, as `DiffuseLighting`; the result's alpha is its brightest channel, to be composited over the source with `Composite("arithmetic", k2=1, k3=1)`.
446
+ - `filter.DistantLight(azimuth, elevation)`: The light of `DiffuseLighting` and `SpecularLighting` from far away (`feDistantLight`).
447
+ - `filter.PointLight(x, y, z)`: The light of `DiffuseLighting` and `SpecularLighting` from a point (`fePointLight`).
448
+ - `filter.SpotLight(x, y, z, points_at, specular_exponent, limiting_cone_angle)`: A spot light (`feSpotLight`) of `DiffuseLighting` and `SpecularLighting`.
449
+ - `filter.Image(source, preserve_aspect_ratio, smooth, **common)`: A PNG, JPEG or JPEG XL image placed in the subregion (`feImage`).
450
+ - `filter.DisplacementMap(scale, x_channel, y_channel, input2, **common)`: `input` displaced by channels of `input2` (`feDisplacementMap`).
451
+
452
+ **`vec_io.text`**
453
+
454
+ - `text.Extent(width, ascent, descent)`: Width (advance) of text on one line, and the largest ascent and descent (positive) of the fonts it uses.
455
+ - `text.Glyph(style, face, synth, gid, advance, text, char)`: One shaped glyph. `copy`, `end_of_line`.
456
+ - `text.Paragraphs(lines, height, remainder)`: Laid-out text: lines with their glyphs and positions. `lines`, `baselines`, `line_cells`, `line_text`.
457
+ - `text.shape(content, font, db, *, font_kerning, letter_spacing, word_spacing, direction)`: Shape text on one line.
458
+ - `text.measure`: `Extent` of text on one line, shaped as `shape` does.
459
+ - `text.layout`: Break text into lines of a box (see `breaking`); returns `Paragraphs`.
460
+ - `text.default_db()`: The font database used when none is given: installed fonts and `VEC_IO_FONT_DIRS`, shared by the process.
461
+ - `text.baseline_position(face, size, name, script)`: Height of a baseline above the alphabetic baseline (negative below): the font's `BASE` table when it has the baseline, else as browsers derive it.
462
+ <!-- end gen -->
463
+
464
+ ## 6. Errors and limits
465
+
466
+ Every error derives from `VecIOError` and from the built-in named beside it
467
+ (`except ValueError` works); warnings from `VecIOWarning` (a `UserWarning`).
468
+
469
+ <!-- gen: errors-short errors -->
470
+ - `ArgumentError` (`ValueError`, `TypeError`): An invalid argument of the public API, of a wrong value or kind: mismatched per-point lengths, an invalid colour, a drawing state value or style keyword that does not exist, an unknown unit, `quality` outside 1-100, `dpi` not positive, a NaN coordinate of a single shape (bulk calls skip such items), a link to a page of another document; and what an output cannot hold.
471
+ - `StateError` (`RuntimeError`): A call that the drawing state does not allow: a page written with a `state()` or a `group()` (mask, pattern) open, `trim()` inside a `state()`.
472
+ - `LimitError` (`ValueError`): A limit of `Limits` was reached; the message names the field and its value (`"image_pixels: 268,435,456"`).
473
+ - `OptionError` (`ArgumentError`): An option that cannot be used: unknown, of another output, or of a wrong value.
474
+ - `SVGParseError` (`ValueError`): Input that is not a usable SVG document: not XML, no `<svg>` root, more than 64 MB of text, elements nested more than 100 levels deep.
475
+ - `PDFReadError` (`ValueError`): A PDF file vec_io cannot read (after recovery), a wrong or missing password, an Illustrator file saved without PDF content, PostScript (convert it with `ps2pdf`), or a file past a limit.
476
+ - `RasterizationError` (`RuntimeError`): Content the rasterizer cannot draw: a standard 14 font with no installed font to draw it, a stroke of more than 2^24 dash points, an area too large for the scan converter, arithmetic-coded or 12-bit JPEGs.
477
+ - `FontError` (`ValueError`): Malformed or unsupported font data: from `Document.add_font`, and when writing or rasterizing a font whose glyph data is malformed (`@font-face` fonts that cannot be read are ignored).
478
+ - `NoFontError` (`ValueError`): No outline font is available to draw text (none installed, `Fonts(system=False)` without `dirs`, `@font-face` or `add_font`, and no font download).
479
+ - `FontDownloadError` (`OSError`): A family could not be downloaded (`download` of a source, `google.refresh`).
480
+ - `ImageError` (`ValueError`): Corrupt or unsupported image data.
481
+ - `NativeLibraryError` (`RuntimeError`): The bundled C library is not available on this platform or failed to load.
482
+ - `NetworkError` (`OSError`): `vec_io.network.get` failing: a refused scheme or redirect, a timeout, a size limit, an HTTP error.
483
+ <!-- end gen -->
484
+
485
+ <!-- gen: errors-short warnings -->
486
+ - `PDFReadWarning`: Content of a PDF left out: an image without its decoder library, an unknown operator, a broken object… Warned once per kind and document.
487
+ - `FlattenWarning`: Content drawn opaque because it could not be flattened (`Flatten(fallback="opaque")`), or a tiling pattern with translucent content rasterized (`fallback="raster"`).
488
+ - `FontDownloadWarning`: A family text asked for could not be downloaded; the next source or family is used.
489
+ - `NetworkWarning`: A URL a document refers to could not be fetched; what refers to it is drawn as missing.
490
+ - `ImageWarning`: An image format needs a system library that was not found (JPEG XL: libjxl, WebP: libwebp, AVIF: libavif); such images are drawn as missing.
491
+ - `SVGWarning`: Part of an SVG document is not drawn: elements nested too deeply for the renderer, a local file outside `base_dir`, a reference to a missing element or to one of the wrong kind.
492
+ <!-- end gen -->
493
+
494
+ - `vec_io doctor` (or `python -m vec_io.native verify`) checks the C library, the
495
+ optional system libraries and the fonts. Without the C library drawing still records but
496
+ output raises `NativeLibraryError`.
497
+ - Optional system libraries: libjxl (JPEG XL), libavif (AVIF), libwebp (WebP input),
498
+ HarfBuzz (joining of Arabic, Indic, Thai… scripts; without it a warning and unjoined
499
+ text), OpenJPEG and jbig2dec (those images in PDF input).
500
+ - Text needs an outline font: none installed, given or downloadable gives `NoFontError`.
501
+ - `Limits` (`limits=` of `convert`, `open_pdf`, `save`, `render`…) bounds time, memory
502
+ and sizes per call; `convert` has a 120 s deadline by default. Past a limit,
503
+ `LimitError` naming the field.
504
+ - Network: an SVG's URLs and font downloads are fetched unless `network=False`; failures
505
+ warn and draw the item as missing.
506
+ - Filters are pixels in PDF and EPS, `<filter>` in SVG. Overprint is kept in PDF, not
507
+ simulated in images.
508
+
509
+ ## 7. Where to look next
510
+
511
+ - [API guide](https://github.com/ajgouhier/vec_io/blob/main/docs/api.md): every topic in
512
+ full: [conventions](https://github.com/ajgouhier/vec_io/blob/main/docs/api.md#1-conventions),
513
+ [drawing state](https://github.com/ajgouhier/vec_io/blob/main/docs/api.md#51-state),
514
+ [text layout](https://github.com/ajgouhier/vec_io/blob/main/docs/api.md#6-text-layout),
515
+ [simplification](https://github.com/ajgouhier/vec_io/blob/main/docs/api.md#13-simplification),
516
+ [fonts](https://github.com/ajgouhier/vec_io/blob/main/docs/api.md#16-fonts),
517
+ [write options](https://github.com/ajgouhier/vec_io/blob/main/docs/api.md#181-options),
518
+ [command line](https://github.com/ajgouhier/vec_io/blob/main/docs/api.md#3-command-line).
519
+ - [Reference](https://github.com/ajgouhier/vec_io/tree/main/docs/reference): a page per
520
+ class, every parameter.
521
+ - [Examples](https://github.com/ajgouhier/vec_io/blob/main/docs/examples.md): scripts with
522
+ their images, and more recipes.
523
+ - Installed: `help(vec_io.Page.draw_markers)` and the other docstrings hold the same text
524
+ as the reference pages.