[XeTeX] Re: [MacTeX] XeTeX

Jonathan Kew jonathan_kew at sil.org
Thu Apr 15 10:39:35 CEST 2004


On 15 Apr 2004, at 9:14 am, Ross Moore wrote:

> Hi Bruno, and others
>
> On 15/04/2004, at 4:20 PM, Bruno Voisin wrote:
>
>> It appears that every font switch produces a "fclose: Bad file 
>> descriptor problem" message, without affecting the output apparently.
>
> My tests confirm this:
>    the first usage of a particular font-switch generates the message.
>
> That is,
>   (i) if you define a switch for a  font face+style but don't use it,
>       then there'll be no message;
>  (ii) subsequent uses of the same switch do not generate an extra
>       message.
>
>
>> I think Ross has a better, more systematic, way of providing font 
>> names to LaTeX, not using the \space command and based instead on 
>> turning font names into commands:
>>
>> \expandafter\let\csname OT1+lugr\endcsname\empty
>> {\catcode`\"=11\obeyspaces\gdef\LuGrande{"Lucida Grande"}}
>> \DeclareFontShape{OT1}{lugr}{m}{n}{<->\LuGrande}{}
>
> It's a little too `hacky' to become a "standard",
> which certainly should take the correct encoding into account.
>
> So how about this instead:
>
> %
> % this part can be used in Plain or LaTeX
> %
> {\catcode`\"=11 \obeyspaces%
>    \gdef\Hoefl#1{"Hoefler Text#1"}%
>    \gdef\ItalicShape{ Italic}%
>    \gdef\BoldFace{ Black}%
>    \gdef\SmallCaps{:Letter Case=Small Caps}%
> }%
>
> % this part follows established LaTeX syntax
> % but using the above part to get the font string
> %
> \DeclareFontFamily{U}{hoefl}{}
> \DeclareFontShape{U}{hoefl}{m}{n}{<-> \Hoefl{}}{}
> \DeclareFontShape{U}{hoefl}{m}{it}{<-> \Hoefl{\ItalicShape}}{}
> \DeclareFontShape{U}{hoefl}{bx}{n}{<-> \Hoefl{\BoldFace}}{}
> \DeclareFontShape{U}{hoefl}{b}{n}{<-> ssub * hoefl/bx/n}{}
> \DeclareFontShape{U}{hoefl}{bx}{it}{<-> 
> \Hoefl{\BoldFace\ItalicShape}}{}
> \DeclareFontShape{U}{hoefl}{b}{it}{<-> ssub * hoefl/bx/it}{}
> \DeclareFontShape{U}{hoefl}{m}{sc}{<-> \Hoefl{\SmallCaps}}{}
> \renewcommand{\encodingdefault}{U}
> \renewcommand{\rmdefault}{hoefl}
>

As you all may have noticed, I'm not a LaTeX user; but I'll try some of 
these examples and see if I can track down the failures, as obviously 
it ought to "just work", and something isn't right if you're seeing 
these error messages.

Thanks for all the great feedback, y'all!

Jonathan

_______________________________________________
MacTeX mailing list
http://tug.org/mailman/listinfo/mactex



More information about the XeTeX mailing list