• Stars
    star
    107
  • Rank 323,587 (Top 7 %)
  • Language
    Python
  • License
    SIL Open Font Lic...
  • Created over 6 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An OTF math font matching the EB Garamond.

Garamond-Math Ver. 2019-08-16

Garamond-Math is an open type math font matching the EB Garamond (Octavio Pardo) and EB Garamond (Georg Mayr-Duffner). Many mathematical symbols are derived from other fonts, others are made from scratch.

Notes

  • Referred fonts: XITS Math, Libertinus Math, Computer Modern, Asana Math, Noto Sans Math.

  • Stylistic sets: (StylisticSet={#1,#2,...} in unicode-math package)

    • 1 โ†’ XITS Blackboard \mathbb.
    • 2 โ†’ Curved \partial.
    • 3 โ†’ CM \mathcal (no lowercase)
    • 4 โ†’ Use semi-bold for \symbf
    • 5 โ†’ Use extra-bold for \symbf
    • 6 โ†’ horizontal "bar" for \hbar
    • 7 โ†’ \int variant
    • 8 โ†’ A \mathcal variant (experimental, no boldface)
    • 9 โ†’ \tilde variant
    • 10 โ†’ out-bending italic h
    • 11 โ†’ larger operators
  • Part of TeX files are from FiraMath repository.

  • Issues, bug reports, forks and other contributions are very welcome.

Known Issue

  • Various spacing problems. Though math fonts technically should not be kerned, some pairs looks very ugly (Ex. VA); sometimes sub/superscript may also have same problem.
  • Fake optical size. EB Garamond does not contain a complete set of glyphs (normal + bold + optical size of both weights). The "optical size ssty" is made by interpolating different weights at the present (without this, the double script is too thin to be readable).

How to Build from Source

  • The sfdir here is NOT ready to build!
  • To build the font from source, please install FontForge and Python 3.
  • Open ./scripts/MetricGen.ipynb, run all the codes before โ€œcodes for generating metricsโ€. For usage in MS Word, set build4word=True in the last cell to be run.
  • On Windows, this should all work out, on other system, the .bat does not work, you should generate font from the generated sfdir with FontForge manually.
  • Only when there is a major improvement will the otf file in the repository will be updated. And the file is built with build4word=False, so it may not be suitable to use in MS Word.

Sample

sample

License

This Font Software is licensed under the SIL Open Font License, Version 1.1.