From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Two newbie questions about Texfont
Date: Sat, 18 Jul 2009 13:44:26 +0200 [thread overview]
Message-ID: <B6E519B8-EDCD-4A7C-B57A-6F1229CF972E@gmail.com> (raw)
In-Reply-To: <97eab8e50907170534n573e6e33qd95af39784a89ba@mail.gmail.com>
Am 17.07.2009 um 14:34 schrieb Harrie Frericks:
> 3. I ran mtxrun --script fonts --list --pattern=*stone*.
> I got about twenty lines of output in three columns. Here is an
> example:
>
> stonesans StoneSans c:/fonts/ITC Stone Sans/SS______.AFM
>
> So far, so good. Now, I want to use this font and you included a
> link to a Wiki article. This article says I have to use a
> typescript. The example typescript from the Wiki uses the
> \definetypeface command. I searched everywhere for a good
> description of this command, but wasn't able to find one,
> unfortunately. Using the example from the Wiki:
>
> \definetypeface [Bonum] [rm] [serif] [bonum] [default]
>
> how would I use this command to be able to use my Stone Sans font
> from the mtxrun output? In the [Bonum] example I can't find a
> reference to a font file of the type c:\fonts\etc.....
The \definetypeface command alone is not enough, you have to tell
ConTeXt
which of the fonts should be used for the upright, italic, bold etc.
style.
You can find such a example at the end of the page -> http://wiki.contextgarden.net/Fonts_in_LuaTex#Example
It's a good exercise to write a complete typescripts once by hand but
when
you want a simpler way to use font with LuaTeX you can use the
simplefonts
module, it hides the complete typescript mechanism from the user and you
have to know only a few commands, the following code should be enough to
use your font in a document.
\usemodule[simplefonts] % make sure the module is available on your
system
\setmainfont[StoneSans] % create a typescript for 'StoneSans' and
enable the font
\starttext
This is a dummy text which is hopefully typeset with the StoneSans
font, you
could also switch the style to {\it italic}, {\bf bold} or {\bi
bolditalic}.
\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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2009-07-18 11:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-14 17:47 Harrie Frericks
2009-07-14 18:13 ` Hans Hagen
2009-07-14 18:15 ` Harrie Frericks
2009-07-17 9:11 ` Harrie Frericks
2009-07-17 9:21 ` Hans Hagen
2009-07-17 9:53 ` Wolfgang Schuster
2009-07-17 10:12 ` luigi scarso
2009-07-17 10:17 ` Taco Hoekwater
2009-07-17 10:26 ` luigi scarso
2009-07-17 11:08 ` Arthur Reutenauer
2009-07-17 12:34 ` Harrie Frericks
2009-07-18 11:44 ` Wolfgang Schuster [this message]
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=B6E519B8-EDCD-4A7C-B57A-6F1229CF972E@gmail.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).