Skip to content

Commit 7e24648

Browse files
committed
fix(font): Properly cache fonts before use so a hook could look at them
1 parent 2b109a0 commit 7e24648

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/font.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ SILE.registerCommand("font", function (options, content)
6767
-- We must *actually* load the font here, because by the time we're inside
6868
-- SILE.shaper.shapeToken, it's too late to respond appropriately to things
6969
-- that the post-load hook might want to do.
70-
SILE.font.cache(SILE.font.loadDefaults({}), SILE.shaper.getFace)
70+
SILE.font.cache(SILE.font.loadDefaults(options), SILE.shaper.getFace)
7171

7272
if SU.ast.hasContent(content) then
7373
SILE.process(content)

0 commit comments

Comments
 (0)