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

xymostech / XymosTeX / 71
82%

Build:
DEFAULT BRANCH: master
Ran 04 Feb 2021 05:40AM UTC
Jobs 1
Files 41
Run time 12s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
71

push

travis-ci-com

xymostech
Use scaled font metrics for scaled fonts

This follows up on the previous commit where I added scaled
fonts. This adds a new `FontMetrics` primitive that loads TFM files
and returns the metrics scaled by the `scale` in the `Font`. Most of
this PR is going around replacing usages of `TFMFile` with
`FontMetrics`.

The more major change in here is making font metrics in `TeXState`
loaded on-demand, instead of pre-loading the one font that is
currently used. I used another `RefCell` to allow the font metrics to
be changed at any time, and learned about how `Ref` works so that I
can return a reference to something stored in the `RefCell` using
`Ref::map`. I previously would have probably liked to do something
similar with boxes, but ended up just making copies and/or taking the
boxes out instead of returning references.

5569 of 6135 relevant lines covered (90.77%)

2.18 hits per line

Jobs
ID Job ID Ran Files Coverage
3 71.3 04 Feb 2021 05:40AM UTC 0
90.77
Travis Job 71.3
Source Files on build 71
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #71
  • bd71fb17 on github
  • Prev Build on master (#70)
  • Next Build on master (#72)
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