mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 13:08:59 +00:00
The PSD Options dialog gets Preserve Text Editability, and document.export takes preserveText (with layers). Horizontal and vertical point type is written as a type layer (a TySh block with its EngineData) that a reader can edit, and keeps its pixels. The layer holds the text, its fonts by PostScript name, size, leading, tracking, scaling, baseline shift, caps, underline, strikethrough, fill color, Fractional Widths, paragraph alignment and orientation. Type that a type layer would draw differently stays pixels: area type, type on a path, strokes, non-solid fills, fractional tracking, character attributes the layer does not carry, paragraphs that set more than their alignment or run right to left, System Layout, Optical Margin Alignment, ruby, effects, an appearance of its own and opacity masks. A layer that holds type becomes a group of its type layers and pixel layers of the art between them, unless other art in it blends in a mode other than Normal.