diff --git a/core/font.lua b/core/font.lua index c56f60e92..7daa6a931 100644 --- a/core/font.lua +++ b/core/font.lua @@ -67,7 +67,7 @@ SILE.registerCommand("font", function (options, content) -- We must *actually* load the font here, because by the time we're inside -- SILE.shaper.shapeToken, it's too late to respond appropriately to things -- that the post-load hook might want to do. - SILE.font.cache(SILE.font.loadDefaults({}), SILE.shaper.getFace) + SILE.font.cache(SILE.font.loadDefaults(options), SILE.shaper.getFace) if SU.ast.hasContent(content) then SILE.process(content) diff --git a/types/unit.lua b/types/unit.lua index 93d66c988..141e424bf 100644 --- a/types/unit.lua +++ b/types/unit.lua @@ -225,6 +225,7 @@ unittypes["zw"] = { local zenkakuchar = SILE.settings:get("document.zenkakuchar") local measurable, zenkaku, found = pcall(SILE.shaper.measureChar, SILE.shaper, zenkakuchar) if not found or not measurable then + SU.dump{found, measurable, zenkaku, zenkakuchar} SU.warn(([[ Zenkaku width (全角幅) unit zw is falling back to 1em == 1zw as we cannot measure %s