ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: weg@indiscrete.org (Eythan Weg)
To: ntg-context@ntg.nl
Subject: Re: Two questions about use of system ttf fonts
Date: Sat, 01 Mar 2008 09:59:56 -0500	[thread overview]
Message-ID: <87y792xzf7.fsf@indiscrete.org> (raw)
In-Reply-To: <47C83C3F.1080409@wxs.nl>


Hans Hagen <pragma@wxs.nl>
Fri, 29 Feb 2008 18:09:19 +0100

   Eythan Weg wrote:
   > Hi,
   > 
   > I am trying to use truetype fonts with mkiv.
   > 
   > When loading a font given a full path name like
   > this:
   > 
   > \font\test=/usr/share/fonts/truetype/freefont/FreeSans.ttf at 12pt
   
   do you need to provide the full path?

It turns out that I do not.  But I thought it should work even when OSFONTDIR
is not defined. 
   
   why not set OSFONTDIR?
   
   OSFONTDIR=/usr/share/fonts/truetype/freefont//
   
   or so

Well, this type of definition fails with error "error >> 
define font: font with name ... is not found"

But this

OSFONTDIR=/usr/share/fonts/truetype/freefont

works.

Also this

OSFONTDIR=/usr/share/fonts/truetype/{freefont,ttf-dejavu}

but these do not:

OSFONTDIR=/usr/share/fonts/truetype/{freefont;ttf-dejavu}
OSFONTDIR=/usr/share/fonts/truetype/{freefont:ttf-dejavu}
OSFONTDIR=/usr/share/fonts/truetype/{freefont,ttf-dejavu}//

Also a definition that works in the shell, fails when appears only in
texmf.cnf  when TEXMFCNF is defined in the shell.

Luatex with plain format does read texmf.cnf and correctly interpret
all the above variations including 
OSFONTDIR=/usr/share/fonts/truetype//.

Thank you, eythan






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


  reply	other threads:[~2008-03-01 14:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-29 15:08 Eythan Weg
2008-02-29 17:09 ` Hans Hagen
2008-03-01 14:59   ` Eythan Weg [this message]
2008-02-29 17:10 ` Hans Hagen
2008-03-01 15:27   ` Eythan Weg
2008-03-02 13:06     ` Hans Hagen
2008-02-29 18:00 ` Wolfgang Schuster
2008-03-01 15:00   ` Eythan Weg

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=87y792xzf7.fsf@indiscrete.org \
    --to=weg@indiscrete.org \
    --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).