@@ -126,7 +126,7 @@ function render_typst_brand_yaml()
126126 if headings and next (headings ) then
127127 quarto .doc .include_text (' in-header' , table.concat ({
128128 ' #show heading: set text(' ,
129- conditional_entry (' font' , headings .family ),
129+ conditional_entry (' font' , headings .family and _quarto . modules . typst . css . translate_font_family_list ( headings . family ), false ),
130130 conditional_entry (' weight' , _quarto .modules .typst .css .translate_font_weight (headings .weight )),
131131 conditional_entry (' style' , headings .style ),
132132 conditional_entry (' fill' , headings .color , false ),
@@ -147,7 +147,7 @@ function render_typst_brand_yaml()
147147 if monospaceInline and next (monospaceInline ) then
148148 quarto .doc .include_text (' in-header' , table.concat ({
149149 ' #show raw.where(block: false): set text(' ,
150- conditional_entry (' font' , monospaceInline .family ),
150+ conditional_entry (' font' , monospaceInline .family and _quarto . modules . typst . css . translate_font_family_list ( monospaceInline . family ), false ),
151151 conditional_entry (' weight' , _quarto .modules .typst .css .translate_font_weight (monospaceInline .weight )),
152152 conditional_entry (' size' , monospaceInline .size , false ),
153153 conditional_entry (' fill' , monospaceInline .color , false ),
@@ -166,7 +166,7 @@ function render_typst_brand_yaml()
166166 if monospaceBlock and next (monospaceBlock ) then
167167 quarto .doc .include_text (' in-header' , table.concat ({
168168 ' #show raw.where(block: true): set text(' ,
169- conditional_entry (' font' , monospaceBlock .family ),
169+ conditional_entry (' font' , monospaceBlock .family and _quarto . modules . typst . css . translate_font_family_list ( monospaceBlock . family ), false ),
170170 conditional_entry (' weight' , _quarto .modules .typst .css .translate_font_weight (monospaceBlock .weight )),
171171 conditional_entry (' size' , monospaceBlock .size , false ),
172172 conditional_entry (' fill' , monospaceBlock .color , false ),
@@ -318,7 +318,7 @@ function render_typst_brand_yaml()
318318 local base = _quarto .modules .brand .get_typography (brandMode , ' base' )
319319 if base and next (base ) then
320320 meta .brand .typography .base = {
321- family = base .family ,
321+ family = base .family and pandoc . RawInline ( ' typst ' , _quarto . modules . typst . css . translate_font_family_list ( base . family )) ,
322322 size = base .size ,
323323 }
324324 end
@@ -332,8 +332,9 @@ function render_typst_brand_yaml()
332332 color = color and pandoc .RawInline (' typst' , color )
333333 local weight = _quarto .modules .typst .css .translate_font_weight (headings .weight or base .weight )
334334 weight = weight and pandoc .RawInline (' typst' , tostring (quote_string (weight )))
335+ local family = headings .family or base .family
335336 meta .brand .typography .headings = {
336- family = headings . family or base . family ,
337+ family = family and pandoc . RawInline ( ' typst ' , _quarto . modules . typst . css . translate_font_family_list ( family )) ,
337338 weight = weight ,
338339 style = headings .style or base .style ,
339340 decoration = headings .decoration or base .decoration ,
0 commit comments