ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: times new roman, arial and courier fonts
Date: Sun, 24 Jan 2010 18:06:33 +0100	[thread overview]
Message-ID: <4B5C7E19.70409@googlemail.com> (raw)
In-Reply-To: <4B5C5A03.20402@gmail.com>

Am 24.01.10 15:32, schrieb Vyatcheslav Yatskovsky:
>> \definetypeface[winfonts][rm][specserif][Times New Roman][default]
>
> What a gift for me ant other ConTeXt users!


What's is even better is the underlying system.


With XeTeX and LuaTeX you can load font either by the filename 
(file:...) or the fontname (name:...) but since the end of last year 
there is a new system for MkIV. I call the system the spec-interface and 
it let you load a font by its familyname and value for the weight and style.


The syntax for the spec-interface is:

   spec:<familyname>-<fontweight>-<fontstyle>-<fontwidth>

A example how you can use this load 'Times New Roman Regular' is

   spec:timesnewroman-normal-normal

for 'Times New Roman Italic' the definition is

   spec:timesnewroman-normal-italic

and for 'Times New Roman Bold Italic' it is

   spec:timesnewroman-bold-italic


As you can see in the definiton above where I left the 'fontwidth' out 
the value for fontweight, fontstyle and fontwidth are optional.


Another example for the spec-interface was shown by Hans a while ago: 
http://archive.contextgarden.net/message/20091120.123832.8f76eed2.en.html

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
___________________________________________________________________________________


  reply	other threads:[~2010-01-24 17:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.0.1264330801.10026.ntg-context@ntg.nl>
2010-01-24 14:32 ` Vyatcheslav Yatskovsky
2010-01-24 17:06   ` Wolfgang Schuster [this message]
2010-01-23 14:46 Marius
2010-01-23 14:57 ` Wolfgang Schuster
2010-01-23 19:22   ` Marius
2010-01-24  9:59     ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B5C7E19.70409@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).