ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Khaled Hosny <khaledhosny@eglug.org>
To: Hans Hagen <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: xits font in ~/.fonts
Date: Wed, 18 Aug 2010 12:57:12 +0200	[thread overview]
Message-ID: <20100818105712.GD4281@khaled-laptop> (raw)
In-Reply-To: <4C6AB31F.2030109@wxs.nl>

On Tue, Aug 17, 2010 at 06:04:47PM +0200, Hans Hagen wrote:
> On 17-8-2010 6:01, Khaled Hosny wrote:
> >On Tue, Aug 17, 2010 at 05:26:19PM +0200, Hans Hagen wrote:
> >>On 17-8-2010 4:53, Khaled Hosny wrote:
> >>>On Tue, Aug 17, 2010 at 03:08:23PM +0200, Hans Hagen wrote:
> >>>>On 17-8-2010 3:00, Khaled Hosny wrote:
> >>>>
> >>>>>The typescript uses file names, however ConTeXt can not load system
> >>>>>fonts by filename. Hans, I think it would be nice to be able to load
> >>>>>fonts by either font name or file name regardless of where they reside
> >>>>>(I'm not sure how easy is that, though, with luaotfload and kpse setting
> >>>>>OSFONTDIR is all what I need, since kpathsea appends it to its font
> >>>>>searching paths).
> >>>>
> >>>>\starttext
> >>>>
> >>>>\definedfont[vera at 50pt] test
> >>>>\definedfont[file:vera.ttf at 100pt] test
> >>>>
> >>>>\stoptext
> >>>>
> >>>>works quite ok on my machine and the log reports:
> >>>>
> >>>><c:/windows/fonts/vera.ttf>
> >>>>
> >>>>so it must be something in the typescripts .. maybe the old names?
> >>>
> >>>This works for me, but not with .otf fonts.
> >>
> >>\starttext
> >>
> >>\definedfont[file:STIXGeneral at 100pt] test
> >>
> >>\stoptext
> >>
> >><c:/windows/fonts/STIXGeneral.otf>
> >
> >I'm getting unpredictable results here, some fonts are found and some
> >are not, but I can't identify a pattern, I thought it is related to
> >symbolic links but could not prove it (replacing symlinks by a copy, and
> >updating the databases but still the font is not found by file name).
> 
> files in OSFONTDIR normally are located runtime (no database) ..
> depends a bit on the configuration

Dunno then, it is very confusing, some fonts are found by file name and
some are not. Putting them in TEXMF tree makes them found.

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___________________________________________________________________________________
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
___________________________________________________________________________________


  parent reply	other threads:[~2010-08-18 10:57 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-15 16:44 Aditya Mahajan
2010-08-17 13:00 ` Khaled Hosny
2010-08-17 13:08   ` Hans Hagen
2010-08-17 14:53     ` Khaled Hosny
2010-08-17 15:26       ` Hans Hagen
2010-08-17 16:01         ` Khaled Hosny
2010-08-17 16:04           ` Hans Hagen
2010-08-17 16:27             ` Michael Murphy
2010-08-18 10:57             ` Khaled Hosny [this message]
2010-08-18 11:01               ` Taco Hoekwater
2010-08-18 11:06                 ` Khaled Hosny
2010-08-18 19:03                   ` Thomas A. Schmitz
2010-08-18 20:07                     ` Aditya Mahajan
2010-08-18 22:30                       ` Hans Hagen
2010-08-18 22:35                     ` Hans Hagen
2010-08-18 22:36                     ` Hans Hagen
2010-08-18 22:48                       ` Aditya Mahajan
2010-08-18 22:50                         ` Hans Hagen
2010-08-18 22:57                         ` Khaled Hosny
2010-08-18 11:04               ` Martin Althoff
2010-08-17 23:51         ` Aditya Mahajan

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=20100818105712.GD4281@khaled-laptop \
    --to=khaledhosny@eglug.org \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).