模块:Font
此模块的文档可以在模块:Font/doc创建
local p = {}
function p.import(frame)
local src = frame.args[1] or frame.args.src
local name = frame.args[2] or frame.args.name
return frame:extensionTag('fontface', '', {
src = src,
name = name
})
end
function p.use(frame)
local fontName = frame.args[1] or frame.args.name or frame.args.font
local text = frame.args[2] or frame.args.text
return frame:extensionTag('exfont', text, {
name = fontName
})
end
return p