From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: A bug in latin modern fonts?
Date: Sat, 4 Feb 2012 12:49:41 -0500 (EST) [thread overview]
Message-ID: <alpine.LNX.2.02.1202041232180.11721@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <CAEPRRH1JsdM9S8GHmV3YyVXO8z0XjtksQ-xKGfLRaaJsyMfGxw@mail.gmail.com>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 2598 bytes --]
On Sat, 4 Feb 2012, Janne Junnila wrote:
> On Sun, Jan 29, 2012 at 12:42 PM, Janne Junnila <janne.junnila@gmail.com> wrote:
>> Hi!
>>
>> The following example seems to have some troubles with the latin modern fonts:
>>
>> \starttext
>>
>> The function $f \colon \reals \to \reals$ is given by $x \mapsto x - 3$.
>>
>> \stoptext
>>
>> The colon is printed fine, but the blackboard bold Rs don't look
>> correct. The \mapsto symbol is missing and there's a hyphen instead of
>> minus.
>>
>> Are others having the same issue? I tried to do a fresh install, but
>> the problem persisted. There were some messages like
>>
>> fonts > otf loading > skipping cyclic reference U+00028 in
>> math variant U+00028
>>
>> during compiling. I don't know if they are related to the problem.
> Hi,
>
> I would like to my previous message that also Asana-Math seems to have problems.
>
> \setupbodyfont[asana]
> \starttext
>
> The function $f \colon \reals \to \reals$ is given by $x \mapsto x -
> 3$. Its derivative is
> $f'(x) = 1$.
>
> \stoptext
>
> In the above the ' in f'(x) looks wrong and there's hyphen instead of
> minus at x - 3.
> The problems arise in the current standalone, the latest stable one
> worked OK at least
> for the latin modern fonts.
The reference implementatation for math handling is cambria. With cambria
$f'(x)$ and $\mapsto$ work fine. But $a-b$ gives text minus, and $a
\colonequals b$ gives an error.
@Hans and Khaled: Any idea why this is happening?
\starttext
\setupbodyfont[cambria]
$a-b$ % text minus
$a \colonequals b$ % error
\stoptext
$f'(x)$ works fine with cambria and xits, but is placed low with asana. My
guess is that this is the font's fault; with asana $f^{'}$ works fine.
The same "bug" is also present with LMmath.
The symbol \mapsto appears to be missing from asana and lmmath. ConTeXt
currently does not use fall backs for missing math glyphs.
Finally, $\reals$ works correctly with cambria, asana, lmmath, and xtis.
It does not work with euler, but that is because euler is missing
blackboard gylphs.
So, to summarize:
1. - (minus), is clearly a bug in ConTeXt.
2. \colonequals is a bug in ConTeXt's definition. We should be using the
glyph from the font anyways and falling back only if the glyph is missing.
3. \mapsto glyph is missing from lmmath and asana. We need to fall back to
composed glyphs.
4. \reals is working fine. The shape of the glyph in lmmath is unusual,
but that should be a font issue rather than a context issue.
Aditya
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2012-02-04 17:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-29 10:42 Janne Junnila
2012-02-04 8:15 ` Janne Junnila
2012-02-04 17:49 ` Aditya Mahajan [this message]
2012-02-04 18:18 ` Khaled Hosny
2012-02-04 20:03 ` Hans Hagen
2012-02-04 21:20 ` Aditya Mahajan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.02.1202041232180.11721@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).