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
Am 10.01.2014 um 23:38 schrieb Elspeth McGullicuddy
: (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 ___________________________________________________________________________________