I want to highlight the fact that I am using programmatically mPdf to do some specific writeText / writeCell, etc..
I need to simply increase font size when writing a specific text. Only for this.
How?
I want to highlight the fact that I am using programmatically mPdf to do some specific writeText / writeCell, etc..
I need to simply increase font size when writing a specific text. Only for this.
How?
There is actually a public method for that, named SetFont
. The problem with it is that it is completely undocumented, so it is unclear whether you’re actually supposed to use it, or it’s just an unstable implementation detail.
The documented API to accomplish this is to specify fonts and all other formatting information using HTML/CSS and then use the WriteHTML
or WriteFixedPosHTML
method to pass that to the mPDF library.