asciidoctor-pdf 1.6.2 → 2.0.0.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/CHANGELOG.adoc +224 -30
  4. data/NOTICE.adoc +16 -4
  5. data/README.adoc +207 -67
  6. data/asciidoctor-pdf.gemspec +3 -7
  7. data/data/fonts/ABOUT-mplus1mn-subset +1 -1
  8. data/data/fonts/ABOUT-mplus1p-subset +2 -2
  9. data/data/fonts/ABOUT-notosans-subset +26 -0
  10. data/data/fonts/ABOUT-notoserif-subset +1 -1
  11. data/data/fonts/{LICENSE-notoserif → LICENSE-noto} +0 -0
  12. data/data/fonts/mplus1mn-bold-subset.ttf +0 -0
  13. data/data/fonts/mplus1mn-bold_italic-subset.ttf +0 -0
  14. data/data/fonts/mplus1mn-italic-subset.ttf +0 -0
  15. data/data/fonts/mplus1mn-regular-subset.ttf +0 -0
  16. data/data/fonts/mplus1p-regular-fallback.ttf +0 -0
  17. data/data/fonts/notoemoji-subset.ttf +0 -0
  18. data/data/fonts/notosans-bold-subset.ttf +0 -0
  19. data/data/fonts/notosans-bold_italic-subset.ttf +0 -0
  20. data/data/fonts/notosans-italic-subset.ttf +0 -0
  21. data/data/fonts/notosans-regular-subset.ttf +0 -0
  22. data/data/fonts/notoserif-bold-subset.ttf +0 -0
  23. data/data/fonts/notoserif-bold_italic-subset.ttf +0 -0
  24. data/data/fonts/notoserif-italic-subset.ttf +0 -0
  25. data/data/fonts/notoserif-regular-subset.ttf +0 -0
  26. data/data/themes/base-theme.yml +18 -22
  27. data/data/themes/default-for-print-theme.yml +24 -0
  28. data/data/themes/default-for-print-with-fallback-font-theme.yml +3 -0
  29. data/data/themes/default-theme.yml +49 -54
  30. data/data/themes/default-with-fallback-font-theme.yml +2 -2
  31. data/data/themes/sans-with-fallback-font-theme.yml +10 -0
  32. data/docs/theming-guide.adoc +967 -344
  33. data/lib/asciidoctor/pdf/converter.rb +1691 -1478
  34. data/lib/asciidoctor/pdf/ext/asciidoctor/document.rb +18 -1
  35. data/lib/asciidoctor/pdf/ext/asciidoctor/image.rb +9 -15
  36. data/lib/asciidoctor/pdf/ext/asciidoctor/list.rb +6 -13
  37. data/lib/asciidoctor/pdf/ext/asciidoctor/section.rb +3 -16
  38. data/lib/asciidoctor/pdf/ext/asciidoctor.rb +1 -5
  39. data/lib/asciidoctor/pdf/ext/core/file.rb +1 -1
  40. data/lib/asciidoctor/pdf/ext/core/quantifiable_stdout.rb +1 -4
  41. data/lib/asciidoctor/pdf/ext/core/string.rb +2 -2
  42. data/lib/asciidoctor/pdf/ext/core.rb +1 -4
  43. data/lib/asciidoctor/pdf/ext/pdf-core/page.rb +8 -33
  44. data/lib/asciidoctor/pdf/ext/pdf-core.rb +0 -18
  45. data/lib/asciidoctor/pdf/ext/prawn/coderay_encoder.rb +5 -7
  46. data/lib/asciidoctor/pdf/ext/prawn/extensions.rb +433 -329
  47. data/lib/asciidoctor/pdf/ext/prawn/font/afm.rb +0 -4
  48. data/lib/asciidoctor/pdf/ext/prawn/font_metric_cache.rb +1 -1
  49. data/lib/asciidoctor/pdf/ext/prawn/formatted_text/arranger.rb +33 -3
  50. data/lib/asciidoctor/pdf/ext/prawn/formatted_text/box.rb +20 -14
  51. data/lib/asciidoctor/pdf/ext/prawn/formatted_text/fragment.rb +9 -3
  52. data/lib/asciidoctor/pdf/ext/prawn/images.rb +14 -16
  53. data/lib/asciidoctor/pdf/ext/prawn-svg/loaders/data.rb +6 -0
  54. data/lib/asciidoctor/pdf/ext/prawn-svg/loaders/web.rb +22 -0
  55. data/lib/asciidoctor/pdf/ext/prawn-svg/url_loader.rb +13 -0
  56. data/lib/asciidoctor/pdf/ext/prawn-svg.rb +5 -2
  57. data/lib/asciidoctor/pdf/ext/prawn-table/cell/asciidoc.rb +76 -20
  58. data/lib/asciidoctor/pdf/ext/prawn-table/cell/text.rb +39 -1
  59. data/lib/asciidoctor/pdf/ext/prawn-table/cell.rb +21 -15
  60. data/lib/asciidoctor/pdf/ext/prawn-table.rb +1 -1
  61. data/lib/asciidoctor/pdf/ext/pygments.rb +2 -2
  62. data/lib/asciidoctor/pdf/ext/rouge/formatters/prawn.rb +17 -20
  63. data/lib/asciidoctor/pdf/ext/rouge/themes/asciidoctor_pdf_default.rb +1 -0
  64. data/lib/asciidoctor/pdf/ext/rouge.rb +0 -1
  65. data/lib/asciidoctor/pdf/formatted_text/formatter.rb +2 -2
  66. data/lib/asciidoctor/pdf/formatted_text/inline_destination_marker.rb +8 -10
  67. data/lib/asciidoctor/pdf/formatted_text/inline_image_arranger.rb +69 -78
  68. data/lib/asciidoctor/pdf/formatted_text/inline_image_renderer.rb +7 -10
  69. data/lib/asciidoctor/pdf/formatted_text/inline_text_aligner.rb +2 -4
  70. data/lib/asciidoctor/pdf/formatted_text/parser.rb +53 -47
  71. data/lib/asciidoctor/pdf/formatted_text/parser.treetop +5 -7
  72. data/lib/asciidoctor/pdf/formatted_text/source_wrap.rb +14 -14
  73. data/lib/asciidoctor/pdf/formatted_text/text_background_and_border_renderer.rb +4 -7
  74. data/lib/asciidoctor/pdf/formatted_text/transform.rb +116 -109
  75. data/lib/asciidoctor/pdf/formatted_text.rb +0 -1
  76. data/lib/asciidoctor/pdf/index_catalog.rb +7 -11
  77. data/lib/asciidoctor/pdf/optimizer.rb +3 -5
  78. data/lib/asciidoctor/pdf/pdfmark.rb +16 -8
  79. data/lib/asciidoctor/pdf/roman_numeral.rb +4 -22
  80. data/lib/asciidoctor/pdf/sanitizer.rb +18 -13
  81. data/lib/asciidoctor/pdf/section_info_by_page.rb +24 -0
  82. data/lib/asciidoctor/pdf/theme_loader.rb +89 -79
  83. data/lib/asciidoctor/pdf/version.rb +1 -2
  84. data/lib/asciidoctor/pdf.rb +5 -2
  85. metadata +34 -64
  86. data/data/fonts/mplus1mn-bold-ascii.ttf +0 -0
  87. data/data/fonts/mplus1mn-bold_italic-ascii.ttf +0 -0
  88. data/data/fonts/mplus1mn-italic-ascii.ttf +0 -0
  89. data/data/fonts/mplus1mn-regular-ascii-conums.ttf +0 -0
  90. data/lib/asciidoctor/pdf/ext/asciidoctor/abstract_block.rb +0 -7
  91. data/lib/asciidoctor/pdf/ext/asciidoctor/abstract_node.rb +0 -7
  92. data/lib/asciidoctor/pdf/ext/asciidoctor/list_item.rb +0 -18
  93. data/lib/asciidoctor/pdf/ext/asciidoctor/logging_shim.rb +0 -33
  94. data/lib/asciidoctor/pdf/ext/core/array.rb +0 -11
  95. data/lib/asciidoctor/pdf/ext/core/hash.rb +0 -7
  96. data/lib/asciidoctor/pdf/ext/core/regexp.rb +0 -5
  97. data/lib/asciidoctor/pdf/ext/pdf-core/pdf_object.rb +0 -8
  98. data/lib/asciidoctor-pdf/converter.rb +0 -3
  99. data/lib/asciidoctor-pdf/version.rb +0 -3
@@ -1,6 +1,4 @@
1
1
  # NOTE file is read "as is"; variables are not parsed; key layout must be flat
2
- # QUESTION should vertical_spacing be block_spacing instead?
3
- vertical_spacing: 12
4
2
  page_background_color: 'FFFFFF'
5
3
  page_layout: portrait
6
4
  page_initial_zoom: FitH
@@ -21,6 +19,7 @@ base_font_style: normal
21
19
  base_line_height: 1.15
22
20
  base_border_color: 'EEEEEE'
23
21
  base_border_width: 0.5
22
+ role_lead_font_size: 13.5
24
23
  role_line-through_text_decoration: line-through
25
24
  role_underline_text_decoration: underline
26
25
  role_big_font_size: 14
@@ -29,12 +28,13 @@ role_subtitle_font_size: 0.8em
29
28
  button_content: '[%s]'
30
29
  button_font_family: Courier
31
30
  button_font_style: bold
32
- key_font_family: Courier
33
- key_font_style: italic
34
- mark_background_color: ffff00
31
+ kbd_font_family: Courier
32
+ kbd_font_style: italic
33
+ mark_background_color: 'FFFF00'
35
34
  mark_border_offset: 1
35
+ menu_font_style: bold
36
36
  link_font_color: '0000EE'
37
- literal_font_family: Courier
37
+ codespan_font_family: Courier
38
38
  heading_font_style: bold
39
39
  heading_h1_font_size: 24
40
40
  heading_h2_font_size: 18
@@ -53,12 +53,12 @@ title_page_title_top: 40%
53
53
  title_page_title_font_size: 18
54
54
  title_page_subtitle_font_size: 14
55
55
  title_page_authors_margin_top: 12
56
- outline_list_indent: 30
57
- outline_list_item_spacing: 6
56
+ list_indent: 30
57
+ list_item_spacing: 6
58
58
  description_list_description_indent: 30
59
59
  description_list_term_font_style: bold
60
60
  description_list_term_spacing: 4
61
- block_margin_top: 0
61
+ callout_list_margin_top_after_code: -6
62
62
  block_margin_bottom: 12
63
63
  caption_align: left
64
64
  caption_font_style: italic
@@ -71,15 +71,15 @@ abstract_title_align: center
71
71
  abstract_title_font_style: bold
72
72
  admonition_column_rule_color: 'EEEEEE'
73
73
  admonition_column_rule_width: 0.5
74
- admonition_padding: [0, 12, 0, 12]
74
+ admonition_padding: [4, 12, 4, 12]
75
75
  admonition_label_font_style: bold
76
76
  admonition_label_text_transform: uppercase
77
- blockquote_border_color: 'EEEEEE'
78
- blockquote_border_left_width: 4
79
- blockquote_padding: [6, 12, -6, 14]
77
+ quote_border_color: 'EEEEEE'
78
+ quote_border_left_width: 4
79
+ quote_padding: [6, 12, 6, 14]
80
80
  verse_border_color: 'EEEEEE'
81
81
  verse_border_left_width: 4
82
- verse_padding: [6, 12, -6, 14]
82
+ verse_padding: [6, 12, 6, 14]
83
83
  code_font_family: Courier
84
84
  code_font_size: 10.8
85
85
  code_line_height: 1.2
@@ -91,16 +91,11 @@ conum_glyphs: circled
91
91
  example_background_color: 'FFFFFF'
92
92
  example_border_color: 'EEEEEE'
93
93
  example_border_width: 0.5
94
- # FIXME reenable margin bottom once margin collapsing is implemented
95
- example_padding: [12, 12, 0, 12]
94
+ example_padding: 12
96
95
  image_align: left
97
- lead_font_size: 13.5
98
- lead_line_height: 1.4
99
- prose_margin_top: 0
100
96
  prose_margin_bottom: 12
101
97
  sidebar_background_color: 'EEEEEE'
102
- # FIXME reenable margin bottom once margin collapsing is implemented
103
- sidebar_padding: [12, 12, 0, 12]
98
+ sidebar_padding: 12
104
99
  sidebar_title_align: center
105
100
  sidebar_title_font_style: bold
106
101
  table_border_color: '000000'
@@ -113,9 +108,10 @@ table_body_stripe_background_color: 'EEEEEE'
113
108
  thematic_break_border_color: 'EEEEEE'
114
109
  thematic_break_border_style: solid
115
110
  thematic_break_border_width: 0.5
111
+ thematic_break_margin_bottom: 12
116
112
  toc_indent: 15
117
113
  toc_line_height: 1.4
118
114
  footnotes_font_size: 9
119
- footnotes_item_space: 3
115
+ footnotes_item_spacing: 3
120
116
  footer_recto_right_content: '{page-number}'
121
117
  footer_verso_left_content: '{page-number}'
@@ -0,0 +1,24 @@
1
+ extends: default
2
+ base_border_color: BBBBBB
3
+ base_font_color: 000000
4
+ role_subtitle_font_color: 666666
5
+ link_font_color: ~
6
+ literal_font_color: ~
7
+ mark_background_color: CCCCCC
8
+ menu_caret_content: " <font size=\"1.15em\">\u203a</font> "
9
+ heading_font_color: $base_font_color
10
+ title_page_title_font_color: $role_subtitle_font_color
11
+ abstract_font_color: 2C2C2C
12
+ abstract_title_font_color: $heading_font_color
13
+ admonition_column_rule_color: $base_border_color
14
+ blockquote_border_color: $base_border_color
15
+ blockquote_cite_font_color: $role_subtitle_font_color
16
+ verse_border_color: $base_border_color
17
+ verse_cite_font_color: $blockquote_cite_font_color
18
+ code_font_color: $base_font_color
19
+ conum_font_color: $base_font_color
20
+ example_border_color: $base_border_color
21
+ sidebar_title_font_color: $heading_font_color
22
+ thematic_break_border_color: $base_border_color
23
+ toc_dot_leader_font_color: ~
24
+ footer_border_color: CCCCCC
@@ -0,0 +1,3 @@
1
+ extends:
2
+ - default-for-print
3
+ - default-with-fallback-font
@@ -2,16 +2,16 @@ font:
2
2
  catalog:
3
3
  # Noto Serif supports Latin, Latin-1 Supplement, Latin Extended-A, Greek, Cyrillic, Vietnamese & an assortment of symbols
4
4
  Noto Serif:
5
- normal: notoserif-regular-subset.ttf
6
- bold: notoserif-bold-subset.ttf
7
- italic: notoserif-italic-subset.ttf
8
- bold_italic: notoserif-bold_italic-subset.ttf
5
+ normal: GEM_FONTS_DIR/notoserif-regular-subset.ttf
6
+ bold: GEM_FONTS_DIR/notoserif-bold-subset.ttf
7
+ italic: GEM_FONTS_DIR/notoserif-italic-subset.ttf
8
+ bold_italic: GEM_FONTS_DIR/notoserif-bold_italic-subset.ttf
9
9
  # M+ 1mn supports ASCII and the circled numbers used for conums
10
10
  M+ 1mn:
11
- normal: mplus1mn-regular-subset.ttf
12
- bold: mplus1mn-bold-subset.ttf
13
- italic: mplus1mn-italic-subset.ttf
14
- bold_italic: mplus1mn-bold_italic-subset.ttf
11
+ normal: GEM_FONTS_DIR/mplus1mn-regular-subset.ttf
12
+ bold: GEM_FONTS_DIR/mplus1mn-bold-subset.ttf
13
+ italic: GEM_FONTS_DIR/mplus1mn-italic-subset.ttf
14
+ bold_italic: GEM_FONTS_DIR/mplus1mn-bold_italic-subset.ttf
15
15
  page:
16
16
  background_color: FFFFFF
17
17
  layout: portrait
@@ -53,6 +53,8 @@ base:
53
53
  border_radius: 4
54
54
  border_width: 0.5
55
55
  role:
56
+ lead:
57
+ font_size: $base_font_size_large
56
58
  line-through:
57
59
  text_decoration: line-through
58
60
  underline:
@@ -62,37 +64,37 @@ role:
62
64
  small:
63
65
  font_size: $base_font_size_small
64
66
  subtitle:
65
- font_size: 0.8em
66
67
  font_color: 999999
68
+ font_size: 0.8em
69
+ font_style: normal_italic
67
70
  # FIXME vertical_rhythm is weird; we should think in terms of ems
68
71
  #vertical_rhythm: $base_line_height_length * 2 / 3
69
72
  # correct line height for Noto Serif metrics (comes with built-in line height)
70
73
  vertical_rhythm: $base_line_height_length
71
74
  horizontal_rhythm: $base_line_height_length
72
- # QUESTION should vertical_spacing be block_spacing instead?
73
- vertical_spacing: $vertical_rhythm
74
75
  link:
75
76
  font_color: 428BCA
76
- # literal is currently used for inline monospaced in prose and table cells
77
- literal:
77
+ # codespan is currently used for monospaced phrases and table cells
78
+ codespan:
78
79
  font_color: B12146
79
80
  font_family: M+ 1mn
80
81
  button:
81
82
  content: "[\u2009%s\u2009]"
82
83
  font_style: bold
83
- key:
84
+ kbd:
84
85
  background_color: F5F5F5
85
86
  border_color: CCCCCC
86
87
  border_offset: 2
87
88
  border_radius: 2
88
89
  border_width: 0.5
89
- font_family: $literal_font_family
90
+ font_family: $codespan_font_family
90
91
  separator: "\u202f+\u202f"
91
92
  mark:
92
93
  background_color: FFFF00
93
94
  border_offset: 1
94
95
  menu:
95
- caret_content: " <font size=\"1.15em\"><color rgb=\"b12146\">\u203a</color></font> "
96
+ caret_content: " <font size=\"1.15em\" color=\"#B12146\">\u203a</font> "
97
+ font_style: bold
96
98
  heading:
97
99
  align: left
98
100
  font_color: $base_font_color
@@ -118,7 +120,7 @@ title_page:
118
120
  title:
119
121
  top: 55%
120
122
  font_size: $heading_h1_font_size
121
- font_color: 999999
123
+ font_color: $role_subtitle_font_color
122
124
  line_height: 0.9
123
125
  subtitle:
124
126
  font_size: $heading_h3_font_size
@@ -131,7 +133,6 @@ title_page:
131
133
  revision:
132
134
  margin_top: $base_font_size * 1.25
133
135
  block:
134
- margin_top: 0
135
136
  margin_bottom: $vertical_rhythm
136
137
  caption:
137
138
  align: left
@@ -139,15 +140,11 @@ caption:
139
140
  font_style: italic
140
141
  # FIXME perhaps set line_height instead of / in addition to margins?
141
142
  margin_inside: $vertical_rhythm / 3
142
- #margin_inside: $vertical_rhythm / 4
143
143
  margin_outside: 0
144
- lead:
145
- font_size: $base_font_size_large
146
- line_height: 1.4
147
144
  abstract:
148
145
  font_color: 5C6266
149
- font_size: $lead_font_size
150
- line_height: $lead_line_height
146
+ font_size: $role_lead_font_size
147
+ line_height: 1.4
151
148
  font_style: italic
152
149
  first_line_font_style: bold
153
150
  title:
@@ -158,7 +155,7 @@ abstract:
158
155
  admonition:
159
156
  column_rule_color: $base_border_color
160
157
  column_rule_width: $base_border_width
161
- padding: [0, $horizontal_rhythm, 0, $horizontal_rhythm]
158
+ padding: [$vertical_rhythm / 3.0, $horizontal_rhythm, $vertical_rhythm / 3.0, $horizontal_rhythm]
162
159
  #icon:
163
160
  # tip:
164
161
  # name: far-lightbulb
@@ -167,27 +164,28 @@ admonition:
167
164
  label:
168
165
  text_transform: uppercase
169
166
  font_style: bold
170
- blockquote:
167
+ quote:
171
168
  font_size: $base_font_size_large
172
169
  border_color: $base_border_color
173
170
  border_width: 0
174
171
  border_left_width: 5
175
- # FIXME disable negative padding bottom once margin collapsing is implemented
176
- padding: [0, $horizontal_rhythm, $block_margin_bottom * -0.75, $horizontal_rhythm + $blockquote_border_left_width / 2]
177
- cite_font_size: $base_font_size_small
178
- cite_font_color: 999999
172
+ padding: [0, $horizontal_rhythm, $block_margin_bottom * 0.25, $horizontal_rhythm + $quote_border_left_width / 2]
173
+ cite:
174
+ font_size: $base_font_size_small
175
+ font_color: $role_subtitle_font_color
179
176
  verse:
180
- font_size: $blockquote_font_size
181
- border_color: $blockquote_border_color
182
- border_width: $blockquote_border_width
183
- border_left_width: $blockquote_border_left_width
184
- padding: $blockquote_padding
185
- cite_font_size: $blockquote_cite_font_size
186
- cite_font_color: $blockquote_cite_font_color
187
- # code is used for source blocks (perhaps change to source or listing?)
177
+ font_size: $quote_font_size
178
+ border_color: $quote_border_color
179
+ border_width: $quote_border_width
180
+ border_left_width: $quote_border_left_width
181
+ padding: $quote_padding
182
+ cite:
183
+ font_size: $quote_cite_font_size
184
+ font_color: $quote_cite_font_color
185
+ # code is used for literal, listing, and source blocks and literal table cells
188
186
  code:
189
187
  font_color: $base_font_color
190
- font_family: $literal_font_family
188
+ font_family: $codespan_font_family
191
189
  font_size: ceil($base_font_size)
192
190
  padding: $code_font_size
193
191
  line_height: 1.25
@@ -198,8 +196,8 @@ code:
198
196
  border_radius: $base_border_radius
199
197
  border_width: 0.75
200
198
  conum:
201
- font_family: $literal_font_family
202
- font_color: $literal_font_color
199
+ font_family: $codespan_font_family
200
+ font_color: $codespan_font_color
203
201
  font_size: $base_font_size
204
202
  line_height: 4 / 3
205
203
  glyphs: circled
@@ -208,20 +206,17 @@ example:
208
206
  border_radius: $base_border_radius
209
207
  border_width: 0.75
210
208
  background_color: $page_background_color
211
- # FIXME reenable padding bottom once margin collapsing is implemented
212
- padding: [$vertical_rhythm, $horizontal_rhythm, 0, $horizontal_rhythm]
209
+ padding: [$vertical_rhythm, $horizontal_rhythm, $vertical_rhythm, $horizontal_rhythm]
213
210
  image:
214
211
  align: left
215
212
  prose:
216
- margin_top: $block_margin_top
217
213
  margin_bottom: $block_margin_bottom
218
214
  sidebar:
219
215
  background_color: EEEEEE
220
216
  border_color: E1E1E1
221
217
  border_radius: $base_border_radius
222
218
  border_width: $base_border_width
223
- # FIXME reenable padding bottom once margin collapsing is implemented
224
- padding: [$vertical_rhythm, $vertical_rhythm * 1.25, 0, $vertical_rhythm * 1.25]
219
+ padding: [$vertical_rhythm, $vertical_rhythm * 1.25, $vertical_rhythm, $vertical_rhythm * 1.25]
225
220
  title:
226
221
  align: center
227
222
  font_color: $heading_font_color
@@ -233,15 +228,17 @@ thematic_break:
233
228
  border_width: $base_border_width
234
229
  margin_top: $vertical_rhythm * 0.5
235
230
  margin_bottom: $vertical_rhythm * 1.5
231
+ list:
232
+ indent: $horizontal_rhythm * 1.5
233
+ #marker_font_color: 404040
234
+ # NOTE list_item_spacing only applies to list items that do not have complex content
235
+ item_spacing: $vertical_rhythm / 2
236
236
  description_list:
237
237
  term_font_style: bold
238
238
  term_spacing: $vertical_rhythm / 4
239
239
  description_indent: $horizontal_rhythm * 1.25
240
- outline_list:
241
- indent: $horizontal_rhythm * 1.5
242
- #marker_font_color: 404040
243
- # NOTE outline_list_item_spacing applies to list items that do not have complex content
244
- item_spacing: $vertical_rhythm / 2
240
+ callout_list:
241
+ margin_top_after_code: -$block_margin_bottom / 2
245
242
  table:
246
243
  background_color: $page_background_color
247
244
  border_color: DDDDDD
@@ -263,7 +260,7 @@ toc:
263
260
  #levels: 2 3
264
261
  footnotes:
265
262
  font_size: round($base_font_size * 0.75)
266
- item_spacing: $outline_list_item_spacing / 2
263
+ item_spacing: $list_item_spacing / 2
267
264
  header:
268
265
  font_size: $base_font_size_small
269
266
  line_height: 1
@@ -278,10 +275,8 @@ footer:
278
275
  padding: [$base_line_height_length / 2, 1, 0, 1]
279
276
  vertical_align: top
280
277
  recto:
281
- #columns: "<50% =0% >50%"
282
278
  right:
283
279
  content: '{page-number}'
284
280
  verso:
285
- #columns: $footer_recto_columns
286
281
  left:
287
282
  content: $footer_recto_right_content
@@ -4,6 +4,6 @@ font:
4
4
  merge: true
5
5
  # M+ 1p supports Latin, Latin-1 Supplement, Latin Extended, Greek, Cyrillic, Vietnamese, Japanese & an assortment of symbols
6
6
  # It also provides arrows for ->, <-, => and <= replacements in case these glyphs are missing from font
7
- M+ 1p Fallback: mplus1p-regular-fallback.ttf
8
- Noto Emoji: notoemoji-subset.ttf
7
+ M+ 1p Fallback: GEM_FONTS_DIR/mplus1p-regular-fallback.ttf
8
+ Noto Emoji: GEM_FONTS_DIR/notoemoji-subset.ttf
9
9
  fallbacks: [M+ 1p Fallback, Noto Emoji]
@@ -0,0 +1,10 @@
1
+ extends: default-with-fallback-font
2
+ font:
3
+ catalog:
4
+ merge: true
5
+ Noto Sans:
6
+ normal: GEM_FONTS_DIR/notosans-regular-subset.ttf
7
+ bold: GEM_FONTS_DIR/notosans-bold-subset.ttf
8
+ italic: GEM_FONTS_DIR/notosans-italic-subset.ttf
9
+ bold_italic: GEM_FONTS_DIR/notosans-bold_italic-subset.ttf
10
+ base_font_family: Noto Sans