Laying Out Text
dxtr edited this page 2026-10-19 19:02:01 +02:00

Page revisions

7 Commits

Author SHA1 Message Date
1e10656bc0 Describe laying a layout out again with :into 2026-10-19 19:02:01 +02:00
c38b5308a1 Follow cl-textrender 9432835: declared types checked on entry
Every exported function declares its arguments' full types, which SBCL
checks as the function is entered, and a constant of the wrong type
makes SBCL warn as it compiles the call; Errors shows both, with the
message SBCL prints.  An empty font list given to layout-text is a
type-error now, a span's empty font list still reports itself, and
tab stops must be positive reals in increasing order.  The API
Reference says that glyph IDs are below 2^32.
2026-10-18 16:20:59 +02:00
d1625ef8da Follow cl-textrender 42c5304: the reported booleans end in -p
layout-truncated, line-truncated and glyph-rotated are
layout-truncated-p, line-truncated-p and glyph-rotated-p now, in the
reference tables, the guides and the recipes.
2026-10-18 15:55:08 +02:00
c624e4cb1d Follow cl-textrender 03ab0f6: no global nickname textrender
The package cl-textrender has no global nickname any more.  The
examples run in a package that gives it the local nickname tr, which
Home and Getting Started show, and prose names its symbols in full.
2026-10-18 15:49:23 +02:00
6bbf9dbb25 Follow cl-textrender 08f8561: faces, what fonts keep, and :WRAP NIL
Fonts describes faces, FACE-FONT, the fonts and faces freed once nothing
holds them, DESTROY-FACE, and FACE-CACHE and FONT-CACHE.  The outlines,
rasterizer images and atlases are kept with the faces and fonts they come
from: CACHED-OUTLINE and CACHED-QUADRATICS take the font, the rasterizer
and the atlases need no releasing, and FONT-ATLAS and FACE-ATLAS give a
font's or face's pages.  Laying Out Text and Typography describe :WRAP
NIL and lines cut short, and the references, Errors, Threads and
Lifetimes and the recipes follow.
2026-10-14 03:41:02 +02:00
f825660816 Follow cl-textrender 823b7fc
font-glyph-id, glyph-text-index, the outline cache, map-layout-glyphs in
the raster backend, glyph-region and glyph-image-offset; line-box,
line-content and run-box in place of line and run edges; and
map-layout-fields for distance fields.
2026-10-12 01:27:42 +02:00
ce8f359e6c Document cl-textrender
Guides to fonts, layout, styled text and fallback, typography, vertical
text, coordinates, carets and selection, glyph outlines and the three
optional systems; recipes; a full API reference for every exported
symbol; errors, threads and lifetimes, the layout pipeline, limitations,
and platforms and testing.
2026-10-11 23:15:19 +02:00