* Trying to use my local otf math font by editing typescript
@ 2014-03-02 14:36 罗晨星
2014-03-03 15:20 ` Hans Hagen
2014-03-03 15:24 ` Aditya Mahajan
0 siblings, 2 replies; 3+ messages in thread
From: 罗晨星 @ 2014-03-02 14:36 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 3155 bytes --]
Hi here.
I was trying to use my own math font in Mark IV, inside distribution TeX
Live 2013, using typescript, but failed.
The way I am thinking, I might use an fallback way. For most of the math
symbols, I would use the provided palatino stuff, but for MathRoman and
MathItalic, I'd like to use the same font as of normal text, let's say
Minion Pro. As I'm looking into a normal typescript file, I thought of a
few options:
First of all, just overwrite the Palatino typescript, like follows:
\starttypescript
\definefontsynonym [MathRoman] [name:minionproregular]
\definefontsynonym [MathItalic][name:minionproit]
\stoptypescript
It gives out "Math error: parameter \Umathquad\displaystyle is not set ..."
Another way I'm trying, is to use some fall back mode.
\starttypescript [math] [palatino]
\setups[font:fallback:math]
\definefontsynonym [MathRoman] [name:minionproregular]
\definefontsynonym [MathItalic][name:minionproit]
\stoptypescript
It also doesn't work. The result was same as the previous.
And I also tried
\starttypescript [math] [palatinofb]
\usetypescript[math][palatino]
\definefontsynonym [MathRoman] [name:minionproregular]
\definefontsynonym [MathItalic][name:minionproit]
\stoptypescript
This also makes no difference.
Inspired by
http://tex.stackexchange.com/questions/150566/minionpro-including-math-in-context,
I also tried the \definefallbackfamily, it turn out to be an undefined
control sequence.
In the main typescript, I uses
\definetypeface[MinionPro-Mixed][mm][math][palatino][default]
So I cannot find out how to fulfill my need. I guess there might because of
a missing map file, but for a roman font, do we need any? Since the
following serif definition works fine:
\definefontfeature[zh][mode=node,script=hang,lang=zhs]
\starttypescript [serif] [MinionPro-Mixed]
\definefontfallback[Serif]
[name:minionproregular][0x0000-0x0400][force=yes]
\definefontfallback[SerifItalic] [name:minionproit]
[0x0000-0x0400][force=yes]
\definefontfallback[SerifBold] [name:minionprobold]
[0x0000-0x0400][force=yes]
\definefontfallback[SerifBoldItalic][name:minionproboldit]
[0x0000-0x0400][force=yes]
\definefontsynonym [Serif]
[name:fzshusongz01][fallbacks=Serif] [features=zh]
\definefontsynonym [SerifItalic]
[name:fzheib01][fallbacks=SerifItalic] [features=zh]
\definefontsynonym [SerifBold] [name:fzheib01][fallbacks=SerifBold]
[features=zh]
\definefontsynonym [SeriBoldItalic]
[name:fzheib01][fallbacks=SerifBoldItalic] [features=zh]
\stoptypescript
As I've seen, normally, a fallback definition of typescript is used in
serif/sans/mono, but there comes no successfull example for fall back of
math font. Also, there is fall back for a font, but not an entire
typescript.
And build a new math font is obvious beyond my competent.
So how to deal with this problem? Is there a solution?
Regards,
南京大学 现代工程与应用科学学院 2013级
罗晨星
Luo Chenxing
—————————————
chenxing.luo@gmail.com
[-- Attachment #1.2: Type: text/html, Size: 4310 bytes --]
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Trying to use my local otf math font by editing typescript
2014-03-02 14:36 Trying to use my local otf math font by editing typescript 罗晨星
@ 2014-03-03 15:20 ` Hans Hagen
2014-03-03 15:24 ` Aditya Mahajan
1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2014-03-03 15:20 UTC (permalink / raw)
To: ntg-context
On 3/2/2014 3:36 PM, 罗晨星 wrote:
> Hi here.
>
> I was trying to use my own math font in Mark IV, inside distribution TeX
> Live 2013, using typescript, but failed.
>
> The way I am thinking, I might use an fallback way. For most of the math
> symbols, I would use the provided palatino stuff, but for MathRoman and
> MathItalic, I'd like to use the same font as of normal text, let's say
> Minion Pro. As I'm looking into a normal typescript file, I thought of a
> few options:
you need a real math font with real math parameters
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Trying to use my local otf math font by editing typescript
2014-03-02 14:36 Trying to use my local otf math font by editing typescript 罗晨星
2014-03-03 15:20 ` Hans Hagen
@ 2014-03-03 15:24 ` Aditya Mahajan
1 sibling, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2014-03-03 15:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 430 bytes --]
On Sun, 2 Mar 2014, 罗晨星 wrote:
> Inspired by
> http://tex.stackexchange.com/questions/150566/minionpro-including-math-in-context,
> I also tried the \definefallbackfamily, it turn out to be an undefined
> control sequence.
You need a newer version of ConTeXt (2013.12.20 or newer). Use context
--version to find the version that you are using. The easiest way to
update is to install context minimals.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-03 15:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-02 14:36 Trying to use my local otf math font by editing typescript 罗晨星
2014-03-03 15:20 ` Hans Hagen
2014-03-03 15:24 ` Aditya Mahajan
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).