yuanshengzhao / garamond-math Goto Github PK
View Code? Open in Web Editor NEWAn OTF math font matching the EB Garamond.
License: SIL Open Font License 1.1
An OTF math font matching the EB Garamond.
License: SIL Open Font License 1.1
Garamond-Math more than any other Math font needs Oldstyle Figures as an option. None other Math font fits so well numerous Renaissance typefaces, and each of those classical fonts simply demands Oldstyle Figures. They were used both in text and in Mathematical formulae.
Unicode-Math has a mechanism to substitute Figures in a Math font from another font. Unfortunately, Garamond-Math displays very visible kerning problems, for example subscript ₁ , when it is taken from the text font.
Please consider the possibility of including Garamond-Math as a supported font in MathJax, using https://github.com/mathjax/MathJax-dev.
Thanks!
Rodrigo
MNWE:
\documentclass{standalone}
\usepackage{unicode-math}
\setmathfont[StylisticSet={2}]{Garamond-Math.otf}
\begin{document}
Text: $\frac{\partial f}{\partial x}$.
Math:
$\displaystyle
\frac{\partial f}{\partial x}
$
\end{document}
Output: test.pdf
Font shape `TU/Garamond-Math.otf(1)/b/n' undefined
(Font) using `TU/Garamond-Math.otf(1)/m/n' instead.
Some symbols missing that appear in advanced Mathematics. I got the corresponding messages about the missing characters when processing notes of my lectures.
Is there a way perhaps to create a closer match between the math sub/superscripts and text sub/superscripts (RawFeatures=+sinf
and RawFeatures=+sups
, see also package realscripts
) that are included in both the original Georg Duffner's EB Garamond, https://github.com/georgd/EB-Garamond, as well as Octavio Pardo's version, https://github.com/octaviopardo/EBGaramond12). By closer match I mean size, alignment and weight.
\renewcommand{\epsilon}{\varepsilon}
does not change all the \epsilon
to \varepsilon
, but it can display if I write \varepsilon
The inter-character spacing for math operators became too wide since commit d42b68b "alg. impr:" . I'm not sure what change has caused that but the .otf
binaries before that commit does not have that problem.
edit: the CTAN version contains this bug
edit: in the commit you can also see that the spacing between "x" and the comma "," is broken. I think that was fixed in a later commit, but the spacing for math operators is still broken.
I’ve been using Garamond Math for some months now to my great pleasure. One thing I’ve found, however, is that operators and relations like ∪, +, = etc. are a little small with respect to other founts, and I think it makes equations a little bit harder to read. Would it be possible — if it’s not too much work — to have a stylistic set where these are a little larger?
Compare the images below: the first one has the same line first in Garamond Math then in Latin Modern Math. You’ll notice that ×, ∪ and = are ever so slightly larger in the second line. The symbols could even be a little larger, as in the second image taken from an XVIIIᵗʰ-century book.
Would be nice if the full set of amssymbols are supported (most are) but at least this one is missing it seems
The rendering of the three engines are different (Currently, the font is optimized for and tested on XeTeX with unicode-math
).
As in the title. Thanks for working on this!
Thanks for the math font!
Things like "text text
Behavior is possibly marginally better in XeLaTeX than in LuaLaTeX, but there is margin for improvement in both cases.
Consider the following code:
\documentclass{standalone}
\usepackage{xfrac}
\usepackage{esdiff}
\usepackage{unicode-math}
\setmathfont{Garamond-Math.otf}
\begin{document}
$\sfrac{\partial S}{\partial r }$ soit $\sfrac{\partial S}{\partial r }$
\end{document}
Rendering is OK with XeLaTeX, but not with LuaLaTeX. Both work OK with other fonts.
Hi; How can I find a otf/ttf/woff version of the font? I'm not familiar with compiling the font from scratch
thanks.
Could you please add the otf's? I have experience with LuaLaTeX but not with FontForge and can't figure out how to generate the files necessary from the sfd's. Either add the generated otf's or extend the Readme with some pointers on how to go about using your work.
Running
otfinfo -i Garamond-Math.otf
I obtain, among other info:
Preferred family: TeX Gyre Termes Math
In fact, opening the font on KDE's font viewer, it report the font name as TeX Gyre Termes Math. All other metadata seems OK (font version reported is 1.543, though).
\mathcal
boldmathfrak
(current glyphs are from TG Termes. No ideas yet)They have been some significant changes in spacing since the last CTAN version, so I have to manually overwrite the file on each texlive update on my system. Is it possible to update the version available in CTAN? Thanks!
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Garamond-Math}
\begin{document}
\( (f) \quad \{f\} \quad [f] \quad \lvert f\rvert \)
\( (y) \quad \{y\} \quad [y] \quad \lvert y\rvert \)
\end{document}
I think those will need some treatment. I don't know what will be an appropriate approach however. I'm not sure kerning can solve the issue without making everything look asymmetric. In a text font this looks like maybe ligatures are needed, but this is perhaps not the correct thing to do for a math font. So maybe the glyphs of the letters need to be adjusted for the math font?
I really like what you are doing and I was wandering if it would be possible to integrate also semibold variants. As the visual weight of the Garamond font is light and this lightness together with the flow of the glyph curves represents a major part of Garamond's beauty, I find the included bold version too pronounced (too contrasting).
When I compile the following example:
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Garamond-Math.otf}[Path=./]
\begin{document}
$A\setminus B$
\end{document}
I get no output between A and B (with LuaLaTeX, a questionmark box with XeLaTeX). As Garamond-Math does have a \backslash
I wonder why there is no \setminus
(⧵ (U+29F5)
).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.