• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sile-typesetter / sile / 14390735465

10 Apr 2025 09:30PM UTC coverage: 34.559% (-31.7%) from 66.23%
14390735465

push

github

alerque
Merge tag 'v0.15.12' into develop

4 of 4 new or added lines in 3 files covered. (100.0%)

4064 existing lines in 73 files now uncovered.

6918 of 20018 relevant lines covered (34.56%)

2597.26 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

42.11
/core/fontmanager.lua
1
local fontManager = {}
195✔
2

3
fontManager.fontconfig = require("justenoughfontconfig")
195✔
4

5
local has_macfonts, macfonts = pcall(require, "macfonts")
195✔
6
if has_macfonts and macfonts then
195✔
UNCOV
7
   fontManager.macfonts = macfonts
×
8
end
9

10
local function create_macfonts_fallback (self)
11
   return function (...)
UNCOV
12
      SU.debug("fonts", "Checking via macfonts")
×
UNCOV
13
      local status, result = pcall(self.macfonts._face, ...)
×
UNCOV
14
      if status and result and result.filename then
×
15
         SU.debug("fonts", "Found, returning result")
×
UNCOV
16
         return result
×
17
      else
UNCOV
18
         SU.debug("fonts", "Not found, trying fontconfig instead")
×
UNCOV
19
         return self.fontconfig._face(...)
×
20
      end
21
   end
22
end
23

24
fontManager.face = function (self, ...)
25
   local face
26
   if SILE.input.fontmanager then
226✔
27
      face = self[SILE.input.fontmanager]._face
226✔
UNCOV
28
   elseif has_macfonts then
×
UNCOV
29
      face = create_macfonts_fallback(self)
×
30
   else
UNCOV
31
      face = self.fontconfig._face
×
32
   end
33
   return face(...)
226✔
34
end
35

36
return fontManager
195✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc