I'm trying to get to grips with the Fontspec package to create some custom fonts. I'm finding the documentation extremely hard to understand and the examples provided don't seem to work for me. I'm using Lyx and compiling with XeTeX.
So: I want to create a special typeface to quote interface labels in a technical document. In my document preamble, I specify a font face, let's say Garamond:
So far, so good. Wherever I have applied the command \menuitem in my document, it shows up in Garamond.
But I cannot modify the characteristics of Garamond in any way. I'd like it in SmallCaps but I realise that is a tall order, as it may not have a SmallCaps variant installed on my Windows. But why won't this work to get it into Uppercase?
I'd like SmallCaps and a sans serif font if possible (not Garamond, obviously), but I cant get this thing to respond on even the most elementary level.
- Some of these options (e.g. Letters) apply only to OpenType fonts which apparently Garamond, my trial example, is not.
- The key Letters=Uppercase, even if applied to an OpenType font, apparently does not put anything into Uppercase. The documentation says: "Note that the Uppercase option will (probably) not actually map letters to uppercase.
It is designed to select various uppercase forms for glyphs such as accents and dashes". (I know, RTFM.)
- I have had better success today applying color and rgb values, but no success at all with transparency, using either the Opacity key or the two digits at the end of the rgb value. (Yes, I am using xcolor package). So far transparency does _not_ work for me as described in documentation.
If the font does not have a small caps variant or you haven't installed the small caps variant on your computer you're out of luck of course for these but uppercasing should work with LaTeX's standard way: