Skip to content

fix(fonts): update fonts dependencies#2866

Merged
ylemkimon merged 19 commits intomasterfrom
update-fonts
Aug 28, 2021
Merged

fix(fonts): update fonts dependencies#2866
ylemkimon merged 19 commits intomasterfrom
update-fonts

Conversation

@ylemkimon
Copy link
Copy Markdown
Member

@ylemkimon ylemkimon commented Mar 29, 2021

  • Update base image to Ubuntu 20.04
  • Use precompiled ttfautohint (1.8.3)
    • Remove build-related tools: wget, man-db, pkg-config
  • Use Python 3
  • Update fonttools to 4.21.1

There are subpixel changes to the screenshots: diff.zip.

@ylemkimon ylemkimon added the build fonts WARNING: this grants write access to the PR label Mar 29, 2021
@github-actions github-actions bot removed the build fonts WARNING: this grants write access to the PR label Mar 29, 2021
@ylemkimon ylemkimon added the build fonts WARNING: this grants write access to the PR label Mar 29, 2021
@github-actions github-actions bot removed the build fonts WARNING: this grants write access to the PR label Mar 29, 2021
@ylemkimon ylemkimon added the build fonts WARNING: this grants write access to the PR label Mar 30, 2021
@github-actions github-actions bot removed the build fonts WARNING: this grants write access to the PR label Mar 30, 2021
@codecov-io
Copy link
Copy Markdown

codecov-io commented Mar 30, 2021

Codecov Report

Merging #2866 (45648ab) into master (fe21971) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2866   +/-   ##
=======================================
  Coverage   93.92%   93.92%           
=======================================
  Files          87       87           
  Lines        6326     6326           
  Branches     1308     1308           
=======================================
  Hits         5942     5942           
  Misses        354      354           
  Partials       30       30           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe21971...45648ab. Read the comment docs.

@ylemkimon ylemkimon added the build fonts WARNING: this grants write access to the PR label Mar 30, 2021
@github-actions github-actions bot removed the build fonts WARNING: this grants write access to the PR label Mar 30, 2021
@ylemkimon
Copy link
Copy Markdown
Member Author

This PR is ready for review.

@edemaine
Copy link
Copy Markdown
Member

@ylemkimon I'm happy to take a look at this now. Could you resolve the conflict / update the screenshots?

@edemaine
Copy link
Copy Markdown
Member

@ylemkimon It would be nice to get font building working again. Do you have some time to look at this, or should I try to fix it myself?

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jul 29, 2021

Codecov Report

Merging #2866 (9cf4456) into master (6fa1adb) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2866   +/-   ##
=======================================
  Coverage   93.94%   93.94%           
=======================================
  Files          88       88           
  Lines        6345     6345           
  Branches     1314     1314           
=======================================
  Hits         5961     5961           
  Misses        354      354           
  Partials       30       30           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6fa1adb...9cf4456. Read the comment docs.

@ylemkimon ylemkimon added the build fonts WARNING: this grants write access to the PR label Jul 29, 2021
@github-actions github-actions bot removed the build fonts WARNING: this grants write access to the PR label Jul 29, 2021
@ylemkimon
Copy link
Copy Markdown
Member Author

@edemaine Sorry for the delay. This PR is ready for review.

Copy link
Copy Markdown
Member

@edemaine edemaine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I finally reviewed this, testing on a Linux machine. Everything looks great, in particular generating the exact same font files, except for two commits which I added already. Could you review them and then merge? Here is what I changed:

  • The code did cd "$(dirname "$0")/../.." and then referred to the path $(dirname $0) again. This doesn't work when the path is relative (e.g. ./buildFonts.sh or even dockers/font/buildFonts.sh). I replaced the latter occurrences with dockers/fonts.
  • There was an uncalled function that claimed to deal with arguments, but no arguments seem to actually be supported. (We could support -h, but why bother if no arguments are supported. 🙂 )
  • buildMetrics.sh instructions had a typo (docker vs. dockers), and generalized the script to run from anywhere.

In either case, feel free to replace with more suitable code. Thanks for these improvements!

Comment thread src/fontMetricsData.js
@edemaine
Copy link
Copy Markdown
Member

It seems that buildFonts.sh doesn't run buildMetrics.sh. Do we not have a Dockerized buildMetrics.sh? It would be nice to include, perhaps in a future PR.

@edemaine
Copy link
Copy Markdown
Member

edemaine commented Aug 28, 2021

Another question: Should we add scripts for build:fonts and build:metrics or something along those lines? Having them in the scripts list makes it more obvious that they exist.

@ylemkimon ylemkimon added the build fonts WARNING: this grants write access to the PR label Aug 28, 2021
@github-actions github-actions bot removed the build fonts WARNING: this grants write access to the PR label Aug 28, 2021
@ylemkimon ylemkimon added the build fonts WARNING: this grants write access to the PR label Aug 28, 2021
@github-actions github-actions bot removed the build fonts WARNING: this grants write access to the PR label Aug 28, 2021
@ylemkimon ylemkimon merged commit ea409ea into master Aug 28, 2021
@ylemkimon ylemkimon deleted the update-fonts branch August 28, 2021 22:06
@ylemkimon
Copy link
Copy Markdown
Member Author

@edemaine Thank you very much!

KaTeX-bot added a commit that referenced this pull request Aug 28, 2021
## [0.13.14](v0.13.13...v0.13.14) (2021-08-28)

### Bug Fixes

* **fonts:** update fonts dependencies ([#2866](#2866)) ([ea409ea](ea409ea))
@KaTeX-bot
Copy link
Copy Markdown
Member

🎉 This PR is included in version 0.13.14 🎉

The release is available on:

Your semantic-release bot 📦🚀

@edemaine
Copy link
Copy Markdown
Member

Oops, maybe this should have been chore instead of fix, but not a big deal. 🙂 We'll have a bunch more releases with actual font-based features soon.

@ylemkimon
Copy link
Copy Markdown
Member Author

@edemaine Since fonts are updated, a patch release makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants