Getting the height of text to know fill height as in TCPDF
Posted
by
sami
on Stack Overflow
See other posts from Stack Overflow
or by sami
Published on 2011-01-08T02:45:58Z
Indexed on
2011/01/08
2:53 UTC
Read the original article
Hit count: 307
I'm trying to go through the code of TCPDF to understand how it calculates the height of the text to be rendered, but it's too much for me to handle without asking.
What I want to know: in the PDF from example 5 http://www.tcpdf.org/examples/example_005.pdf it gives the cell a yellow background. I'm guessing that at the basic level, it first draws a box with this fill color, then adds the text, so what method is it calling to get the height of the text to know the height of the box to fill?
Anyone knows how to trace this, because doing it by hand and looking through the code isn't working at all for me.
© Stack Overflow or respective owner