From: Elspeth McGullicuddy <elspethmcgullicuddy@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: kpfonts, math, type 1 font
Date: Sat, 11 Jan 2014 19:36:28 +0100 [thread overview]
Message-ID: <CAGMMSTAc9h8BqV+u0tbJVPxHW8Lu=7ybXytyjiKgPCkU7SQitA@mail.gmail.com> (raw)
In-Reply-To: <FB1FEFF5-771E-4CCB-A87C-AC381F4C3F97@gmail.com>
As for the point: "bold uppercase greek letters aren’t mapped" I've inserted
the following at the beginning of file "pkfonts-math.lfg":
(I put the whole file it'll be easier to understand)
=> capital greek are not showing though
I've mimicked the file "lucida-typeone-math.lfg".
-- file: kpfonts-math.lfg
local mathencodings = fonts.encodings.math
mathencodings["tex-mrb"] = {
[0x1D6AA] = 0x00, -- Gamma
[0x1D6AB] = 0x01, -- Delta
[0x1D6AF] = 0x02, -- Theta
[0x1D6B2] = 0x03, -- Lambda
[0x1D6B5] = 0x04, -- Xi
[0x1D6B7] = 0x05, -- Pi
[0x1D6BA] = 0x06, -- Sigma
[0x1D6BC] = 0x07, -- Upsilon
[0x1D6BD] = 0x08, -- Phi
[0x1D6BF] = 0x09, -- Psi
[0x1D6C0] = 0x0A, -- Omega
[0x1D6A8] = 0x41, -- Alpha
[0x1D6A9] = 0x42, -- Beta
-- [0x02145] = 0x44,
[0x1D6AC] = 0x45, -- Epsilon
[0x1D6AE] = 0x48, -- Eta
[0x1D6B0] = 0x49, -- Iota
[0x1D6B1] = 0x4B, -- Kappa
[0x1D6B3] = 0x4D, -- Mu
[0x1D6B4] = 0x4E, -- Nu
[0x1D6B6] = 0x4F, -- Omicron
[0x1D6B8] = 0x52, -- Rho
[0x1D6BB] = 0x54, -- Tau
[0x1D6BE] = 0x58, -- Chi
[0x1D6AD] = 0x5A, -- Zeta
-- [0x00302] = 0x5E, -- [math]hat -- the real math one
-- [0x02146] = 0x64,
-- [0x02147] = 0x65,
-- [0x00303] = 0x7E, -- [math]tilde -- the real one
}
return {
name = "kpfonts-math",
version = "1.00",
comment = "kpfonts, math part.",
author = "Chris",
copyright = "ConTeXt development team",
mathematics = {
mapfiles = {
"kpfonts.map",
-- "mkiv-base.map",
},
virtuals = {
["kpfonts-rm"] = { -- MathRoman
{ name = "file:jkpmn8a", features = "virtualmath", main = true },
{ name = "jkpmia", vector = "tex-mr", skewchar=0x7F },
{ name = "jkpmi", vector = "tex-mi", skewchar=0x7F },
{ name = "jkpmi", vector = "tex-it", skewchar=0x7F },
{ name = "jkpbn8a", vector = "tex-bf", skewchar=0x7F },
{ name = "jkpbmi", vector = "tex-bi", skewchar=0x7F },
{ name = "jkpsy", vector = "tex-sy", skewchar=0x30,
parameters = true },
{ name = "jkpex", vector = "tex-ex", extension = true },
{ name = "jkpsya", vector = "tex-ma" },
{ name = "jkpsyb", vector = "tex-mb" },
},
["kpfonts-bf"] = { -- MathRomanBold
{ name = "file:jkpbn8a", features = "virtualmath", main = true },
{ name = "jkpbmia", vector = "tex-mrb", skewchar=0x7F },
-- this line modified accordingly
{ name = "jkpbmi", vector = "tex-mi", skewchar=0x7F },
{ name = "jkpbmi", vector = "tex-it", skewchar=0x7F },
{ name = "jkpbsy", vector = "tex-sy", skewchar=0x30,
parameters = true },
{ name = "jkpbex", vector = "tex-ex", extension = true },
{ name = "jkpbsya", vector = "tex-ma" },
{ name = "jkpbsyb", vector = "tex-mb" },
}
}
}
}
On Sat, Jan 11, 2014 at 3:03 PM, Wolfgang Schuster
<schuster.wolfgang@gmail.com> wrote:
>
> Am 10.01.2014 um 23:38 schrieb Elspeth McGullicuddy
> <elspethmcgullicuddy@gmail.com>:
>
> (Gammas are squeezed together and \bf is ineffective, which is not so
> with modern).
>
>
> The characters are squeezed together because the font has wrong metrics.
>
> If the assumption that "mdugmr7m.tfm" contains the metrics for
> "md-gmm7m.pfb" is correct, then fontforge show it (mdugmr7m), contains
> bold characters, which then should show.
>
>
> When you use a Type 1 math font with ConTeXt MkIV all characters in the
> different
> files are mapped to the corresponding unicode points but these mappings
> aren’t
> complete (e.g. bold uppercase greek letters aren’t mapped).
>
> For some fonts you would also need a custom mapping because not all fonts
> put the symbols in the same position.
>
> Wolfgang
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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:[~2014-01-11 18:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-06 18:56 Elspeth McGullicuddy
2014-01-06 23:09 ` Wolfgang Schuster
2014-01-07 3:35 ` Elspeth McGullicuddy
2014-01-07 15:32 ` Hans Hagen
2014-01-07 19:39 ` Elspeth McGullicuddy
2014-01-07 19:48 ` Wolfgang Schuster
2014-01-10 3:54 ` Elspeth McGullicuddy
2014-01-10 22:38 ` Elspeth McGullicuddy
2014-01-11 14:03 ` Wolfgang Schuster
2014-01-11 18:36 ` Elspeth McGullicuddy [this message]
2014-01-11 19:48 ` Elspeth McGullicuddy
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='CAGMMSTAc9h8BqV+u0tbJVPxHW8Lu=7ybXytyjiKgPCkU7SQitA@mail.gmail.com' \
--to=elspethmcgullicuddy@gmail.com \
--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).