Fonts and Metrics
dxtr edited this page 2026-10-18 16:07:14 +02:00

Page revisions

6 Commits

Author SHA1 Message Date
ff1f599cd0 Follow cl-harfbuzz 096e0fe: the exported types
The API index lists the nine types cl-harfbuzz now exports, and each
page that describes their values names them: direction, cluster-level
and buffer-flag on Shaping, font-source on Faces, glyph-index and
metric on Fonts and metrics, name-id and layout-table on OpenType
data, and color on Color glyphs.  Installation says which names a
package that uses cl-harfbuzz together with cl-ft2, cl-svgread or
cl-harfbuzz/ffi must shadow.
2026-10-18 16:07:14 +02:00
5e2f5a442c Follow cl-harfbuzz caefc79: declared types, no global nickname hb
cl-harfbuzz has no global nickname now, so the examples are written in
a package that gives it the local nickname hb, and cl-ft2 the nickname
ft2: Home, Installation, Getting started and the FreeType bridge show
it, the tour prints its objects as #<HB:FACE ...>, and the Cookbook
and the API index say so.  The systems load with asdf:load-system in
place of ql:quickload, from a stift checkout or a project that
requires cl-harfbuzz.

Errors says that a wrong argument signals its type-error in the
function it was passed to, a face where a font belongs among them, and
that SBCL warns at compile time about a wrong constant; the example
shows the report SBCL now gives.  Font scales and ppem are 32-bit
integers.  The FFI layer lists the enums hb-ot-name-id-predefined and
hb-ot-metrics-tag, and hb-ot-metrics-get-position takes the metric as
a keyword.  Development counts 48 tests and 328 checks, and its
conventions ask for the ftype, check-type and docstrings.
2026-10-18 15:21:04 +02:00
794e8957c4 Follow the renames, font-only glyph functions and box-shaped FONT-GLYPH-EXTENTS 2026-10-11 21:06:37 +02:00
8937089178 Document FONT-FACE, locale-independent GUESS-SEGMENT-PROPERTIES and WOFF reporting 2026-10-11 20:38:21 +02:00
c6de2b0793 Add Cookbook, Scope and Limitations, Development, FFI Layer and API Index; fix bridge links 2026-10-11 20:28:01 +02:00
9afc1c17b7 Add Fonts and Metrics page 2026-10-11 20:20:04 +02:00