Zhi Ren wrote:

>Hi, Bruno,
>
>Yes, you are right. Thank you! But, I have two more
>questions: 
>
>(1) For a font, I can have a style either bold or
>underlined, but I cannot have both at same time. Is it
>right?
>  
>
A font family can have fonts that are 'normal', 'bold', 'italic', 
'bolditalic'.
'Underline' is not a characteristic of a font, although class Font treats
it this way. If you are using class Font, you can combine bold and 
underline.
A better way is to use method setUnderline for Chunk objects.

>(2) For BaseFont (for watermark, I guess I have to use
>BaseFont), I cannot find how to set a underline style.
>Can I have underline style for BaseFont?
>  
>
Same answer as above: 'underline' is not a characteristic of a font.
If you want to position text at absolute coordinates to place a watermark,
you should
- draw the line with moveTo, lineTo, stroke, or
- use ColumnText (add an underlined Chunk and place the column)
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to