Skip to content

Commit

Permalink
B: Fallbacks and old XPath mode (luxor)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgundlach committed Jan 22, 2025
1 parent 3428f56 commit d722096
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lua/publisher/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2052,7 +2052,11 @@ function commands.load_fontfile( layoutxml,dataxml )
for _,v in ipairs(layoutxml) do
if type(v) == "table" then
if v[".__local_name"] == "Fallback" then
fallbacks[#fallbacks + 1] = v[".__attributes"].filename
if publisher.newxpath then
fallbacks[#fallbacks + 1] = v[".__attributes"].filename
else
fallbacks[#fallbacks + 1] = v.filename
end
end
end
end
Expand Down

0 comments on commit d722096

Please sign in to comment.