View Single Post
Old 08-24-2010, 10:56 AM   #8
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 622
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
You can modify any font with small caps to use those small caps as the primary glyphs. This appears to work perfectly as long as the relevant substitution tables are also updated to refer to the small cap glyphs. I'm sure you could apply the same technique to use the uppercase glyphs.

I've attached a cheesy script which performs the necessary modifications on the XML font representation used by the TTX tool. It assumes that small caps glyphs end in ".sc" -- it would be better to use the contents of the 'smcp' substitution tables. It would also be better to use the fonttools Python library directly, but this is what I had lying around :-).
Attached Files
File Type: txt sc-ttx.py.txt (964 Bytes, 91 views)
llasram is offline   Reply With Quote