Skip to content

Commit

Permalink
[TMP]: Is this a bug?
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Dec 12, 2024
1 parent e0b5cd8 commit 77e5773
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/font.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions types/unit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77e5773

Please sign in to comment.