ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Virtual math
@ 2010-08-25  7:37 Oliver Buerschaper
  2010-08-25  9:21 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Buerschaper @ 2010-08-25  7:37 UTC (permalink / raw)
  To: mailing ConTeXt users list for

Hi all,

I need directions on how to get started with a virtual math font... I'd like to take an existing math font, say Latin Modern, and replace certain glyphs by their corresponding ones from an OpenType font, say Minion Pro. (Proper math kerning won't be an issue at the moment since I'm having in mind a proof-of-principle type of thing.) How would I do that?

Many thanks,
Oliver
___________________________________________________________________________________
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] 4+ messages in thread

* Re: Virtual math
  2010-08-25  7:37 Virtual math Oliver Buerschaper
@ 2010-08-25  9:21 ` Hans Hagen
  2010-08-25 10:01   ` Oliver Buerschaper
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2010-08-25  9:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 25-8-2010 9:37, Oliver Buerschaper wrote:

> I need directions on how to get started with a virtual math font... I'd like to take an existing math font, say Latin Modern, and replace certain glyphs by their corresponding ones from an OpenType font, say Minion Pro. (Proper math kerning won't be an issue at the moment since I'm having in mind a proof-of-principle type of thing.) How would I do that?

It depends on your goal. For instance if you want to support minion 
math, and it's not an otf font, then you need tfm with the right 
metrics. Given that they are in default tex encoding, you then just need 
to set up a virtual font definition (you can look into px-math.lfg to 
see how that is done for palatino). If your fonts have lots of 
exceptions you might need to create additional vectors.

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] 4+ messages in thread

* Re: Virtual math
  2010-08-25  9:21 ` Hans Hagen
@ 2010-08-25 10:01   ` Oliver Buerschaper
  2010-08-25 11:37     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Buerschaper @ 2010-08-25 10:01 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

>> I need directions on how to get started with a virtual math font... I'd like to take an existing math font, say Latin Modern, and replace certain glyphs by their corresponding ones from an OpenType font, say Minion Pro. (Proper math kerning won't be an issue at the moment since I'm having in mind a proof-of-principle type of thing.) How would I do that?
> 
> It depends on your goal. For instance if you want to support minion math, and it's not an otf font, then you need tfm with the right metrics. Given that they are in default tex encoding, you then just need to set up a virtual font definition (you can look into px-math.lfg to see how that is done for palatino). If your fonts have lots of exceptions you might need to create additional vectors.

This sounds complicated... almost as I expected ;-)

I'm not quite sure what these vectors are good for... so for the sake of a simple scenario: I'd like to start with the standard Latin Modern math fonts but grab the lower case italic \alpha from the OpenType font MinionPro-It.otf. Would I need to write such an additional vector?

Oliver
___________________________________________________________________________________
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] 4+ messages in thread

* Re: Virtual math
  2010-08-25 10:01   ` Oliver Buerschaper
@ 2010-08-25 11:37     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2010-08-25 11:37 UTC (permalink / raw)
  To: Oliver Buerschaper; +Cc: mailing list for ConTeXt users

On 25-8-2010 12:01, Oliver Buerschaper wrote:

> I'm not quite sure what these vectors are good for... so for the sake of a simple scenario: I'd like to start with the standard Latin Modern math fonts but grab the lower case italic \alpha from the OpenType font MinionPro-It.otf. Would I need to write such an additional vector?

i guess so

technicaly i could support ranges but even then, greek is special as it 
has a noncontinuous vector

-----------------------------------------------------------------
                                           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] 4+ messages in thread

end of thread, other threads:[~2010-08-25 11:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-25  7:37 Virtual math Oliver Buerschaper
2010-08-25  9:21 ` Hans Hagen
2010-08-25 10:01   ` Oliver Buerschaper
2010-08-25 11:37     ` Hans Hagen

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