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 : [email protected] / 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
___________________________________________________________________________________