ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* teletype style in type-win.mkiv
@ 2011-06-02 13:57 Richard Stephens
  2011-06-02 14:26 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Stephens @ 2011-06-02 13:57 UTC (permalink / raw)
  To: Context User Group


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

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.

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

[-- Attachment #2: Type: text/plain, Size: 485 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] 6+ messages in thread

* Re: teletype style in type-win.mkiv
  2011-06-02 13:57 teletype style in type-win.mkiv Richard Stephens
@ 2011-06-02 14:26 ` Hans Hagen
  2011-06-02 15:49   ` Richard Stephens
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2011-06-02 14:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Richard Stephens

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
___________________________________________________________________________________


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

* Re: teletype style in type-win.mkiv
  2011-06-02 14:26 ` Hans Hagen
@ 2011-06-02 15:49   ` Richard Stephens
  2011-06-02 16:30     ` Aditya Mahajan
  2011-06-02 20:56     ` Pontus Lurcock
  0 siblings, 2 replies; 6+ messages in thread
From: Richard Stephens @ 2011-06-02 15:49 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users


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

On 2 June 2011 15:26, Hans Hagen <pragma@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.

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

[-- Attachment #2: Type: text/plain, Size: 485 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] 6+ messages in thread

* Re: teletype style in type-win.mkiv
  2011-06-02 15:49   ` Richard Stephens
@ 2011-06-02 16:30     ` Aditya Mahajan
  2011-06-02 20:56     ` Pontus Lurcock
  1 sibling, 0 replies; 6+ messages in thread
From: Aditya Mahajan @ 2011-06-02 16:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 2 Jun 2011, Richard Stephens wrote:

> On 2 June 2011 15:26, Hans Hagen <pragma@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
___________________________________________________________________________________


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

* Re: teletype style in type-win.mkiv
  2011-06-02 15:49   ` Richard Stephens
  2011-06-02 16:30     ` Aditya Mahajan
@ 2011-06-02 20:56     ` Pontus Lurcock
  2011-06-03  9:58       ` Wolfgang Schuster
  1 sibling, 1 reply; 6+ messages in thread
From: Pontus Lurcock @ 2011-06-02 20:56 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


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

* Re: teletype style in type-win.mkiv
  2011-06-02 20:56     ` Pontus Lurcock
@ 2011-06-03  9:58       ` Wolfgang Schuster
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2011-06-03  9:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

end of thread, other threads:[~2011-06-03  9:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-02 13:57 teletype style in type-win.mkiv Richard Stephens
2011-06-02 14:26 ` Hans Hagen
2011-06-02 15:49   ` Richard Stephens
2011-06-02 16:30     ` Aditya Mahajan
2011-06-02 20:56     ` Pontus Lurcock
2011-06-03  9:58       ` Wolfgang Schuster

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