Using XeTeX and fontspec, I use the Liberation font family in of my documents. Unfortunately those fonts (esp. Liberation Serif) do not natively support small caps.
Is there a way to enable fake small caps in fontspec?
|
Using XeTeX and fontspec, I use the Liberation font family in of my documents. Unfortunately those fonts (esp. Liberation Serif) do not natively support small caps. Is there a way to enable fake small caps in fontspec? |
||||
|
|
|
You can also use FontForge to add automatically generated real small caps to the font. It's still not the same as real real small caps but it's way better than faked small caps: http://fontforge.sourceforge.net/Styles.html#Smallcaps |
|||
|
|
|
Here is a simple solution
The effect is here,
Clearly, this will not universally work. The |
|||
|
|
Yeah if your font does not provide native small caps you can try the following code to make fake caps. Works fine on my side...
Hope it helps ++ |
|||
|
|
|
The best – and IMHO only acceptable – way to get small caps is to use a font containing them every fake looks bad, since the stroke widths of faked small caps won’t match the real uppercase letter. Take a look at these images showing Linux Libertine, and make your own decision …
|
|||