stipub / stixfonts

OpenType Unicode fonts for Scientific, Technical, and Mathematical texts
SIL Open Font License 1.1
706 stars 41 forks source link

Bug in moustache (at least in Type1) and extensible delimiters in large symbol font have steps that are too large #134

Closed FrankMittelbach closed 3 years ago

FrankMittelbach commented 5 years ago

Consider the following input:

\documentclass{article}

\usepackage{stix2}

\begin{document}

\[
\left(
    \frac{\left\lmoustache\mathcal{Q}(t)\right\rmoustache}
         {\sqrt {1 - t^2}}
    \right)
\]

\setlength\delimitershortfall{-1pt}  % make delimiter grow

\[
\left\lbrace\left\lbrace\left\lbrace\left\lbrace \left\lbrace\left\lbrace
\left\lbrace\left\lbrace
     \mathcal{Q}
\right\rangle \right\rangle\right\rangle\right\rangle\right\rangle\right\rangle
\right\rangle\right\rangle
\]

\[
\left\lmoustache\left\lmoustache\left\lmoustache\left\lmoustache \left\lmoustache
     \mathcal{Q}
\right\rmoustache \right\rmoustache\right\rmoustache\right\rmoustache\right\rmoustache
\]

\end{document}

The result is:

bildschirmfoto 2019-02-28 um 23 53 35

This exhibits two problems: (A) there is a gap in the moustache delimiters. (B) The sizes are much too big (due to the extensible parts are made up from fairly large components. As a result the fraction looks awful.

In contrast the same file with std CM fonts:

bildschirmfoto 2019-02-28 um 23 56 54

This has a much more reasonable set of sizes in the extensions (especially for the more common curly braces). Also note that stix2 seems to have (Type1) only 3 sizes in \rangle while CM offers 5 so that is also very limiting

tiroj commented 3 years ago

I think the examples shown here are pre-2.10 versions, yes?

In 2.10 we extended and revised the range of growing forms of delimiters so that most delimiters have 12 variant heights (after which assembles may be used). This should provide more granulation in the height variant selection: image

In 2.20 we have spec’d to add the same set of height variants to remaining delimiters.

FrankMittelbach commented 3 years ago

I guess they are pre 2.10. However, if there are new version then these versions have never made it as Type-1 fonts into the standard TeX distributions. Looking at

https://www.ctan.org/pkg/stix2-type1

you see that what is distributed as of today is 2.0 and so that is what people get with a current system. I don't know who is responsible to make these available, the page suggests @davidmjones I guess.

davidmjones commented 3 years ago

@FrankMittelbach As mentioned on the CTAN page, we are no longer actively supporting the Type 1 versions of the fonts. Updating them takes too many resources that are better spent on improving the OpenType fonts.

I guess I didn't notice that this issue was about the Type 1 fonts. I'm closing it here. You could resubmit it to https://github.com/stipub/stix_type1 in case anyone in the community wants to volunteer some time to address it.