ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Add ssty to libertinus
@ 2021-10-20 11:01 Mikael Sundqvist via ntg-context
  2021-10-20 14:14 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2021-10-20 11:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist

Hi,

looking at the output of

\setupbodyfont[libertinus]
%\setupmathematics[stylealternative={ssty}]
\starttext
%\addff{ssty}
$y'=f'$
\switchtobodyfont[newcomputermodern-book]
$y'=f'$
\stoptext

I think that the primes in libertinus are too small. Indeed, looking
in the font, they look like the output. In lualatex* I get larger
primes, and as far as I understand it is because unicode-math enables
ssty.

I was not able to do so with \addff{ssty} or with
\setupmathematics[stylealternative={ssty}]. What do I miss?

Best regards, Mikael

*The file I used in lualatex was this:
\documentclass{article}
\usepackage{fontspec}
\usepackage{unicode-math}
\setmathfont{LibertinusMath-Regular.otf}
\begin{document}
$u'f'$
\end{document}
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Add ssty to libertinus
  2021-10-20 11:01 Add ssty to libertinus Mikael Sundqvist via ntg-context
@ 2021-10-20 14:14 ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen via ntg-context @ 2021-10-20 14:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen, Mikael Sundqvist

On 10/20/2021 1:01 PM, Mikael Sundqvist via ntg-context wrote:
> Hi,
> 
> looking at the output of
> 
> \setupbodyfont[libertinus]
> %\setupmathematics[stylealternative={ssty}]
> \starttext
> %\addff{ssty}
> $y'=f'$
> \switchtobodyfont[newcomputermodern-book]
> $y'=f'$
> \stoptext

ssty doesn't kick in as we're in textstyle here (and even then \addff 
doesn't work in math mode; ssty is applied when we load a font, if at 
all because not all characters in a math font have a ssty feature 
definition)

> I think that the primes in libertinus are too small. Indeed, looking
> in the font, they look like the output. In lualatex* I get larger
> primes, and as far as I understand it is because unicode-math enables
> ssty.

it's a design decision ... (imo the tex and math font community never 
could make up its mind about primes so it will always be a pain) .. 
looks like here the creator assumed a script design size for text size

> I was not able to do so with \addff{ssty} or with
> \setupmathematics[stylealternative={ssty}]. What do I miss?
> 
> Best regards, Mikael
> 
> *The file I used in lualatex was this:
> \documentclass{article}
> \usepackage{fontspec}
> \usepackage{unicode-math}
> \setmathfont{LibertinusMath-Regular.otf}
> \begin{document}
> $u'f'$
> \end{document}
whatever latex does to make these primes large is unlikely going to 
happen in context ... at some point, when these fonts stay as they are 
(all math fonts seem to have issues, but different ones) we can write 
font goodie files to 'fix them' at the font level, adding all kind of 
hacks to the context math handler is just stimulating 'not fixing a font'

\setupbodyfont[cambria]
\starttext
     $y'=f'$
     $\textstyle\prime$
     $\scriptstyle\prime$
     $\scriptscriptstyle\prime$
     \switchtobodyfont[libertinus]
     $y'=f'$
     $\textstyle\prime$
     $\scriptstyle\prime$
     $\scriptscriptstyle\prime$
     \switchtobodyfont[newcomputermodern-book]
     $y'=f'$
     $\textstyle\prime$
     $\scriptstyle\prime$
     $\scriptscriptstyle\prime$
\stoptext

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-20 14:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-20 11:01 Add ssty to libertinus Mikael Sundqvist via ntg-context
2021-10-20 14:14 ` Hans Hagen via ntg-context

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).