[Tex/LaTex] Whatever happened to \newfontinstance

fontspectexlivexetex

I just installed a pretest version of TeXLive 2010 and tried compiling some files as a test. None of my XeLaTeX files compile because apparently the command \newfontinstance (which was defined in fontspec, if I remember correctly) no longer exists.

Reading the documentation (texdoc fonstspec) I see that this is indeed the case and that there are now other commands such as \fontspec, \newfontfamily, …

Question

What is the minimal change I have to do to my XeLaTeX documents to get them to compile? Is is simply a question of changing \newfontinstance to \newfontfamily?

Added

It seems that making the above change works (insofar as the document compiles and looks alright), but I'd like confirmation that I'm doing the right thing. Thanks!

Best Answer

This was a somewhat inadvertent change in fontspec v2, but as far I know you're the first person to notice :-) You are correct that \newfontfamily is the replacement to use -- it is exactly the same command with a more sensible/accurate name.

You can write

\let\newfontinstance=\newfontfamily 

in fontspec.cfg if you would like to fix this for all of your legacy documents. Sorry for any inconvenience.

Related Question