Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Say I have installed a font using something like otfinst.py or similar. And say this font doesn't have a small caps version. Is there an easy way to fake small caps in pdflatex? At the moment, text that is supposed to be sc just shows up as regular text...

For a one off, I can fake small caps like this (requires graphicx):

F\scalebox{0.7}{\MakeUppercase{ake small caps}}

And I guess what I'd like is a macro that does that. That is, it scaleboxes and then MakeUppercases all of the lower case letters in its argument. Is that possible?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I would produce Postscript Type1 font(s) with e.g. Fontforge and then follow the instructions of 'Tutorial 1 The Basics' of fontinstallationguide.pdf. It does include virtual fonts for faked small caps by default, as well as for slanted cuts. There are scripts like installfont that does all the work. You just need the command line options and wait for a minute or two.

share|improve this answer
    
This is obviously the best solution (apart from perhaps emailing the creator of the font and requesting a small caps version), but given the hassle I've been through to install the normal version of the font, I don't want to play around with the fonts in this way... –  Seamus Feb 11 '11 at 13:37
    
It's not so much hassle as it looks. It's a step by step recipe. In the end it simply works with '\textsc' and '\scshape' and you don't need any extra macro. Maybe about 30 mins if you do it your first time. –  Josef Feb 11 '11 at 15:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.