By Date: <-- -->
By Thread: <-- -->

How to make fonts a bit taller (not broader)



Maximilian Renkin wrote:

I am a bebinner regarding iText.

I have the need to make a font a bit more slender, i.e. more height with same width in a multi page document.


That's possible with method setHorizontalScaling:
Chunk c = new Chunk("slender");
c.setHorizontalScaling(0.8f);
The float is a percentage (in this case 80%).

* is there a way to use affine transformation together with high level
objects?


Other transformation that are possible with Chunk:
rotation/skewing: setSkew
translation: setTextRise

* or how do I add page breaks etc. when using direct content


When using direct content, you should also use
document.newPage();
to go to the next page.
br,
Bruno


------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list iText-questions (at) lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions