ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Harrie Frericks <harrie.frericks@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Two newbie questions about Texfont
Date: Fri, 17 Jul 2009 14:34:56 +0200	[thread overview]
Message-ID: <97eab8e50907170534n573e6e33qd95af39784a89ba@mail.gmail.com> (raw)
In-Reply-To: <7DE5D532-50BB-4191-A6B9-8D2E8C965BB2@gmail.com>


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

Thanks, Wolfgang, that was another step in the right direction. Could you
help me with the next step? This is what I did so far. (N.B. I'm not
interested in TeX's standard fonts. I want to use my own type1 and otf fonts
which are in c:\fonts).
1. I set OSFONTDIR to c:\fonts
2. I ran mtxrun --script font --reload

That was succesfull. Mtxrun recursed the entire font directory tree.

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

Any help would be greatly appreciated.

Thanks, Harrie.





On Fri, Jul 17, 2009 at 11:53 AM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

>
> Am 17.07.2009 um 11:11 schrieb Harrie Frericks:
>
>  Could someone show me how to use type1 font files with Luatex without
>> having to go the TexFont route.
>>
>
> When you placed your fonts in the TeX directory (afm plus pfb files)
> regenerate the file database
> with 'context --generate' to let ConTeXt know about the new files.
>
> To see what the real names of the fonts is you can show the complete list
> on the terminal with
> 'mtxrun --script fonts --list', you can narrow down the list with names
> when you use a search
> pattern what could e in your case something like 'mtxrun --script fonts
> --list --pattern=*stone*'
>
> When you're font is not listed in the output from mtxrun update also the
> font database with
> the command 'mtxrun --script font --regenrate'.
>
> To use the fonts in your document you can write a typescript for them by
> hand [1] or use
> the simplefonts module which offers a simpler method and does the hard work
> itself hidden
> for the user.
>
> [1] http://wiki.contextgarden.net/Fonts_in_LuaTex
>
> 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
>
> ___________________________________________________________________________________
>

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

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2009-07-17 12:34 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 [this message]
2009-07-18 11:44         ` 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=97eab8e50907170534n573e6e33qd95af39784a89ba@mail.gmail.com \
    --to=harrie.frericks@xs4all.nl \
    --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).