public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] xelatex --- Can't load fontspec (no \define@choicekey)
@ 2006-11-03 15:04 Ferris McCormick
  0 siblings, 0 replies; only message in thread
From: Ferris McCormick @ 2006-11-03 15:04 UTC (permalink / raw
  To: Joslwah; +Cc: Gentoo Developers


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

Josh,
  As you recall, I discussed problems with \use{fontspec} in xelatex
with you earlier.  I am copying gettoo-dev@ on the off chance other
people are playing with xelatex, too.  People who have no idea what I am
talking about might as well stop reading now.
  The difficulty is that fontspec in one instance uses
\define@choicekey, and it's trying to decide between AAT and ICU.
Unfortunately, \define@choicekey is not defined anywhere.  The solution
is to use \define@key instead and to always use ICU.  The little patch I
have attached does that.
  With this change to fontspec.sty, under xelatex
\use{fontspec}
loads the style file as expected, and commands like
\setromanfont[BoldFont=""Charis SIL"" Bold,ItalicFont=""Charis SIL""
Italic]{""Charis SIL""}
work the way they are supposed to.  (And yes, you do need the double ""
because otherwise, xelatex stops scanning at the space and tries to load
Charis (not "Charis SIL").)
  Hope this is of interest,
Regards,
Ferris
-- 
Ferris McCormick (P44646, MI) <fmccor@gentoo.org>
Developer, Gentoo Linux (Devrel, Sparc)


[-- Attachment #1.2: fontspec.patch --]
[-- Type: text/x-patch, Size: 863 bytes --]

--- texmf/tex/xelatex/fontspec/fontspec.sty-	2006-11-01 20:22:18.000000000 +0000
+++ texmf/tex/xelatex/fontspec/fontspec.sty	2006-11-03 14:20:18.000000000 +0000
@@ -500,8 +500,12 @@
 \define@key[zf]{options}{SmallCapsFeatures}{%
   \unless\ifzf@firsttime\def\zf@sc@feat{,#1}\fi
   \zf@update@family{scfeat:\zap@space #1 \@empty}}
-\define@choicekey[zf]{preparse}{Renderer}{AAT,ICU}{%
-  \edef\zf@suffix{\zf@suffix/#1}%
+%\define@choicekey[zf]{preparse}{Renderer}{AAT,ICU}{%
+%  \edef\zf@suffix{\zf@suffix/#1}%
+%  \font\zf@basefont="\zf@fontname\zf@suffix" at \f@size pt
+%  \edef\zf@family@long{\zf@family@long +rend:#1}}
+\define@key[zf]{preparse}{Renderer}{%
+  \edef\zf@suffix{\zf@suffix/ICU}%
   \font\zf@basefont="\zf@fontname\zf@suffix" at \f@size pt
   \edef\zf@family@long{\zf@family@long +rend:#1}}
 \define@key[zf]{preparse}{Script}{%

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-03 15:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-03 15:04 [gentoo-dev] xelatex --- Can't load fontspec (no \define@choicekey) Ferris McCormick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox