Better font not found error
This commit is contained in:
parent
8dd79f0134
commit
5dead1b1a0
@ -15,7 +15,12 @@ if status.ini_version then
|
|||||||
else
|
else
|
||||||
callback_register('define_font', function(name, size)
|
callback_register('define_font', function(name, size)
|
||||||
local f = read_tfm(name, size)
|
local f = read_tfm(name, size)
|
||||||
if not f then return end
|
if not f then
|
||||||
|
tex.error(string.format("Font %q not found", name), "The requested font could't be loaded.\n\z
|
||||||
|
Are you sure that you passed the right name and\n\z
|
||||||
|
that the font is actually installed?")
|
||||||
|
return 0
|
||||||
|
end
|
||||||
return font.define(f)
|
return font.define(f)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
-- nodefont = true
|
|
||||||
-- Some helpers:
|
-- Some helpers:
|
||||||
-- A kpse wrapper
|
-- A kpse wrapper
|
||||||
local serialize_cff = require'luametalatex-font-cff'
|
local serialize_cff = require'luametalatex-font-cff'
|
||||||
|
Loading…
Reference in New Issue
Block a user