Re: [NTG-context] teletype style in type-win.mkiv

2011-06-03 Thread Wolfgang Schuster

Am 02.06.2011 um 22:56 schrieb Pontus Lurcock:

 On Thu 02 Jun 2011, Richard Stephens wrote:
 
 \setupbodyfont[helvetica, 10pt]
 
 which is indistinguishable from Arial for 99% of the population, and
 it has the advantage that all the styles are already defined,
 including \tt.
 
 Anyone who can distinguish Helvetica from Arial is likely to have
 sufficient taste to realize that Helvetica is superior ;-).

But you can have somebody how takes a look at the font list
in Adobe Reader and complains that you don’t use Arial.

ConTeXt has predefined typescripts for Times New Roman,
Arial and Courier but they don’t work on each system
(e.g. the fonts use different filenames on the Mac).

The simplefonts module makes things a little bit easier
because it tries a few combinations to find the files
but it still depends on the filename.

\usemodule[simplefonts]

\setmainfont[Arial]
\setmonofont[Courier New]

\starttext
This Arial in combination with {\tt Courier New}.
\stoptext

The spec-system is another system to make font loading
easier but the quality of the result depends on the font
information which are sometimes a mess.

\definetypeface[mainface][ss][specsans][Arial]
\definetypeface[mainface][tt][specmono][Courier New]

\setupbodyfont[mainface]

\starttext
This Arial in combination with {\tt Courier New}.
\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
___


[NTG-context] teletype style in type-win.mkiv

2011-06-02 Thread Richard Stephens
Hello all,

I'm afraid I've never spent the time to understand fonts properly, I just
make do with the defaults most of the time. Now, however, I am being forced
to use company default fonts for some documents. I have got as far as using
the following commands to setup my body font:

\usetypescriptfile[type-win]
\usetypescript[arial]
\setupbodyfont[arial, 10pt]

But the teletype style now has no effect: e.g. using {\tt teletype} gives
the same font as normal, and \showbodyfont reveals the same.

I've tried making sense of the type-win.mkiv file but it's beyond me! Any
suggestions how to get \tt to use Courier New, for instance?

Thanks,

Richard

Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
Registration Number: 2416188 Registered in England and Wales. Registered 
office: Boughton Road, Rugby, Warwickshire, CV21 1BU.

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. 
If you are not a named recipient, please notify the sender immediately and do 
not disclose the contents to another person, use it for any purpose or store or 
copy the information in any medium.

http://www.converteam.com

Please consider the environment before printing this e-mail.
___
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] teletype style in type-win.mkiv

2011-06-02 Thread Hans Hagen

On 2-6-2011 3:57, Richard Stephens wrote:


I've tried making sense of the type-win.mkiv file but it's beyond me! Any
suggestions how to get \tt to use Courier New, for instance?


\setupbodyfont[mcore]


Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
Registration Number: 2416188 Registered in England and Wales. Registered 
office: Boughton Road, Rugby, Warwickshire, CV21 1BU.

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged.
If you are not a named recipient, please notify the sender immediately and do 
not disclose the contents to another person, use it for any purpose or store or 
copy the information in any medium.

http://www.converteam.com

Please consider the environment before printing this e-mail.


(always funny such a remark as the confidentially banner takes most 
toner/ink)


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] teletype style in type-win.mkiv

2011-06-02 Thread Richard Stephens
On 2 June 2011 15:26, Hans Hagen pra...@wxs.nl wrote:

 On 2-6-2011 3:57, Richard Stephens wrote:

  I've tried making sense of the type-win.mkiv file but it's beyond me! Any
 suggestions how to get \tt to use Courier New, for instance?


 \setupbodyfont[mcore]


Sorry Hans, I don't understand what I'm supposed to do with that command.
Anyway, I have found another way around the problem. I have removed the
typescript and font commands for Arial and replaced them with:

\setupbodyfont[helvetica, 10pt]

which is indistinguishable from Arial for 99% of the population, and it has
the advantage that all the styles are already defined, including \tt.

Richard

Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
Registration Number: 2416188 Registered in England and Wales. Registered 
office: Boughton Road, Rugby, Warwickshire, CV21 1BU.

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. 
If you are not a named recipient, please notify the sender immediately and do 
not disclose the contents to another person, use it for any purpose or store or 
copy the information in any medium.

http://www.converteam.com

Please consider the environment before printing this e-mail.
___
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] teletype style in type-win.mkiv

2011-06-02 Thread Aditya Mahajan

On Thu, 2 Jun 2011, Richard Stephens wrote:


On 2 June 2011 15:26, Hans Hagen pra...@wxs.nl wrote:


On 2-6-2011 3:57, Richard Stephens wrote:

 I've tried making sense of the type-win.mkiv file but it's beyond me! Any

suggestions how to get \tt to use Courier New, for instance?



\setupbodyfont[mcore]



Sorry Hans, I don't understand what I'm supposed to do with that command.


There was a typo there. It should be

\setupbodyfont[mscore]

MkIV defines a typescript for microsoft core fonts called mscore. In 
recent version of context, you don't need to specify \setuptypescript, 
\setupbodyfont does that for you. So, just include that command on the top 
of your file, and it should work.


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
___


Re: [NTG-context] teletype style in type-win.mkiv

2011-06-02 Thread Pontus Lurcock
On Thu 02 Jun 2011, Richard Stephens wrote:

 \setupbodyfont[helvetica, 10pt]

 which is indistinguishable from Arial for 99% of the population, and
 it has the advantage that all the styles are already defined,
 including \tt.

Anyone who can distinguish Helvetica from Arial is likely to have
sufficient taste to realize that Helvetica is superior ;-).

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