[XeTeX] Stretching glyphs vertically?

Ulrike Fischer news2 at nililand.de
Tue Aug 12 15:25:04 CEST 2008


Am Tue, 12 Aug 2008 09:13:17 -0400 schrieb Robert Baruch:

> Well... the real problem is that eventually I'd like to automatically  
> generate a title page just by inputting the title and author. That  
> means that somehow I'd have to calculate how big each word would be,  
> and insert line breaks at appropriate places. I'm a programmer, so I'm  
> not afraid to get into loops and calculations, but is there a way to  
> (a) break up a string into words, and (b) compute the length of a  
> given string in a given font?

Yes. But why don't you simply do something like
\scalebox{1}[2]{\parbox{<width>}{\centering title text ...}} and let
XeLaTeX worry about the line breaks?

-- 
Ulrike Fischer 



More information about the XeTeX mailing list