[XeTeX] XeTeX 0.994a and fontspec 1.10 on Mac OS X and Lucida Sans fonts from Java

Peter Dyballa Peter_Dyballa at Web.DE
Thu Jun 29 01:08:45 CEST 2006


Am 29.06.2006 um 00:17 schrieb Will Robertson:

> On 29/06/2006, at 6:15 , Peter Dyballa wrote:
>>   \textsf{This is Lucida Sans Regular, \textit{and this is Lucida
>> Sans Oblique}.
>
> Hmmmm, what is going wrong here? It has selected bold italic instead
> of italic, which is weird.
> Aha, a problem with the font (or XeTeX)!
>
> \documentclass{article}
> \usepackage{fontspec}
> \begin{document}
> \font\1="Lucida Sans Regular"\1 test	
> \font\1="Lucida Sans Regular/B"\1 test	
> \font\1="Lucida Sans Regular/I"\1 test	
> \font\1="Lucida Sans Regular/BI"\1 test
> \end{document}
>
> I also notice that trying to select the font by calling it "Lucida
> Sans" also doesn't work, which it should if I understand things
> correctly. Seems like the font is a bit buggy in its naming.
>
> Anyway, you can fix this up in fontspec of course by selecting the
> italic font specifically:
>
> \fontspec
>    [ItalicFont={Lucida Sans Oblique}]
>    {Lucida Sans Regular}
> test \itshape test	
>

Both test in one file combined:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.tiff
Type: image/tiff
Size: 1968 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20060629/923f6230/attachment.tiff 
-------------- next part --------------


The latter specification I had already tried. The Lucida Sans fonts 
(et) are a mixture of different Java version. FontBook tells about  
them ("Voller Name" is full name, "Eindeutiger Name" is unique name,  
"Sprache" is language):

	PostScript Name	LucidaSans
	Voller Name	Lucida Sans Regular
	Familie	Lucida Sans
	Stil	Regular
	Art	TrueType
	Sprache	Deutsch, Englisch, Franz?sisch, Arabisch, Hebr?isch, Thai
	Version	Version 1.20 - October 2000
	Ort	/Library/Fonts/LucidaSansRegular.ttf
	Eindeutiger Name	Lucida Sans Regular: B&H:1999

	PostScript Name	LucidaSans-Oblique
	Voller Name	Lucida Sans Oblique
	Familie	Lucida Sans
	Stil	Oblique
	Art	TrueType
	Sprache	Deutsch, Englisch, Franz?sisch, Arabisch, Hebr?isch
	Version	September 20, 1998; 1.00 (JAVA)
	Ort	/Library/Fonts/LucidaSansOblique.ttf
	Eindeutiger Name	Lucida Sans Oblique: B&H:1998

	PostScript Name	LucidaSans-Demi
	Voller Name	Lucida Sans Demibold
	Familie	Lucida Sans
	Stil	Demibold
	Art	TrueType
	Sprache	Deutsch, Englisch, Franz?sisch, Arabisch, Hebr?isch, Thai
	Version	30 October 2001; 1.21 (JAVA)
	Ort	/Library/Fonts/LucidaSansDemiBold.ttf
	Eindeutiger Name	Lucida Sans Demibold: B&H:2001

	PostScript Name	LucidaSans-DemiOblique
	Voller Name	Lucida Sans Demibold Oblique
	Familie	Lucida Sans
	Stil	Demibold Oblique
	Art	TrueType
	Sprache	Deutsch, Englisch, Franz?sisch
	Version	September 18, 1998; 1.00 (JAVA)
	Ort	/Library/Fonts/LucidaSansDemiOblique.ttf
	Eindeutiger Name	Lucida Sans Demibold Oblique: B&H: 1998


A great mixture! (Notice also the different date formats in the  
"Version" lines!) And, yes, there is one bug in Lucida Sans Oblique:  
the series of f Ligatures is lifted by one slot, ff is lost and you  
get fi, instead of fi you get fl, instead of fl you get ffi, instead  
of ffi you get ffl, and ffl is gone, too.


I'll try to investigate with Apple's Font Tools which fonts are most  
promising. Sun has left some font variants from recent Java VMs (the  
most buggy ones?):

/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ 
fonts:
-rw-r--r--   1 root  wheel   56240 13 Jul  2005 LucidaBrightDemiBold.ttf
-rw-r--r--   1 root  wheel   59776 13 Jul  2005  
LucidaBrightDemiItalic.ttf
-rw-r--r--   1 root  wheel   59112 13 Jul  2005 LucidaBrightItalic.ttf
-rw-r--r--   1 root  wheel   59488 13 Jul  2005 LucidaBrightRegular.ttf
-rw-r--r--   1 root  wheel   86972 13 Jul  2005 LucidaSansDemiBold.ttf
-rw-r--r--   1 root  wheel   91352 13 Jul  2005  
LucidaSansDemiOblique.ttf
-rw-r--r--   1 root  wheel  253724 13 Jul  2005 LucidaSansOblique.ttf
-rw-r--r--   1 root  wheel  243076 13 Jul  2005 LucidaSansRegular.ttf
-rw-r--r--   1 root  wheel   59308 13 Jul  2005 LucidaTypewriterBold.ttf
-rw-r--r--   1 root  wheel   63168 13 Jul  2005  
LucidaTypewriterBoldOblique.ttf
-rw-r--r--   1 root  wheel  137484 13 Jul  2005  
LucidaTypewriterOblique.ttf
-rw-r--r--   1 root  wheel  130912 13 Jul  2005  
LucidaTypewriterRegular.ttf

/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ 
fonts:
-rw-r--r--   1 root  wheel   75144 10 Aug  2005 LucidaBrightDemiBold.ttf
-rw-r--r--   1 root  wheel   75124 10 Aug  2005  
LucidaBrightDemiItalic.ttf
-rw-r--r--   1 root  wheel   80856 10 Aug  2005 LucidaBrightItalic.ttf
-rw-r--r--   1 root  wheel  344908 10 Aug  2005 LucidaBrightRegular.ttf
-rw-r--r--   1 root  wheel  317896 10 Aug  2005 LucidaSansDemiBold.ttf
-rw-r--r--   1 root  wheel  698236 10 Aug  2005 LucidaSansRegular.ttf
-rw-r--r--   1 root  wheel  234068 10 Aug  2005 LucidaTypewriterBold.ttf
-rw-r--r--   1 root  wheel  242700 10 Aug  2005  
LucidaTypewriterRegular.ttf

/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ 
fonts:
-rw-r--r--   1 root  wheel   75144 22 M?r 01:33 LucidaBrightDemiBold.ttf
-rw-r--r--   1 root  wheel   75124 22 M?r 01:33  
LucidaBrightDemiItalic.ttf
-rw-r--r--   1 root  wheel   80856 22 M?r 01:33 LucidaBrightItalic.ttf
-rw-r--r--   1 root  wheel  344908 22 M?r 01:33 LucidaBrightRegular.ttf
-rw-r--r--   1 root  wheel  317896 22 M?r 01:33 LucidaSansDemiBold.ttf
-rw-r--r--   1 root  wheel  698236 22 M?r 01:33 LucidaSansRegular.ttf
-rw-r--r--   1 root  wheel  234068 22 M?r 01:33 LucidaTypewriterBold.ttf
-rw-r--r--   1 root  wheel  242700 22 M?r 01:33  
LucidaTypewriterRegular.ttf


So your patch is obviously working correctly, except someone else  
finds something different

--
Greetings

   Pete

"Let's face it; we don't want a free market economy either."
         James Farley, president, Coca-Cola Export Corp., 1959




More information about the XeTeX mailing list