Hi,

I will post a small piece of code to illustrate the problem. Also, maybe 
the problem is caused by incorrect font metrics,
I'll check that in the process.

Mit freundlichem Gruß,

Peter Henningsen
Senior Consultant

+++++++++++++++++++++++++++++++++++
w//Center Consulting GmbH
Altonaer Poststraße 9a
22767 Hamburg
Tel: +49.40 328 706-0
Fax +49.40 328 706-555
[email protected]

w//Center Consulting GmbH
Geschäftsführer: Michael Brandes
Handelsregister: Amtsgericht Itzehoe
HRB 2315 IZ
www.wcenter.de



[email protected] 
14.04.2010 09:50
Please respond to
Post all your questions about iText here 
<[email protected]>


To
[email protected]
cc

Subject
Re: [iText-questions] How to align the top of two columnTexts?  (addit. 
img)







Hello and good morning, 

Sorry to hear that, but I agree, that the images only indicate where the 
problem is. 
For a normal customer, there would be no problem, but our's is looking at 
the details. 

My problem is simply, that my two columnTexts tops are not aligned. 

Both columTexts are side by side and use 2 rectangles that have the same 
top-Position. I use addElement 
to add Images and Texts with various font sizes to the columnText. With 
go() I fill the left column, then I set the right rectangle to the 
columnText and call 
go() again. 

Problem: The top of the glyphs in the first line of the right (2nd) column 
does not align vertically with the top of the glyphs/image on the left. 
The right column always appears to start printing a bit lower than the 
left. To a varying degree. 

When you look at the image "align_ok.gif", you see that the upper border 
of the left image is vertically aligned with the top of the letter "f" on 
the right. Fine. 

Picture "align_error.gif" shows a vertical gap between the top of the text 
glyphs on the left and on the right. 

Maybe this does not bother most people as the difference in height is only 
a few pixels and depends on the fonts used. 
Or I am doing something wrong? The relevant examples i've seen deal only 
with one fontsize in the columnText. 

Kind regards

Peter Henningsen
Senior Consultant

+++++++++++++++++++++++++++++++++++
w//Center Consulting GmbH
Altonaer Poststraße 9a
22767 Hamburg
Tel: +49.40 328 706-0
Fax +49.40 328 706-555
[email protected]

w//Center Consulting GmbH
Geschäftsführer: Michael Brandes
Handelsregister: Amtsgericht Itzehoe
HRB 2315 IZ
www.wcenter.de 


1T3XT info <[email protected]> 
12.04.2010 18:22 

Please respond to
Post all your questions about iText here 
<[email protected]>


To
Post all your questions about iText here 
<[email protected]> 
cc

Subject
<SPAM> Re: [iText-questions] How to align the top of two columnTexts? 
(addit. img)








[email protected] wrote:
> 
> Hello,
> 
> As I did not receive any feedback yet, I have added two images 
> illustrating the problem.

And still I don't understand the problem,
and as long as I don't understand the problem,
I can't help you. I assume the other people
on the list are silent for the same reason.

You are "explaining" source code.
Instead you should "show" source code.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: 
http://1t3xt.info/tutorials/keywords/
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: 
http://1t3xt.info/tutorials/keywords/
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to