diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-03-19 13:20:58 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-03-19 13:20:58 +0100 |
| commit | 54a9ccb1a5e9f1f1e5d2538d2f4ce3d4f7afc4ae (patch) | |
| tree | 3a0f45af5d1cd6d65420887f8412a5594b6300bd /tests/ref/markup | |
| parent | bd12d135cab32d61b32945433e77579d04298d52 (diff) | |
Configurable font edges ⚙
Adds top-edge and bottom-edge parameters to the font function. These define how
the box around a word is computed. The possible values are:
- ascender
- cap-height (default top edge)
- x-height
- baseline (default bottom edge)
- descender
The defaults are chosen so that it's easy to create good-looking designs with
vertical alignment. Since they are much tighter than what most other software
uses by default, the default leading had to be increased to 50% of the font size
and paragraph spacing to 100% of the font size.
The values cap-height and x-height fall back to ascender in case they are zero
because this value may occur in fonts that don't have glyphs with cap- or
x-height (like Twitter Color Emoji). Since cap-height is the default top edge,
doing no fallback would break things badly.
Removes softness in favor of a simple boolean for pages and a more finegread u8
for spacing. This is needed to make paragraph spacing consume line spacing
created by hard line breaks.
Diffstat (limited to 'tests/ref/markup')
| -rw-r--r-- | tests/ref/markup/emph.png | bin | 3079 -> 3053 bytes |
| -rw-r--r-- | tests/ref/markup/escape.png | bin | 4197 -> 5339 bytes |
| -rw-r--r-- | tests/ref/markup/heading.png | bin | 4656 -> 4540 bytes |
| -rw-r--r-- | tests/ref/markup/linebreak.png | bin | 3864 -> 3770 bytes |
| -rw-r--r-- | tests/ref/markup/nbsp.png | bin | 1818 -> 1763 bytes |
| -rw-r--r-- | tests/ref/markup/raw.png | bin | 7282 -> 7291 bytes |
| -rw-r--r-- | tests/ref/markup/strong.png | bin | 2847 -> 2824 bytes |
7 files changed, 0 insertions, 0 deletions
diff --git a/tests/ref/markup/emph.png b/tests/ref/markup/emph.png Binary files differindex f002610e..75231a62 100644 --- a/tests/ref/markup/emph.png +++ b/tests/ref/markup/emph.png diff --git a/tests/ref/markup/escape.png b/tests/ref/markup/escape.png Binary files differindex 3fa44c6d..8e946279 100644 --- a/tests/ref/markup/escape.png +++ b/tests/ref/markup/escape.png diff --git a/tests/ref/markup/heading.png b/tests/ref/markup/heading.png Binary files differindex 9f2ce6ec..3473f798 100644 --- a/tests/ref/markup/heading.png +++ b/tests/ref/markup/heading.png diff --git a/tests/ref/markup/linebreak.png b/tests/ref/markup/linebreak.png Binary files differindex fec65248..4e4702f9 100644 --- a/tests/ref/markup/linebreak.png +++ b/tests/ref/markup/linebreak.png diff --git a/tests/ref/markup/nbsp.png b/tests/ref/markup/nbsp.png Binary files differindex 3e1f0ee7..89f75f14 100644 --- a/tests/ref/markup/nbsp.png +++ b/tests/ref/markup/nbsp.png diff --git a/tests/ref/markup/raw.png b/tests/ref/markup/raw.png Binary files differindex ce833428..59a4e3dd 100644 --- a/tests/ref/markup/raw.png +++ b/tests/ref/markup/raw.png diff --git a/tests/ref/markup/strong.png b/tests/ref/markup/strong.png Binary files differindex ac38c436..7e62f0f3 100644 --- a/tests/ref/markup/strong.png +++ b/tests/ref/markup/strong.png |
