Lines that are not solid

Dashes and dots, the shape of a line's ends, the shape of its corners: each drawn as one line told what to look like. The statement at the bottom is ruled with dots, and its total held off by a dashed line.

An accountant's statement is easier to read when the lines between its rows are quiet: a hairline of dots rather than a solid rule, and a dashed line above the total. This page draws every way a line can be told to look, and then a statement ruled that way.

Nothing here is drawn twice. Each line is a single line, given a pattern of dashes and gaps, a shape for its two ends, and a shape for the corner where two of its segments meet. A table carries the same instruction, so its rules and the border of any one of its cells follow it without a line of drawing code.

What this example shows

  • Dashes, dots and gaps, in any pattern, on any line.
  • Ends squared off, rounded, or run past the end of the line.
  • A table ruled with dots, and a total held off by a dashed line.

The code, in full

The same document is written twice, once in each language. Both files are shown in full, with the code coloured on the server, and can be copied in one click.

The document itself

The same document is written in each of these languages. Open the one you want to look at.

Open the document in English Open the document in French

Read the Rust source Read the Python source

First page of Lines that are not solid

What this document weighs

This document weighs 42,025 bytes.

The team wrote this example after measuring the documents above, so there is no earlier figure to set beside it. See every document measured.

Examples near this one

A minimal PDF

The smallest complete file: a page, and shapes drawn on it.

Making the file smaller

The same document written twice, plainly and packed, with what each one weighs and what the packing saved.

Letters you draw yourself

A tick, a cross and a dash drawn by the program, added to the document as a font, and set among ordinary words.

A page that carries no font

Four faces every reader already draws, set on one page, so the file holds no font at all — and the example weighs the same lines both ways to say what that saves.

A page set in a font from 1990

A face in Adobe's oldest format, read for its widths and carried into the file whole. Every figure the page states about it is read out of the font, not written in by hand.

Every example, by subject