[NTG-context] kpfonts

2024-04-20 Thread Xavier B.
Hi,

Just a courious: is there kpfonts available for context?
I love kpfonts.

Thanks in advance,
Xavier
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Re: [NTG-context] kpfonts, math, type 1 font

2014-01-11 Thread Elspeth McGullicuddy
As for the first point: buggy afm files, I've tried "generate font"
from "fontforge" interface:
Even though I've let fontforge proceed to many auto-corrections, the
output produced
and then installed seems not to fit the bill: nothing is showing.

I reckon I've learned as much as can be done in one go:
=> I temporarily give up.

Nevertheless if one have information about the vector I wrote for bold Greek:
why that didn't work, I'll will gladly have it.

Chris


On Sat, Jan 11, 2014 at 7:36 PM, Elspeth McGullicuddy
 wrote:
> 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
>  wrote:
>>
>> 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
>> __

Re: [NTG-context] kpfonts, math, type 1 font

2014-01-11 Thread Elspeth McGullicuddy
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
 wrote:
>
> 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
> ___
___
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
___

Re: [NTG-context] kpfonts, math, type 1 font

2014-01-11 Thread 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
___

Re: [NTG-context] kpfonts, math, type 1 font

2014-01-10 Thread Elspeth McGullicuddy
On Fri, Jan 10, 2014 at 4:54 AM, Elspeth McGullicuddy
 wrote:
> On Tue, Jan 7, 2014 at 8:48 PM, Wolfgang Schuster
>  wrote:
>>
>> You can also put the goodies files and the typescript file in the same
>> folder as your test files which makes it easier to test them and to make
>> changes. When you’re finished you can let us take a look at them
>> and Hans can add them to the core.
>
> Two files: kpfonts-math.lfg and testfile004.tex.
>
> It works rather well with the formulas of that file:
> https://github.com/khaledhosny/euler-otf/blob/master/tests/test.tex.
>
> Main issue: $\bf \Gamma$ produces "medium" \Gamma, though:
> ["kpfonts-bf"] = {...
> { name = "jkpbmia",  vector = "tex-mr", skewchar=0x7F },
> should make it bold.
> Why is this vector never selected?
>
> Other issue: Two consecutive \Gamma, are overlapping a lot.
>
> In case I add a vector for a script font which is in jkpsyd.pfb. What
> font switch would be used to select this vector (vector="tex-md")?
>
> Chris


I tried the example of "Problem to install Garamond font with mathdesign".
It for me, save I encounter exactly the same problems as those I've
described for KPfonts, using, in fact, "mathdesign" as template.

(Note: it's pure ConTEXt-standalone: I do not have these fonts in my
TeX-Live tree. Though I do have these fonts, installed manually, from
ctan, in my local "${HOME}/texmf/fonts/" tree.)

% file: test.tex

\loadtypescriptfile[mathdesign]

\starttext

$\Gamma\Gamma\bf\Gamma$

\setupbodyfont[garamond]

$\Gamma\Gamma\bf\Gamma$

\stoptext

(Gammas are squeezed together and \bf is ineffective, which is not so
with modern).

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.

Again, I might be misunderstanding.

Chris

>
>>
>> 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
___

Re: [NTG-context] kpfonts, math, type 1 font

2014-01-09 Thread Elspeth McGullicuddy
On Tue, Jan 7, 2014 at 8:48 PM, Wolfgang Schuster
 wrote:
>
> You can also put the goodies files and the typescript file in the same
> folder as your test files which makes it easier to test them and to make
> changes. When you’re finished you can let us take a look at them
> and Hans can add them to the core.

Two files: kpfonts-math.lfg and testfile004.tex.

It works rather well with the formulas of that file:
https://github.com/khaledhosny/euler-otf/blob/master/tests/test.tex.

Main issue: $\bf \Gamma$ produces "medium" \Gamma, though:
["kpfonts-bf"] = {...
{ name = "jkpbmia",  vector = "tex-mr", skewchar=0x7F },
should make it bold.
Why is this vector never selected?

Other issue: Two consecutive \Gamma, are overlapping a lot.

In case I add a vector for a script font which is in jkpsyd.pfb. What
font switch would be used to select this vector (vector="tex-md")?

Chris

>
> Wolfgang
>


kpfonts-math.lfg
Description: Binary data


testfile004.tex
Description: TeX document
___
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
___

Re: [NTG-context] kpfonts, math, type 1 font

2014-01-07 Thread Wolfgang Schuster

Am 07.01.2014 um 20:39 schrieb Elspeth McGullicuddy 
:

> The files like tfm, afm, pfb,... seem to be found alright by "mtxrun
> --script fonts --reload" when they are in the ${HOME}/texmf/fonts/
> tree, so I think I can leave them there.

Yes but the tfm and vf files are only needed for the math fonts.

> So I should make a sort of copy of "mdugm-math.lgf" and call it
> "kpfonts-math.lgf", and put it in
> ${HOME}/context/tex/texmf-context/tex/context/fonts/.
> 
> [Do the same with a copy of "type-imp-mathdesign.mkiv", which
> contains: "\loadfontgoodies[mdugm-math]".] Or rather put a typescript
> in my document file as explained here:
> http://wiki.contextgarden.net/Math_fonts, and insert some
> "\loadfontgoodies[kpfonts-math]" in it.
> 
> Execute: "context --make en". And that should be it.

You can also put the goodies files and the typescript file in the same
folder as your test files which makes it easier to test them and to make
changes. When you’re finished you can let us take a look at them
and Hans can add them to the core.

> What is the "\s!" syntax for, as in "\s!Serif“?

Commands starting with \s! are used for language independent strings
to save memory, e.g. “\s!Serif” is for TeX only a single token while “Serif”
are 5 tokens. There exist more prefixes (e.g. \c! and \v!) but they are
only important for developers.

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
___

Re: [NTG-context] kpfonts, math, type 1 font

2014-01-07 Thread Elspeth McGullicuddy
On Tue, Jan 7, 2014 at 4:32 PM, Hans Hagen  wrote:
> On 1/7/2014 4:35 AM, Elspeth McGullicuddy wrote:
>
>> The Garamond-math one might be that: "mdugm-math.lfg:
>>
>> return {
>>  name = "mdugm-math",
>>  version = "1.00",
>>  comment = "Math fonts that complement URW Garamond.",
>>  author = "Hans, Mojca, Aditya",
>>  copyright = "ConTeXt development team",
>>  mathematics = {
>>  mapfiles = {
>>  "mdugm.map",
>>  "mkiv-base.map",
>>  },
>>  virtuals = {
>>  ["mdugm-rm"] = {
>>  { name = "file:ugmr8a", features = "virtualmath", main =
>> true },
>>  { name = "mdugmr7m",  vector = "tex-mr", skewchar=0x7F },
>>  { name = "mdugmri7m", vector = "tex-mi", skewchar=0x7F },
>>  { name = "mdugmri7m", vector = "tex-it", skewchar=0x7F },
>>  { name = "mdugmm7m",  vector = "tex-bf", skewchar=0x7F },
>>  { name = "mdugmmi7m", vector = "tex-bi", skewchar=0x7F },
>>  { name = "mdugmr7y",  vector = "tex-sy",
>> skewchar=0x30, parameters = true },
>>  { name = "mdugmr7v",  vector = "tex-ex", extension = true
>> },
>>  { name = "mdugmrma",  vector = "tex-ma" },
>>  { name = "mdugmrmb",  vector = "tex-mb" },
>>  },
>>  ["mdugm-bf"] = {
>>  { name = "file:ugmm8a", features = "virtualmath", main =
>> true },
>>  { name = "mdugmm7m",  vector = "tex-mr", skewchar=0x7F },
>>  { name = "mdugmmi7m", vector = "tex-mi", skewchar=0x7F },
>>  { name = "mdugmmi7m", vector = "tex-it", skewchar=0x7F },
>>  { name = "mdugmm7y",  vector = "tex-sy",
>> skewchar=0x30, parameters = true },
>>  { name = "mdugmm7v",  vector = "tex-ex", extension = true
>> },
>>  { name = "mdugmmma",  vector = "tex-ma" },
>>  { name = "mdugmmmb",  vector = "tex-mb" },
>>  }
>>  }
>>  }
>> }
>
>
> indeed you have to make such a table for any math font combination you want
> (when using type 1 fonts)
>
>> In this example, I believe the files involved are tfm files
>> (ugmr8a.tfm, mdugmr7m.vf, in
>> http://packages.debian.org/squeeze/all/texlive-fonts-extra/filelist)
>>
>> Note: the afm files of kpfonts are ziped in the doc directory.
>> And I've got vf files, 688 of them.
>
>
> normally you don't need more files than the ones you mention in the table;
> best prevent too much polution of your tree by tfm/vf files
>
> (if you know exactly what you need you can make a path fonts/data/xxx/
> and put all relevant files there so that you keep the overview)
>
> Hans

Thanks, I'll experiment in that direction and say when there are results.

The files like tfm, afm, pfb,... seem to be found alright by "mtxrun
--script fonts --reload" when they are in the ${HOME}/texmf/fonts/
tree, so I think I can leave them there.

So I should make a sort of copy of "mdugm-math.lgf" and call it
"kpfonts-math.lgf", and put it in
${HOME}/context/tex/texmf-context/tex/context/fonts/.

[Do the same with a copy of "type-imp-mathdesign.mkiv", which
contains: "\loadfontgoodies[mdugm-math]".] Or rather put a typescript
in my document file as explained here:
http://wiki.contextgarden.net/Math_fonts, and insert some
"\loadfontgoodies[kpfonts-math]" in it.

Execute: "context --make en". And that should be it.

What is the "\s!" syntax for, as in "\s!Serif"?

Chris
___
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
___


Re: [NTG-context] kpfonts, math, type 1 font

2014-01-07 Thread Hans Hagen

On 1/7/2014 4:35 AM, Elspeth McGullicuddy wrote:


The Garamond-math one might be that: "mdugm-math.lfg:

return {
 name = "mdugm-math",
 version = "1.00",
 comment = "Math fonts that complement URW Garamond.",
 author = "Hans, Mojca, Aditya",
 copyright = "ConTeXt development team",
 mathematics = {
 mapfiles = {
 "mdugm.map",
 "mkiv-base.map",
 },
 virtuals = {
 ["mdugm-rm"] = {
 { name = "file:ugmr8a", features = "virtualmath", main = true 
},
 { name = "mdugmr7m",  vector = "tex-mr", skewchar=0x7F },
 { name = "mdugmri7m", vector = "tex-mi", skewchar=0x7F },
 { name = "mdugmri7m", vector = "tex-it", skewchar=0x7F },
 { name = "mdugmm7m",  vector = "tex-bf", skewchar=0x7F },
 { name = "mdugmmi7m", vector = "tex-bi", skewchar=0x7F },
 { name = "mdugmr7y",  vector = "tex-sy",
skewchar=0x30, parameters = true },
 { name = "mdugmr7v",  vector = "tex-ex", extension = true },
 { name = "mdugmrma",  vector = "tex-ma" },
 { name = "mdugmrmb",  vector = "tex-mb" },
 },
 ["mdugm-bf"] = {
 { name = "file:ugmm8a", features = "virtualmath", main = true 
},
 { name = "mdugmm7m",  vector = "tex-mr", skewchar=0x7F },
 { name = "mdugmmi7m", vector = "tex-mi", skewchar=0x7F },
 { name = "mdugmmi7m", vector = "tex-it", skewchar=0x7F },
 { name = "mdugmm7y",  vector = "tex-sy",
skewchar=0x30, parameters = true },
 { name = "mdugmm7v",  vector = "tex-ex", extension = true },
 { name = "mdugmmma",  vector = "tex-ma" },
 { name = "mdugmmmb",  vector = "tex-mb" },
 }
 }
 }
}


indeed you have to make such a table for any math font combination you 
want (when using type 1 fonts)



In this example, I believe the files involved are tfm files
(ugmr8a.tfm, mdugmr7m.vf, in
http://packages.debian.org/squeeze/all/texlive-fonts-extra/filelist)

Note: the afm files of kpfonts are ziped in the doc directory.
And I've got vf files, 688 of them.


normally you don't need more files than the ones you mention in the 
table; best prevent too much polution of your tree by tfm/vf files


(if you know exactly what you need you can make a path fonts/data/xxx/
and put all relevant files there so that you keep the overview)

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
___


Re: [NTG-context] kpfonts, math, type 1 font

2014-01-06 Thread Elspeth McGullicuddy
Thanks for the quick answer.

I'm not completely sure about the "lua" files for math support that I
should use as "template".
The Palatino one I haven't found;
The Garamond-math one might be that: "mdugm-math.lfg:

return {
name = "mdugm-math",
version = "1.00",
comment = "Math fonts that complement URW Garamond.",
author = "Hans, Mojca, Aditya",
copyright = "ConTeXt development team",
mathematics = {
mapfiles = {
"mdugm.map",
"mkiv-base.map",
},
virtuals = {
["mdugm-rm"] = {
{ name = "file:ugmr8a", features = "virtualmath", main = true },
{ name = "mdugmr7m",  vector = "tex-mr", skewchar=0x7F },
{ name = "mdugmri7m", vector = "tex-mi", skewchar=0x7F },
{ name = "mdugmri7m", vector = "tex-it", skewchar=0x7F },
{ name = "mdugmm7m",  vector = "tex-bf", skewchar=0x7F },
{ name = "mdugmmi7m", vector = "tex-bi", skewchar=0x7F },
{ name = "mdugmr7y",  vector = "tex-sy",
skewchar=0x30, parameters = true },
{ name = "mdugmr7v",  vector = "tex-ex", extension = true },
{ name = "mdugmrma",  vector = "tex-ma" },
{ name = "mdugmrmb",  vector = "tex-mb" },
},
["mdugm-bf"] = {
{ name = "file:ugmm8a", features = "virtualmath", main = true },
{ name = "mdugmm7m",  vector = "tex-mr", skewchar=0x7F },
{ name = "mdugmmi7m", vector = "tex-mi", skewchar=0x7F },
{ name = "mdugmmi7m", vector = "tex-it", skewchar=0x7F },
{ name = "mdugmm7y",  vector = "tex-sy",
skewchar=0x30, parameters = true },
{ name = "mdugmm7v",  vector = "tex-ex", extension = true },
{ name = "mdugmmma",  vector = "tex-ma" },
{ name = "mdugmmmb",  vector = "tex-mb" },
}
}
}
}

In this example, I believe the files involved are tfm files
(ugmr8a.tfm, mdugmr7m.vf, in
http://packages.debian.org/squeeze/all/texlive-fonts-extra/filelist)

Note: the afm files of kpfonts are ziped in the doc directory.
And I've got vf files, 688 of them.

If you have other examples which I could be sure about, I'd be glad to
have them.

Regards,
Chris

On Tue, Jan 7, 2014 at 12:09 AM, Wolfgang Schuster
 wrote:
>
> Am 06.01.2014 um 19:56 schrieb Elspeth McGullicuddy 
> :
>
>> Hi everybody,
>> (best wishes for this new year by the way).
>>
>> There is this font:
>> http://www.ctan.org/pkg/kpfonts
>> Which is a postscript type 1 font, text and math.
>>
>> I've copied the files in the right places in the ${HOME}/texmf tree.
>> And a call to:
>> mtxrun --script fonts --list --all --pattern=*kp*, after a
>> mtxrun --script fonts --reload
>> seems to indicate that it is found by context all right.
>>
>> But now I haven't got the faintest idea on how to use it in a ConTEXt
>> document -- text + math.
>> My ConTEXt is beta not older than a fortnight.
>>
>> All examples I've found that could possibly apply were at least far
>> too complicate for my understanding, also likely outdated.
>
> Using a text font in type1-format is very easy, all you need is the afm and 
> the pfb-file.
>
> The font files are put in the tex folder and to use them in your document you 
> have to write a short typescript, below is a example how to use the urn 
> garamond font.
>
> \starttypescript [serif] [charter]
>   \setups[font:fallback:serif]
>   \definefontsynonym [Serif] [file:ugmr8a.afm] [features=complete]
> \stoptypescript
>
> \definetypeface [mainface] [rm] [serif] [charter] [default]
>
> \setupbodyfont[mainface]
>
> \starttext
> \input knuth
> \stoptext
>
> The same has to be done for the kpfont but there is one problem, the archive 
> on cyan doesn’t provide afm-files and you have to generate them yourself. 
> Since the font provides only tfm-files it would be also possible to them but 
> it’s better to work with afm-files.
>
>
> Adding support for the math font requires more work because you have to write 
> also a Lua file where you specify which file is used for symbols, operator, 
> letters etc. This isn’t very complicated (you can just modify the files for 
> palatino or garamond math), you have to only look which files are used for 
> the math fonts.
>
> 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 we

Re: [NTG-context] kpfonts, math, type 1 font

2014-01-06 Thread Wolfgang Schuster

Am 06.01.2014 um 19:56 schrieb Elspeth McGullicuddy 
:

> Hi everybody,
> (best wishes for this new year by the way).
> 
> There is this font:
> http://www.ctan.org/pkg/kpfonts
> Which is a postscript type 1 font, text and math.
> 
> I've copied the files in the right places in the ${HOME}/texmf tree.
> And a call to:
> mtxrun --script fonts --list --all --pattern=*kp*, after a
> mtxrun --script fonts --reload
> seems to indicate that it is found by context all right.
> 
> But now I haven't got the faintest idea on how to use it in a ConTEXt
> document -- text + math.
> My ConTEXt is beta not older than a fortnight.
> 
> All examples I've found that could possibly apply were at least far
> too complicate for my understanding, also likely outdated.

Using a text font in type1-format is very easy, all you need is the afm and the 
pfb-file.

The font files are put in the tex folder and to use them in your document you 
have to write a short typescript, below is a example how to use the urn 
garamond font.

\starttypescript [serif] [charter]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif] [file:ugmr8a.afm] [features=complete]
\stoptypescript

\definetypeface [mainface] [rm] [serif] [charter] [default]

\setupbodyfont[mainface]

\starttext
\input knuth
\stoptext

The same has to be done for the kpfont but there is one problem, the archive on 
cyan doesn’t provide afm-files and you have to generate them yourself. Since 
the font provides only tfm-files it would be also possible to them but it’s 
better to work with afm-files.


Adding support for the math font requires more work because you have to write 
also a Lua file where you specify which file is used for symbols, operator, 
letters etc. This isn’t very complicated (you can just modify the files for 
palatino or garamond math), you have to only look which files are used for the 
math fonts.

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
___


[NTG-context] kpfonts, math, type 1 font

2014-01-06 Thread Elspeth McGullicuddy
Hi everybody,
(best wishes for this new year by the way).

There is this font:
http://www.ctan.org/pkg/kpfonts
Which is a postscript type 1 font, text and math.

I've copied the files in the right places in the ${HOME}/texmf tree.
And a call to:
mtxrun --script fonts --list --all --pattern=*kp*, after a
mtxrun --script fonts --reload
seems to indicate that it is found by context all right.

But now I haven't got the faintest idea on how to use it in a ConTEXt
document -- text + math.
My ConTEXt is beta not older than a fortnight.

All examples I've found that could possibly apply were at least far
too complicate for my understanding, also likely outdated.

Regards,
Chris
___
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
___