Fit text to cell
Informations
Author: Patrick Benny
License: FPDF
Description
This method is an extension of Cell() allowing to output text with either character spacing
or horizontal scaling.
CellFit(float w [, float h [, string txt [, mixed border [, int ln [, string align [, boolean fill [, mixed link [, boolean scale [, boolean force]]]]]]]]])
The first 8 parameters are the same as Cell(). The additional parameters are:
scale
false
: character spacing
true
: horizontal scaling
force
false
: only space/scale if necessary (not when text is short enough to fit)
true
: always space/scale
The following four methods are also provided for convenience, allowing all combinations of
scale/force, and using only the 8 parameters of Cell():
CellFitScale()
CellFitScaleForce()
CellFitSpace()
CellFitSpaceForce()