aliftype / euler-otf

An abandoned OpenType/Unicode math port of AMS Euler font
Other
96 stars 12 forks source link

\vec{r} is broken (in ConTeXt)? #6

Closed MetroWind closed 14 years ago

MetroWind commented 14 years ago

In ConTeXt, $\vec{r}$ only shows a small dash instead of an arrow above 'r'. \vec for other characters seem to work well though.

Minimal example:

\usetypescript[palatino][ec]
\definetypeface [palatino] [mm] [math] [euler] [euler] [rscale=1.03] 
\setupbodyfont[palatino,12pt]

\starttext
$\vec{r}$.
\stoptext
khaledhosny commented 14 years ago

This file does not load neo euler at all (nor any euler fonts), when typeset with texlive 2010. So I'm not sure what fonts are you getting.

MetroWind commented 14 years ago

Ahmm... Actually it does, at least on my machine. Here is one line from the log:

</home/corsair/.fonts/euler.otf></home/corsair/software/context/tex/texmf/fonts/opentype/public/tex-gyre/texgyrepagella-regular.otf>

The first one is Neo Euler.

I also tried to load the font with

\starttypescript [math] [myEuler][name]
  \definefontsynonym[MathRoman][name:Neo Euler] [features=math\mathsizesuffix]
\stoptypescript

and get the same result. So I think if you load the font somehow, you'll find \vec{r} is indeed broken in ConTeXt Mkiv. I'm not sure if this is a problem with the font or context though. I'm afraid I'm not an expert on this.

khaledhosny commented 14 years ago

I got it to work now, ConTeXt was not finding the font. However the issue is not limited to r, it can be reproduced with any narrow glyph:

\usetypescript[pagrlla-euler]
\setupbodyfont[pagella-euler,12pt]

\starttext
$\vec{r}$\crlf
$\vec{ı}$\crlf
$\vec{ȷ}$\crlf
$\vec{a}$\crlf
\stoptext

It looks like a ConTeXt/LuaTeX bug, testing against latest ConTeXt and LuaTeX from minimals, the issues seems to have been solved.

tacohoekwater commented 14 years ago

I started http://tracker.luatex.org/view.php?id=489 just in case

khaledhosny commented 14 years ago

Thanks Taco, I'm closing this since it is unlikely a font bug.