ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with font mapping
@ 2009-11-25 15:27 Mika Ritola
  2009-11-25 16:47 ` Hans Hagen
  2009-11-26 12:27 ` Problem with font mapping Wolfgang Schuster
  0 siblings, 2 replies; 16+ messages in thread
From: Mika Ritola @ 2009-11-25 15:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1723 bytes --]

Hello again,

I seem to be running into all sorts of font problems. Now my document has
suddenly turned bold. For example, running the following code results in
"Test." being rendered in bold characters.

\usemodule[simplefonts]
\setmainfont[Adobe Garamond Pro]

\starttext
Test.
\stoptext

Running "mtxrun --script font --list --pattern="*Garamond*" --all" reveals
that there's something fishy about the font mapping:

adobegaramondpro => agaramondprosemibold => AGaramondPro-Semibold.otf
adobegaramondprobold => agaramondprosemibold => AGaramondPro-Semibold.otf
adobegaramondprobolditalic => agaramondprosemibolditalic =>
AGaramondPro-SemiboldItalic.otf
adobegaramondproitalic => agaramondprobolditalic =>
AGaramondPro-BoldItalic.otf
adobegaramondpronormal => agaramondproregular => AGaramondPro-Regular.otf
adobegaramondproregular => agaramondprobold => AGaramondPro-Bold.otf
adobegaramondprosemibold => agaramondprosemibold =>
AGaramondPro-Semibold.otf
agaramondprobold => agaramondprobold => AGaramondPro-Bold.otf
agaramondprobolditalic => agaramondprobolditalic =>
AGaramondPro-BoldItalic.otf
agaramondproitalic => agaramondproitalic => AGaramondPro-Italic.otf
agaramondproregular => agaramondproregular => AGaramondPro-Regular.otf
agaramondprosemibold => agaramondprosemibold => AGaramondPro-Semibold.otf
agaramondprosemibolditalic => agaramondprosemibolditalic =>
AGaramondPro-SemiboldItalic.otf

As you can see, agaramond... are mapped properly while adobegaramond... are
mapped wrong.

Changing \setmainfont[Adobe Garamond Pro] to \setmainfont[agaramondpro]
fixes the issue but, still, I'd prefer to use the former (as I've done until
now) since it's clearer.

I'm running ConTeXt version 2009.11.24 10:13.

Mika

[-- Attachment #1.2: Type: text/html, Size: 1969 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

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

* Re: Problem with font mapping
  2009-11-25 15:27 Problem with font mapping Mika Ritola
@ 2009-11-25 16:47 ` Hans Hagen
  2009-11-25 18:52   ` Mika Ritola
  2009-11-26 12:27 ` Problem with font mapping Wolfgang Schuster
  1 sibling, 1 reply; 16+ messages in thread
From: Hans Hagen @ 2009-11-25 16:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Mika Ritola wrote:
> Hello again,
> 
> I seem to be running into all sorts of font problems. Now my document 
> has suddenly turned bold. For example, running the following code 
> results in "Test." being rendered in bold characters.
> 
> \usemodule[simplefonts]
> \setmainfont[Adobe Garamond Pro]
> 
> \starttext
> Test.
> \stoptext
> 
> Running "mtxrun --script font --list --pattern="*Garamond*" --all" 
> reveals that there's something fishy about the font mapping:
> 
> adobegaramondpro => agaramondprosemibold => AGaramondPro-Semibold.otf
> adobegaramondprobold => agaramondprosemibold => AGaramondPro-Semibold.otf
> adobegaramondprobolditalic => agaramondprosemibolditalic => 
> AGaramondPro-SemiboldItalic.otf
> adobegaramondproitalic => agaramondprobolditalic => 
> AGaramondPro-BoldItalic.otf
> adobegaramondpronormal => agaramondproregular => AGaramondPro-Regular.otf
> adobegaramondproregular => agaramondprobold => AGaramondPro-Bold.otf
> adobegaramondprosemibold => agaramondprosemibold => 
> AGaramondPro-Semibold.otf
> agaramondprobold => agaramondprobold => AGaramondPro-Bold.otf
> agaramondprobolditalic => agaramondprobolditalic => 
> AGaramondPro-BoldItalic.otf
> agaramondproitalic => agaramondproitalic => AGaramondPro-Italic.otf
> agaramondproregular => agaramondproregular => AGaramondPro-Regular.otf
> agaramondprosemibold => agaramondprosemibold => AGaramondPro-Semibold.otf
> agaramondprosemibolditalic => agaramondprosemibolditalic => 
> AGaramondPro-SemiboldItalic.otf

i cannot check it as i have no adobe garamond

> As you can see, agaramond... are mapped properly while adobegaramond... 
> are mapped wrong.

it all depends in what info is in the font ... familyname, weight etc 
and sometimes it's contradicting

> Changing \setmainfont[Adobe Garamond Pro] to \setmainfont[agaramondpro] 
> fixes the issue but, still, I'd prefer to use the former (as I've done 
> until now) since it's clearer.

how recent is your version of mtxrun / mtx-font / font database? it has 
been a bit in flux last weeks

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 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] 16+ messages in thread

* Re: Problem with font mapping
  2009-11-25 16:47 ` Hans Hagen
@ 2009-11-25 18:52   ` Mika Ritola
  2009-11-26 10:39     ` Hans Hagen
  0 siblings, 1 reply; 16+ messages in thread
From: Mika Ritola @ 2009-11-25 18:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3583 bytes --]

2009/11/25 Hans Hagen <pragma@wxs.nl>

> Mika Ritola wrote:
>
>> Hello again,
>>
>> I seem to be running into all sorts of font problems. Now my document has
>> suddenly turned bold. For example, running the following code results in
>> "Test." being rendered in bold characters.
>>
>> \usemodule[simplefonts]
>> \setmainfont[Adobe Garamond Pro]
>>
>> \starttext
>> Test.
>> \stoptext
>>
>> Running "mtxrun --script font --list --pattern="*Garamond*" --all" reveals
>> that there's something fishy about the font mapping:
>>
>> adobegaramondpro => agaramondprosemibold => AGaramondPro-Semibold.otf
>> adobegaramondprobold => agaramondprosemibold => AGaramondPro-Semibold.otf
>> adobegaramondprobolditalic => agaramondprosemibolditalic =>
>> AGaramondPro-SemiboldItalic.otf
>> adobegaramondproitalic => agaramondprobolditalic =>
>> AGaramondPro-BoldItalic.otf
>> adobegaramondpronormal => agaramondproregular => AGaramondPro-Regular.otf
>> adobegaramondproregular => agaramondprobold => AGaramondPro-Bold.otf
>> adobegaramondprosemibold => agaramondprosemibold =>
>> AGaramondPro-Semibold.otf
>> agaramondprobold => agaramondprobold => AGaramondPro-Bold.otf
>> agaramondprobolditalic => agaramondprobolditalic =>
>> AGaramondPro-BoldItalic.otf
>> agaramondproitalic => agaramondproitalic => AGaramondPro-Italic.otf
>> agaramondproregular => agaramondproregular => AGaramondPro-Regular.otf
>> agaramondprosemibold => agaramondprosemibold => AGaramondPro-Semibold.otf
>> agaramondprosemibolditalic => agaramondprosemibolditalic =>
>> AGaramondPro-SemiboldItalic.otf
>>
>
> i cannot check it as i have no adobe garamond
>
>
>  As you can see, agaramond... are mapped properly while adobegaramond...
>> are mapped wrong.
>>
>
> it all depends in what info is in the font ... familyname, weight etc and
> sometimes it's contradicting
>
> I downgraded to the "current" (2009.10.27 16:35) version of ConTeXt to see
if the mappings are different, and this is the result:

adobegaramondpro => Adobe Garamond Pro Bold => AGaramondPro-Bold.otf
adobegaramondprobold => Adobe Garamond Pro Bold => AGaramondPro-Bold.otf
adobegaramondprobolditalic => Adobe Garamond Pro Bold Italic =>
AGaramondPro-BoldItalic.otf
adobegaramondproitalic => Adobe Garamond Pro Italic =>
AGaramondPro-Italic.otf
adobegaramondproregular => Adobe Garamond Pro Regular =>
AGaramondPro-Regular.otf
adobegaramondprosemibold => Adobe Garamond Pro Semibold =>
AGaramondPro-Semibold.otf
adobegaramondprosemibolditalic => Adobe Garamond Pro Semibold Italic =>
AGaramondPro-SemiboldItalic.otf
agaramondprobold => AGaramondPro-Bold => AGaramondPro-Bold.otf
agaramondprobolditalic => AGaramondPro-BoldItalic =>
AGaramondPro-BoldItalic.otf
agaramondproitalic => AGaramondPro-Italic => AGaramondPro-Italic.otf
agaramondproregular => AGaramondPro-Regular => AGaramondPro-Regular.otf
agaramondprosemibold => AGaramondPro-Semibold => AGaramondPro-Semibold.otf
agaramondprosemibolditalic => AGaramondPro-SemiboldItalic =>
AGaramondPro-SemiboldItalic.otf

In other words, the mappings seem to be fine here (though I'm not sure about
the first one). Thus, it seems that some change in ConTeXt has "broken" the
font.

>
>  Changing \setmainfont[Adobe Garamond Pro] to \setmainfont[agaramondpro]
>> fixes the issue but, still, I'd prefer to use the former (as I've done until
>> now) since it's clearer.
>>
>
> how recent is your version of mtxrun / mtx-font / font database? it has
> been a bit in flux last weeks
>
> Do you mean the database that's generated by "mtxrun --script font
--reload"? Updating it didn't solve the problem.

Mika

[-- Attachment #1.2: Type: text/html, Size: 4837 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

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

* Re: Problem with font mapping
  2009-11-25 18:52   ` Mika Ritola
@ 2009-11-26 10:39     ` Hans Hagen
  2009-11-27  9:31       ` Metapost and mkiv Alan BRASLAU
  0 siblings, 1 reply; 16+ messages in thread
From: Hans Hagen @ 2009-11-26 10:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Mika Ritola wrote:

> In other words, the mappings seem to be fine here (though I'm not sure 
> about the first one). Thus, it seems that some change in ConTeXt has 
> "broken" the font.
> 
> 
>         Changing \setmainfont[Adobe Garamond Pro] to
>         \setmainfont[agaramondpro] fixes the issue but, still, I'd
>         prefer to use the former (as I've done until now) since it's
>         clearer.
> 
> 
>     how recent is your version of mtxrun / mtx-font / font database? it
>     has been a bit in flux last weeks
> 
> Do you mean the database that's generated by "mtxrun --script font 
> --reload"? Updating it didn't solve the problem.

the analyser has been rewritten and now let's the familyname + weight 
play a more important role and if there's something weird in there ...
in that case the (undefined) order of hashing kicks in

anyhow, i cannot check it here without fonts so someone has to buy me 
the adobe font collection first -)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 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] 16+ messages in thread

* Re: Problem with font mapping
  2009-11-25 15:27 Problem with font mapping Mika Ritola
  2009-11-25 16:47 ` Hans Hagen
@ 2009-11-26 12:27 ` Wolfgang Schuster
  2009-11-26 15:01   ` Hans Hagen
  1 sibling, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2009-11-26 12:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.11.2009 um 16:27 schrieb Mika Ritola:

> Hello again,
> 
> I seem to be running into all sorts of font problems. Now my document has suddenly turned bold. For example, running the following code results in "Test." being rendered in bold characters.

A few things have changed in ConTeXt font mechanism and I'm going to adapt simplefonts
to the new code (will take a while) but there are now many new features available,
take for example the new spec-interface which could be used to write this:

\starttypescript[Xserif][all][name]

    \definefontsynonym [Serif]            [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-normal] [features=default]
    \definefontsynonym [SerifItalic]      [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-italic] [features=default]
    \definefontsynonym [SerifSlanted]     [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-italic] [features=default]
    \definefontsynonym [SerifBold]        [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-bold-normal]   [features=default]
    \definefontsynonym [SerifBoldItalic]  [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-bold-italic]   [features=default]
    \definefontsynonym [SerifBoldSlanted] [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-bold-italic]   [features=default]
    \definefontsynonym [SerifCaps]        [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-normal] [features=smallcaps]

\stoptypescript

\starttypescript[Xsans][all][name]

    \definefontsynonym [Sans]            [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-normal] [features=default]
    \definefontsynonym [SansItalic]      [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-italic] [features=default]
    \definefontsynonym [SansSlanted]     [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-italic] [features=default]
    \definefontsynonym [SansBold]        [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-bold-normal]   [features=default]
    \definefontsynonym [SansBoldItalic]  [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-bold-italic]   [features=default]
    \definefontsynonym [SansBoldSlanted] [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-bold-italic]   [features=default]
    \definefontsynonym [SansCaps]        [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-normal] [features=smallcaps]

\stoptypescript

\starttypescript[Xmono][all][name]

    \definefontsynonym [Mono]            [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-normal] [features=default]
    \definefontsynonym [MonoItalic]      [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-italic] [features=default]
    \definefontsynonym [MonoSlanted]     [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-italic] [features=default]
    \definefontsynonym [MonoBold]        [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-bold-normal]   [features=default]
    \definefontsynonym [MonoBoldItalic]  [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-bold-italic]   [features=default]
    \definefontsynonym [MonoBoldSlanted] [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-bold-italic]   [features=default]
    \definefontsynonym [MonoCaps]        [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-normal] [features=smallcaps]

\stoptypescript

\starttypescript[Xserif][default][size]
  \definebodyfont
  [4pt,5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,14.4pt,17.3pt] [rm]
  [default]
\stoptypescript

\starttypescript[Xsans][default][size]
  \definebodyfont
    [4pt,5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,14.4pt,17.3pt]
    [ss] [default]
\stoptypescript

\starttypescript [Xmono][default][size]
  \definebodyfont
    [4pt,5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,14.4pt,17.3pt]
    [tt] [default]
\stoptypescript

\starttypescript[Xserif][dtp][size]
  \definebodyfont
    [5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,13pt,14pt,16pt,18pt,22pt,28pt]
    [rm] [default]
\stoptypescript

\starttypescript[Xsans][dtp][size]
  \definebodyfont
    [5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,13pt,14pt,16pt,18pt,22pt,28pt]
    [ss] [default]
\stoptypescript

\starttypescript[Xmono][dtp][size]
  \definebodyfont
    [5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,13pt,14pt,16pt,18pt,22pt,28pt]
    [tt] [default]
\stoptypescript

% this is the relevant part for the users

\definetypeface[mainface][rm][Xserif][TeX Gyre Pagella][default]
\definetypeface[mainface][ss][Xsans] [TeX Gyre Heros]  [default][rscale=0.9]
\definetypeface[mainface][tt][Xmono] [TeX Gyre Cursor] [default][rscale=1.1]

\setupbodyfont[mainface]

\starttext

\rm\tf roman \it italic \bf bold \bi bolditalic \sc smallcaps

\ss\tf roman \it italic \bf bold \bi bolditalic \sc smallcaps

\tt\tf roman \it italic \bf bold \bi bolditalic \sc smallcaps

\stoptext

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Problem with font mapping
  2009-11-26 12:27 ` Problem with font mapping Wolfgang Schuster
@ 2009-11-26 15:01   ` Hans Hagen
  2009-11-26 15:43     ` Wolfgang Schuster
  0 siblings, 1 reply; 16+ messages in thread
From: Hans Hagen @ 2009-11-26 15:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang Schuster wrote:
> Am 25.11.2009 um 16:27 schrieb Mika Ritola:
> 
>> Hello again,
>>
>> I seem to be running into all sorts of font problems. Now my document has suddenly turned bold. For example, running the following code results in "Test." being rendered in bold characters.
> 
> A few things have changed in ConTeXt font mechanism and I'm going to adapt simplefonts
> to the new code (will take a while) but there are now many new features available,
> take for example the new spec-interface which could be used to write this:
> 
> \starttypescript[Xserif][all][name]
> 
>     \definefontsynonym [Serif]            [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-normal] [features=default]
>     \definefontsynonym [SerifItalic]      [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-italic] [features=default]
>     \definefontsynonym [SerifSlanted]     [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-italic] [features=default]
>     \definefontsynonym [SerifBold]        [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-bold-normal]   [features=default]
>     \definefontsynonym [SerifBoldItalic]  [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-bold-italic]   [features=default]
>     \definefontsynonym [SerifBoldSlanted] [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-bold-italic]   [features=default]
>     \definefontsynonym [SerifCaps]        [spec:\ctxlua{tex.sprint(string.lower(string.gsub("\typescripttwo","[^a-zA-Z0-9]","")))}-normal-normal] [features=smallcaps]
> 
> \stoptypescript

\definefontsynonym[Serif][spec:\ctxlua{fonts.names.cleanname("\typescripttwo"}-normal-normal][features=default]

I'll add \cleanfontname so that we can have

\definefontsynonym[Serif][spec:\cleanfontname\typescripttwo-normal-normal][features=default]

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 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] 16+ messages in thread

* Re: Problem with font mapping
  2009-11-26 15:01   ` Hans Hagen
@ 2009-11-26 15:43     ` Wolfgang Schuster
  2009-11-26 15:49       ` Hans Hagen
  0 siblings, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2009-11-26 15:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 26.11.2009 um 16:01 schrieb Hans Hagen:

> \definefontsynonym[Serif][spec:\ctxlua{fonts.names.cleanname("\typescripttwo"}-normal-normal][features=default]
> 
> I'll add \cleanfontname so that we can have
> 
> \definefontsynonym[Serif][spec:\cleanfontname\typescripttwo-normal-normal][features=default]

Can't you just add the Xserif/sans/mono typescript for MkIV to the core (type-lua.tex?),
they are such a nice example how to use the new spec-interface for 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Problem with font mapping
  2009-11-26 15:43     ` Wolfgang Schuster
@ 2009-11-26 15:49       ` Hans Hagen
  0 siblings, 0 replies; 16+ messages in thread
From: Hans Hagen @ 2009-11-26 15:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang Schuster wrote:
> Am 26.11.2009 um 16:01 schrieb Hans Hagen:
> 
>> \definefontsynonym[Serif][spec:\ctxlua{fonts.names.cleanname("\typescripttwo"}-normal-normal][features=default]
>>
>> I'll add \cleanfontname so that we can have
>>
>> \definefontsynonym[Serif][spec:\cleanfontname\typescripttwo-normal-normal][features=default]
> 
> Can't you just add the Xserif/sans/mono typescript for MkIV to the core (type-lua.tex?),
> they are such a nice example how to use the new spec-interface for fonts.

sure,


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 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] 16+ messages in thread

* Metapost and mkiv
  2009-11-26 10:39     ` Hans Hagen
@ 2009-11-27  9:31       ` Alan BRASLAU
  2009-11-27  9:53         ` Hans Hagen
  2009-11-27 13:54         ` Willi Egger
  0 siblings, 2 replies; 16+ messages in thread
From: Alan BRASLAU @ 2009-11-27  9:31 UTC (permalink / raw)
  To: ntg-context

Is this a bug in mkiv metapost?

Alan

minimal example:

\setupcolors [state=start]
\starttext

\startuniqueMPgraphic{test}
	for i = 0 upto 10 :
		draw thelabel(decimal i, (i, 0) scaled 1cm)
			withcolor red ; % red in mkii, black in mkiv?
	endfor ;
\stopuniqueMPgraphic

\uniqueMPgraphic{test}

\stoptext
___________________________________________________________________________________
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] 16+ messages in thread

* Re: Metapost and mkiv
  2009-11-27  9:31       ` Metapost and mkiv Alan BRASLAU
@ 2009-11-27  9:53         ` Hans Hagen
  2009-11-27 13:54         ` Willi Egger
  1 sibling, 0 replies; 16+ messages in thread
From: Hans Hagen @ 2009-11-27  9:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Alan BRASLAU wrote:
> Is this a bug in mkiv metapost?
> 
> Alan
> 
> minimal example:
> 
> \setupcolors [state=start]
> \starttext
> 
> \startuniqueMPgraphic{test}
> 	for i = 0 upto 10 :
> 		draw thelabel(decimal i, (i, 0) scaled 1cm)
> 			withcolor red ; % red in mkii, black in mkiv?
> 	endfor ;
> \stopuniqueMPgraphic
> 
> \uniqueMPgraphic{test}
> 
> \stoptext

you might try one of

\chardef\MPcolormethod0
\chardef\MPcolormethod1
\chardef\MPcolormethod2
\chardef\MPcolormethod3



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 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] 16+ messages in thread

* Re: Metapost and mkiv
  2009-11-27  9:31       ` Metapost and mkiv Alan BRASLAU
  2009-11-27  9:53         ` Hans Hagen
@ 2009-11-27 13:54         ` Willi Egger
  2009-11-28 18:28           ` Alan BRASLAU
  1 sibling, 1 reply; 16+ messages in thread
From: Willi Egger @ 2009-11-27 13:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Alan,

I run in this myself. A possible solution is:

\startuniqueMPgraphic{test}
	for i = 0 upto 10 :
		draw thelabel(textext("\color[red]" & decimal i &""), (i, -1)  
scaled 1cm);
	endfor ;
\stopuniqueMPgraphic

\setupcolors[state=start]

\starttext
	\uniqueMPgraphic{test}
\stoptext

KR
Willi
On Nov 27, 2009, at 10:31 AM, Alan BRASLAU wrote:

> Is this a bug in mkiv metapost?
>
> Alan
>
> minimal example:
>
> \setupcolors [state=start]
> \starttext
>
> \startuniqueMPgraphic{test}
> 	for i = 0 upto 10 :
> 		draw thelabel(decimal i, (i, 0) scaled 1cm)
> 			withcolor red ; % red in mkii, black in mkiv?
> 	endfor ;
> \stopuniqueMPgraphic
>
> \uniqueMPgraphic{test}
>
> \stoptext
> ______________________________________________________________________ 
> _____________
> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Metapost and mkiv
  2009-11-27 13:54         ` Willi Egger
@ 2009-11-28 18:28           ` Alan BRASLAU
  2009-11-29  8:03             ` Taco Hoekwater
  0 siblings, 1 reply; 16+ messages in thread
From: Alan BRASLAU @ 2009-11-28 18:28 UTC (permalink / raw)
  To: ntg-context; +Cc: Willi Egger

On Friday 27 November 2009 14:54:53 Willi Egger wrote:
> Hi Alan,
> 
> I run in this myself. A possible solution is:
> 
> \startuniqueMPgraphic{test}
> 	for i = 0 upto 10 :
> 		draw thelabel(textext("\color[red]" & decimal i &""), (i, -1)
> scaled 1cm);
> 	endfor ;
> \stopuniqueMPgraphic
> 
> \setupcolors[state=start]
> 
> \starttext
> 	\uniqueMPgraphic{test}
> \stoptext
> 
> KR
> Willi

Yes, Thanks.
I thought of this as a work-around, but the first is clearly a bug.
What actually works is:

\setupcolors [state=start]

\starttext

\startuniqueMPgraphic{test}
	for i = 0 upto 10 :
		%draw thelabel(decimal i, (i, 0) scaled 1cm) withcolor red ;
                draw thelabel(textext("\red"& decimal i &""),
			(i, 0) scaled 1cm) ;
	endfor ;
\stopuniqueMPgraphic

\uniqueMPgraphic{test}

\stoptext


Now it is up to the experts to fix the bug in mkiv.

Alan
___________________________________________________________________________________
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] 16+ messages in thread

* Re: Metapost and mkiv
  2009-11-28 18:28           ` Alan BRASLAU
@ 2009-11-29  8:03             ` Taco Hoekwater
  0 siblings, 0 replies; 16+ messages in thread
From: Taco Hoekwater @ 2009-11-29  8:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Willi Egger

Alan BRASLAU wrote:
> On Friday 27 November 2009 14:54:53 Willi Egger wrote:
>> Hi Alan,
>>
>> I run in this myself. A possible solution is:
>>
>> \startuniqueMPgraphic{test}
>> 	for i = 0 upto 10 :
>> 		draw thelabel(textext("\color[red]" & decimal i &""), (i, -1)
>> scaled 1cm);
>> 	endfor ;
>> \stopuniqueMPgraphic
>>
>> \setupcolors[state=start]
>>
>> \starttext
>> 	\uniqueMPgraphic{test}
>> \stoptext
>>
>> KR
>> Willi
> 
> Yes, Thanks.
> I thought of this as a work-around, but the first is clearly a bug.

iirc, Hans says this is an intentional difference between mkii and mkiv,
but it is not yet on the wiki page because I am not sure what to write
down.

Best wishes,
Taco
___________________________________________________________________________________
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] 16+ messages in thread

* Re: Metapost and mkiv
  2009-09-22 16:03 ` Hans Hagen
@ 2009-09-22 16:45   ` Aditya Mahajan
  0 siblings, 0 replies; 16+ messages in thread
From: Aditya Mahajan @ 2009-09-22 16:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 455 bytes --]

On Tue, 22 Sep 2009, Hans Hagen wrote:

> Otared Kavian wrote:
>> Hi all,
>> 
>> The following minimal example used to work with mkiv (until last May, I 
>> would guess…) but now it doesn't work with the latest
>> ConTeXt version 2009.09.21 17:39
>> 
>> Can any one tell me please what am I doing wrong?
>
> shows ok here

It also works for me with 2009.09.18. Do normal MP figures work (those 
inside \startMPcode...\stopMPcode)


Aditya

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Metapost and mkiv
  2009-09-22 12:44 Metapost and mkiv Otared Kavian
@ 2009-09-22 16:03 ` Hans Hagen
  2009-09-22 16:45   ` Aditya Mahajan
  0 siblings, 1 reply; 16+ messages in thread
From: Hans Hagen @ 2009-09-22 16:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Otared Kavian wrote:
> Hi all,
> 
> The following minimal example used to work with mkiv (until last May, I 
> would guess…) but now it doesn't work with the latest
> ConTeXt version 2009.09.21 17:39
> 
> Can any one tell me please what am I doing wrong?

shows ok here


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Metapost and mkiv
@ 2009-09-22 12:44 Otared Kavian
  2009-09-22 16:03 ` Hans Hagen
  0 siblings, 1 reply; 16+ messages in thread
From: Otared Kavian @ 2009-09-22 12:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

The following minimal example used to work with mkiv (until last May,  
I would guess…) but now it doesn't work with the latest
ConTeXt version 2009.09.21 17:39

Can any one tell me please what am I doing wrong?

Best regards: OK
%% begin

\setupcolors[state=start]
\starttext

\startbuffer[axes-1]
numeric u ; u := .5cm ;
path xox ; xox := (-u,0)--(8u,0) ;
path yoy ; yoy := (0,-u)--(0,7u) ;
draw xox withcolor blue ;
draw yoy withcolor blue ;
\stopbuffer

This MetaPost graphic is  \doifmodeelse{mkiv}{not shown with mkiv} 
{shown with mkii}:

\placefigure[middle][-]{}{\processMPbuffer[axes-1]} {}

\stoptext


%% end
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-11-29  8:03 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-25 15:27 Problem with font mapping Mika Ritola
2009-11-25 16:47 ` Hans Hagen
2009-11-25 18:52   ` Mika Ritola
2009-11-26 10:39     ` Hans Hagen
2009-11-27  9:31       ` Metapost and mkiv Alan BRASLAU
2009-11-27  9:53         ` Hans Hagen
2009-11-27 13:54         ` Willi Egger
2009-11-28 18:28           ` Alan BRASLAU
2009-11-29  8:03             ` Taco Hoekwater
2009-11-26 12:27 ` Problem with font mapping Wolfgang Schuster
2009-11-26 15:01   ` Hans Hagen
2009-11-26 15:43     ` Wolfgang Schuster
2009-11-26 15:49       ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2009-09-22 12:44 Metapost and mkiv Otared Kavian
2009-09-22 16:03 ` Hans Hagen
2009-09-22 16:45   ` Aditya Mahajan

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