summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2022-08-02 23:54:40 -0600
committerDan Allen <dan.j.allen@gmail.com>2022-08-03 02:29:10 -0600
commite9d5cb11c8d4e4c571119b1213dc57f54aaabc58 (patch)
tree9ba14b37d3fcb9f2770065b06381031cb3f6a1cd /data
parent311d84a6b27da0f556f3debdf16c10fdcd5e4bd3 (diff)
remove outdated examples for line height in default theme and update information about line height
Diffstat (limited to 'data')
-rw-r--r--data/themes/default-theme.yml22
1 files changed, 5 insertions, 17 deletions
diff --git a/data/themes/default-theme.yml b/data/themes/default-theme.yml
index bd940110..cfc81e96 100644
--- a/data/themes/default-theme.yml
+++ b/data/themes/default-theme.yml
@@ -31,20 +31,12 @@ base:
#font_color: [0, 0, 0, 0.92]
#font_color: [0, 0, 0, 92%]
font_family: Noto Serif
- # choose one of these font_size/line_height_length combinations
- #font_size: 14
- #line_height_length: 20
- #font_size: 11.25
- #line_height_length: 18
- #font_size: 11.2
- #line_height_length: 16
font_size: 10.5
- #line_height_length: 15
- # correct line height for Noto Serif metrics
+ # line_height_length is really just a vertical spacing variable; it's not actually the height of a line
line_height_length: 12
- #font_size: 11.25
- #line_height_length: 18
- line_height: $base_line_height_length / $base_font_size
+ # The Noto font family has a built-in line height of 1.36
+ # With this line_height, a line of text will occupy a height of 15.78pt
+ line_height: $base_line_height_length / 10.5
font_size_large: round($base_font_size * 1.25)
font_size_small: round($base_font_size * 0.85)
font_size_min: $base_font_size * 0.75
@@ -67,9 +59,6 @@ role:
font_color: 999999
font_size: 0.8em
font_style: normal_italic
-# FIXME vertical_rhythm is weird; we should think in terms of ems
-#vertical_rhythm: $base_line_height_length * 2 / 3
-# correct line height for Noto Serif metrics (comes with built-in line height)
vertical_rhythm: $base_line_height_length
horizontal_rhythm: $base_line_height_length
link:
@@ -107,8 +96,7 @@ heading:
h4_font_size: $base_font_size_large
h5_font_size: $base_font_size
h6_font_size: $base_font_size_small
- #line_height: 1.4
- # correct line height for Noto Serif metrics (comes with built-in line height)
+ # rely on built-in line height in Noto
line_height: 1
margin_top: $vertical_rhythm * 0.4
margin_bottom: $vertical_rhythm * 0.9