[XeTeX] problem getting small caps

Mike Maxwell maxwell at umiacs.umd.edu
Sat Nov 7 16:22:22 CET 2009


Will Robertson wrote:
> On 2009-11-07 10:51:04 +1030, maxwell <maxwell at umiacs.umd.edu> said:
>> You'll notice I've tried three different ways of getting small caps to
>> show up.  Nevertheless, the PDF shows no small caps, unless I comment out
>> the \setmainfont{Charis SIL} line, in which case all three work.  
>> There are
>> no obvious messages in the .log file.
> 
> This is strange, because I'm having no troubles. 

OK, then since I can get small caps with the default xetex main font 
(what is that?), and you can get it with Charis SIL, the only other 
possibility I can think of is that I have an older version of Charis SIL 
somewhere, and that xetex is picking that font file.

The .log file doesn't seem to point to the directory where it found the 
font.  Is there a way to determine which font file it's using?

fc-list only tells me the styles it finds (Regular, Bold, Bold Italic, 
and Italic).  I think it's supposed to be able to tell more, but its 
documentation is sparse...  Wait, this just in (figured this out from 
the fontconfig-user.html file about fc-list):
----------
 > fc-list "Charis SIL": family style fontversion | sort
Charis SIL:style=Bold Italic:fontversion=268697
Charis SIL:style=Bold Italic:fontversion=269091
Charis SIL:style=Bold:fontversion=268697
Charis SIL:style=Bold:fontversion=269091
Charis SIL:style=Italic:fontversion=268697
Charis SIL:style=Italic:fontversion=269091
Charis SIL:style=Regular:fontversion=268697
Charis SIL:style=Regular:fontversion=269091
----------
So clearly it's finding two different versions of the font.  And by 
adding 'file' to the right of the colon, it tells me where these files 
are.  But when I use otfinfo, both files show
    smcp    Small Capitals
That seems to confirm what I saw before from looking in /etc/fonts, 
namely that the font should support small caps.

Any other ideas?  How can I confirm that xelatex is using one of these 
files (and which one)?

(Peter Baker's msg came through as I was writing this...I'll respond 
separately)
-- 
    Mike Maxwell
    What good is a universe without somebody around to look at it?
    --Robert Dicke, Princeton physicist


More information about the XeTeX mailing list