* [NTG-context] Fira Math: goodies needed?
@ 2023-07-21 22:17 Leah Neukirchen
2023-07-22 13:47 ` [NTG-context] " Mikael Sundqvist
0 siblings, 1 reply; 3+ messages in thread
From: Leah Neukirchen @ 2023-07-21 22:17 UTC (permalink / raw)
To: ntg-context
Hi,
I'm trying to use Fira Math (https://github.com/firamath/firamath).
But this small example yields both limits on the same horizontal axis,
i.e. the 0 is far away from the integral sign:
\definefontfamily [mainface] [mm] [Fira Math]
\setupbodyfont [mainface]
\starttext
\startformula
\int_0^1 e^x
\stopformula
\stoptext
Meanwhile, when I use LaTeX, the 0 is moved to the left and close to
the integral sign:
\documentclass{article}
\usepackage{amsmath}
\usepackage[mathrm=sym]{unicode-math}
\setmathfont{Fira Math}
\begin{document}
\[
\int_0^1 e^x
\]
\end{document}
In both cases
/opt/texlive/2023/texmf-dist/fonts/opentype/public/firamath/FiraMath-Regular.otf
is used...
--
Leah Neukirchen <leah@vuxu.org> https://leahneukirchen.org/
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* [NTG-context] Re: Fira Math: goodies needed?
2023-07-21 22:17 [NTG-context] Fira Math: goodies needed? Leah Neukirchen
@ 2023-07-22 13:47 ` Mikael Sundqvist
2023-07-23 21:42 ` Leah Neukirchen
0 siblings, 1 reply; 3+ messages in thread
From: Mikael Sundqvist @ 2023-07-22 13:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1200 bytes --]
Hi Leah,
On Sat, Jul 22, 2023 at 12:19 AM Leah Neukirchen <leah@vuxu.org> wrote:
>
> Hi,
>
> I'm trying to use Fira Math (https://github.com/firamath/firamath).
>
> But this small example yields both limits on the same horizontal axis,
> i.e. the 0 is far away from the integral sign:
>
>
> \definefontfamily [mainface] [mm] [Fira Math]
> \setupbodyfont [mainface]
>
> \starttext
> \startformula
> \int_0^1 e^x
> \stopformula
> \stoptext
>
>
> Meanwhile, when I use LaTeX, the 0 is moved to the left and close to
> the integral sign:
>
>
> \documentclass{article}
> \usepackage{amsmath}
> \usepackage[mathrm=sym]{unicode-math}
> \setmathfont{Fira Math}
>
> \begin{document}
> \[
> \int_0^1 e^x
> \]
> \end{document}
>
>
> In both cases
> /opt/texlive/2023/texmf-dist/fonts/opentype/public/firamath/FiraMath-Regular.otf
> is used...
>
As far as I remember, we did not consider firamath usable last time we
tested. Is it OK?
Attached you find a very basic goodie file that 1) set the
primeshiftup parameter and 2) enables presets.moveintegrals. Also add
\definefontfeature[default][default][goodies=fira-math.lfg]
to use it.
/Mikael
[-- Attachment #2: fira-math.lfg --]
[-- Type: application/octet-stream, Size: 722 bytes --]
local common = fonts.goodies.load("common-math.lfg")
local presets = common.mathematics.tweaks.presets
return {
name = "fira-math",
version = "0.10",
comment = "Goodies that complement fira.",
author = "Hans Hagen & Mikael Sundqvist",
copyright = "ConTeXt development team",
mathematics = {
parameters = {
PrimeShiftUp = "0.7*SuperscriptShiftUp",
},
tweaks = {
aftercopying = {
presets.moveintegrals { },
presets.moveitalics { correct = true },
presets.wipeanchors { },
presets.wipeitalics { },
},
},
},
}
[-- Attachment #3: Type: text/plain, Size: 495 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* [NTG-context] Re: Fira Math: goodies needed?
2023-07-22 13:47 ` [NTG-context] " Mikael Sundqvist
@ 2023-07-23 21:42 ` Leah Neukirchen
0 siblings, 0 replies; 3+ messages in thread
From: Leah Neukirchen @ 2023-07-23 21:42 UTC (permalink / raw)
To: Mikael Sundqvist; +Cc: mailing list for ConTeXt users
Mikael Sundqvist <mickep@gmail.com> writes:
> Hi Leah,
>
> On Sat, Jul 22, 2023 at 12:19 AM Leah Neukirchen <leah@vuxu.org> wrote:
>>
>> Hi,
>>
>> I'm trying to use Fira Math (https://github.com/firamath/firamath).
>>
>> But this small example yields both limits on the same horizontal axis,
>> i.e. the 0 is far away from the integral sign:
>>
>>
>> \definefontfamily [mainface] [mm] [Fira Math]
>> \setupbodyfont [mainface]
>>
>> \starttext
>> \startformula
>> \int_0^1 e^x
>> \stopformula
>> \stoptext
>>
>>
>> Meanwhile, when I use LaTeX, the 0 is moved to the left and close to
>> the integral sign:
>>
>>
>> \documentclass{article}
>> \usepackage{amsmath}
>> \usepackage[mathrm=sym]{unicode-math}
>> \setmathfont{Fira Math}
>>
>> \begin{document}
>> \[
>> \int_0^1 e^x
>> \]
>> \end{document}
>>
>>
>> In both cases
>> /opt/texlive/2023/texmf-dist/fonts/opentype/public/firamath/FiraMath-Regular.otf
>> is used...
>>
>
> As far as I remember, we did not consider firamath usable last time we
> tested. Is it OK?
It's not exactly great, but I like the font itself for slides; I guess
it works for simple math.
> Attached you find a very basic goodie file that 1) set the
> primeshiftup parameter and 2) enables presets.moveintegrals. Also add
>
> \definefontfeature[default][default][goodies=fira-math.lfg]
>
> to use it.
Thanks, that works!
--
Leah Neukirchen <leah@vuxu.org> https://leahneukirchen.org/
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-07-23 21:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-21 22:17 [NTG-context] Fira Math: goodies needed? Leah Neukirchen
2023-07-22 13:47 ` [NTG-context] " Mikael Sundqvist
2023-07-23 21:42 ` Leah Neukirchen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).