Rasterizing
dxtr edited this page 2026-10-18 17:09:30 +02:00

Page revisions

5 Commits

Author SHA1 Message Date
c9de0c1e44 State the largest image rasterize makes
An image is at most 8388608 pixels, as 4096 by 2048 has; a larger one is
refused before anything is made, with an svg-error that gives the
largest scale at which the drawing fits.
2026-10-18 17:09:30 +02:00
e796cefd56 Say where the scale stops
A shape whose transform the scale takes a unit of farther than 8388608
pixels signals an svg-error, as other shapes beyond FreeType's reach do.
2026-10-18 17:05:41 +02:00
68b58b7d36 Say where a stroke stops
A stroke that, with its caps and miters, would be made farther than
8388608 pixels from its origin signals an svg-error, as a shape beyond
that does; a transform that stretches far more one way than the other
takes a stroke out that far sooner.
2026-10-18 17:03:50 +02:00
f76508d6c0 Describe RGBA, the type of rasterize's colour
cl-svgread/ft2 exports rgba, four reals from 0 to 1 as a list or a
vector, the type rasterize declares for :current-color.  The
Rasterizing page says what it is and that a program can declare its
own colours with it, and the API Reference lists it.
2026-10-18 16:25:37 +02:00
8eadc2bad4 Write cl-svgread's manual
Getting Started: the systems, requirements, installing with stift and
running the tests.  Reading SVG: what read-svg takes, which parts of
SVG it reads, which it leaves out or approximates, and xmls's limit.
Drawings and Shapes: sizes, shapes, paints and opacity, currentColor,
transforms and the view box.  Paths: the arrays, contours, arcs as
cubics, the contours as lists, bounds and counts.  Rasterizing:
cl-svgread/ft2's rasterize, its image, how strokes are made, accuracy,
threads and FreeType's place.  Errors and Warnings, and the API
Reference.  Every example was run against cl-svgread c9ea090.
2026-10-18 02:22:12 +02:00