API Reference Tincture v#0.1.0

Copy Markdown View Source

Modules

Typographic-quality PDF generation, in pure Elixir.

Bounds-checked readers for big-endian font table data.

Primitives for the Compact Font Format container.

A measurement context — how wide a string will be, in any font a document knows.

The OpenType Layout common table formats, shared by GPOS and GSUB.

Parser for the OpenType GPOS table: glyph positioning.

Parser for the OpenType GSUB table: glyph substitution.

Reads the metrics and metadata a PDF needs out of a font file.

Parser for the TrueType/OpenType cmap table.

Parsers for the TrueType glyph outline tables, loca and glyf.

Parser for the OpenType name table.

Mapping between Unicode codepoints and OpenType OS/2.ulUnicodeRange bits.

Text flow within a bounded region, and across several of them.

What flow_text/7 and flow_across_boxes/4 managed to place.

Tabular layout with headers, borders and automatic column widths.

Where a rendered table ended, so the next element can be placed below it.

Page templates: margins, columns, headers, footers and pagination.

The outcome of a paginated render.

The outcome of rendering one templated page.

A header or footer: its text, font and size.

Internal PDF state container.

Checks a document against the PDF/A rules Tincture can see.

Detached PKCS#7 / CMS signatures, for signing PDFs.

Standard security handler, revision 6 — AES-256.

Builds the PDF objects for embedded TrueType and OpenType fonts.

A built-in sRGB ICC profile, for use as a PDF/A output intent.

Primitives for writing PDF object syntax.

Turns a Tincture.PDF document into PDF bytes.

Applying a digital signature to a finished PDF.

The logical structure of a tagged document.

Telemetry events emitted while building a document.

Paragraph layout: hyphenation, line breaking and justification.

TeX hyphenation.

Laid-out lines, plus whatever did not fit within the line limit.

One laid-out line: its text, its tokens, its measured width and its position.

Styled text, ready for layout.

An explicit line or paragraph break.

A span of text sharing one font, size and style.

An inter-word space. The line breaker stretches and shrinks these when justifying, which is why they are tokens rather than part of the words.

A single word token, carrying the width it measured to in its run's font.