ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jonathan Kew <jonathan_kew@sil.org>
To: "Mojca Miklavec" <mojca.miklavec.lists@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: XeTeX and OpenType LM
Date: Wed, 31 Jan 2007 17:16:17 +0000	[thread overview]
Message-ID: <7E5493F1-197C-484E-92FB-7A48552BA85E@sil.org> (raw)
In-Reply-To: <6faad9f00701310858q5c2792aft3774199f01a33af1@mail.gmail.com>

On 31 Jan 2007, at 4:58 pm, Mojca Miklavec wrote:

>> hm, i'm still wondering why xetex needs the extra [] ; is this  
>> somewhere documented? is it something new? why not {}
>>
>> having an extra series of defs for xetex is a bad idea, so i'd  
>> rather fix that 'automatically'
>
> Using OpenType fonts from the TeX tree has been implemented in the
> second half of 2006 (I was probably among those who requested that
> feature).

Yes :)

> The only documentation I know of are "release notes". I
> guess that only Jonathan can answer your question.

Normally, XeTeX loads OpenType fonts by *font name* (i.e., things  
like \font\x="Latin Modern Roman 10pt" or \font\y="Times New Roman",  
etc). It will find fonts in this way if they are "installed" in the  
normal desktop sense (in the c:\windows\fonts folder, or /Library/ 
Fonts etc under Mac OS X, or /etc/fonts or ~/.fonts under Linux, and  
so on).

To repeat: such fonts are identified by their font names. Moreover,  
there is some support for font families, in that xetex looks for the  
appropriate optically-sized face, and can locate bold and italic  
variants of a base font.

The square-bracket notation is quite different, in that it allows a  
font (anywhere on the machine) to be loaded by *file name* (not font  
name). The texmf tree is searched by default, but full pathnames can  
also be used. In this case, there is no additional font family  
management; xetex will simply use the font file specified.

Font names and font filenames are quite different, in many cases, and  
it didn't seem wise to mix them up and allow the exact same form of  
the \font declaration to access either one. This could lead to  
ambiguity and confusion in the case where a filename does happen to  
be the same as a font name.

As for why square brackets.... why not? :) We just needed a way to  
distinguish filenames from font names, and this seemed a reasonably  
safe choice -- unlikely to be present in a real font name, and not  
usually given special treatment in TeX.

JK

  reply	other threads:[~2007-01-31 17:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-31  4:44 Mojca Miklavec
2007-01-31 11:09 ` Hans Hagen
2007-01-31 16:58   ` Mojca Miklavec
2007-01-31 17:16     ` Jonathan Kew [this message]
2007-01-31 19:12       ` Hans Hagen
2007-02-02  8:26     ` Hans Hagen
2007-02-02 13:23       ` Mojca Miklavec
2007-02-02 13:50         ` Hans Hagen
2007-02-02 15:40           ` Mojca Miklavec

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=7E5493F1-197C-484E-92FB-7A48552BA85E@sil.org \
    --to=jonathan_kew@sil.org \
    --cc=mojca.miklavec.lists@gmail.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).