ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Virtual font question
Date: Mon, 22 Jun 2015 23:57:48 -0400 (EDT)	[thread overview]
Message-ID: <alpine.OSX.2.02.1506222352430.66332@nqv-znpobbx> (raw)
In-Reply-To: <55883C0B.4050309@sinap.ac.cn>

On Tue, 23 Jun 2015, Zhichu Chen wrote:

> I was trying to use the Math Times Pro 2 fonts in ConTeXt MKIV. This 
> Type1 font contains a map file, a set of pfb files and the corresponding 
> tfm files. I was managed to write a .lfg file and a type-imp-xxx file, 
> but here's my problem.

I don't have the fonts, so I cannot describe the exact method. But see 
below and also have a look at Section 5 of
https://www.tug.org/TUGboat/tb30-2/tb95mahajan-cmath.pdf The description 
is old, and some of the file locations have changes, but the basic 
infrastructure is still the same.

> The font comes with three different sizes, the virtual fonts in my .lfg 
> file look like:
> ===================================================================
>         virtuals = {
>             ["mtpro06a-regular"] = {
>                 { name = "file:texgyretermes-regular.otf", features = 
> "virtualmath", main = true },
>                 { name = "mt2mif.tfm", vector = "mtpro2-mi", 
> skewchar=0x7F },
[...]
>             },

The vectors mptpro2-mi etc are not defined. Look at math-ttv.lua for a 
list of predefined vectors (mapping type1 fonts to unicode symbols. It is 
quite likely that the mtpro fonts would follow the "standard" mappings; if 
not, you will need to create an approrpriate mapping for each font. This 
is not difficult (just monotonous).

> ===================================================================
> I guess the suffixes "f" "s" and "t" may correspond to "five" "seven" 
> and "ten", but that's
> not important. I could use one of them as the virtual font in the 
> typescript:

Once this is done, rest of the typescript should work. It may be a good 
idea to try to see if you can get roman letters from mtpro.

Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2015-06-23  3:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-22 16:47 Zhichu Chen
2015-06-23  3:57 ` Aditya Mahajan [this message]
2015-06-23  5:20   ` Zhichu Chen
2015-06-24 10:33     ` Zhichu Chen

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.OSX.2.02.1506222352430.66332@nqv-znpobbx \
    --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).