Skip to content

Commit

Permalink
Merge pull request #3 from silnrsi/extrainfo
Browse files Browse the repository at this point in the history
Expanded headers
  • Loading branch information
jvgaultney authored Jun 28, 2018
2 parents 856df03 + 3201c50 commit 6333b1b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions classes/fontproof.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ fontproof:declareFrame("runningHead", {left = "left(content)", right = "right(c
SILE.scratch.fontproof.testfont.filename = SILE.resolveFile("packages/fontproofsupport/Lato2OFL/Lato-Light.ttf")
SILE.scratch.fontproof.testfont.size = "8pt"
SILE.scratch.fontproof.runhead.filename = SILE.resolveFile("packages/fontproofsupport/Lato2OFL/Lato-Light.ttf")
SILE.scratch.fontproof.runhead.size = "8pt"
SILE.scratch.fontproof.runhead.size = "5pt"
SILE.scratch.fontproof.section.filename = SILE.resolveFile("packages/fontproofsupport/Lato2OFL/Lato-Heavy.ttf")
SILE.scratch.fontproof.section.size = "12pt"
SILE.scratch.fontproof.subsection.filename = SILE.resolveFile("packages/fontproofsupport/Lato2OFL/Lato-Light.ttf")
SILE.scratch.fontproof.subsection.size = "12pt"
SILE.scratch.fontproof.sileversion = SILE.version

local hb = require("justenoughharfbuzz")
SILE.scratch.fontproof.hb = hb.version()

function fontproof:init()
self:loadPackage("linespacing")
Expand All @@ -33,9 +37,10 @@ end

fontproof.endPage = function(self)
if SILE.scratch.fontproof.testfont.family then
runheadinfo = SILE.masterFilename .. " - " .. SILE.scratch.fontproof.testfont.family .. " - " .. os.date("%d %b %Y %X")
runheadinfo = "Fontproof for: " .. SILE.scratch.fontproof.testfont.family .. " - Input file: " .. SILE.masterFilename .. ".sil - " .. os.date("%A %d %b %Y %X %z %Z") .. " - SILE " .. SILE.scratch.fontproof.sileversion .. " - HarfBuzz " .. SILE.scratch.fontproof.hb
else
runheadinfo = SILE.masterFilename .. " - " .. SILE.scratch.fontproof.testfont.filename .. " - " .. os.date("%d %b %Y %X")
runheadinfo = "Fontproof for: " .. SILE.scratch.fontproof.testfont.filename .. " - Input file: " ..
SILE.masterFilename .. ".sil - " .. os.date("%A %d %b %Y %X %z %Z") .. " - SILE " .. SILE.scratch.fontproof.sileversion .. " - HarfBuzz " .. SILE.scratch.fontproof.hb
end
SILE.typesetNaturally(SILE.getFrame("runningHead"), function()
SILE.settings.set("document.rskip", SILE.nodefactory.hfillGlue)
Expand Down

0 comments on commit 6333b1b

Please sign in to comment.