I want to write a text in which each letter uses a different font. It is rather short. I guess I could make it letter by letter, selecting the font I want for each of them.
Are there easier ways?
fonts
I want to write a text in which each letter uses a different font. It is rather short. I guess I could make it letter by letter, selecting the font I want for each of them.
Are there easier ways?
Best Answer
Right, I'm sure that this could be vastly improved. In particular, it doesn't like spaces and it doesn't like being fed an argument (so using the
lipsum
package to demonstrate it didn't work). Of course, the kerning is completely messed up, but then I'd be amazed at a solution that got that right!It uses the
fontspec
package, and for some reason unknown to me, to use the proper names of the fonts required me to uselualatex
instead ofxelatex
.Without further ado, here's the code:
All the fonts are ones that I found in my TeXLive2010 distribution.