teletype style in type-win.mkiv
![](https://secure.gravatar.com/avatar/71a652a783b8328292d7491aea61ee23.jpg?s=120&d=mm&r=g)
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.
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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.
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/71a652a783b8328292d7491aea61ee23.jpg?s=120&d=mm&r=g)
On 2 June 2011 15:26, 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]
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.
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Thu, 2 Jun 2011, Richard Stephens wrote:
On 2 June 2011 15:26, Hans Hagen
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
![](https://secure.gravatar.com/avatar/36a7c1a25aadb9a4218af43f54d0e2bb.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
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
participants (5)
-
Aditya Mahajan
-
Hans Hagen
-
Pontus Lurcock
-
Richard Stephens
-
Wolfgang Schuster