Merge pull request #68 from csears123/patch-1

"Non well formed numeric value" error occurs in PHP 7
This commit is contained in:
Nicola Asuni 2018-09-14 12:46:52 +01:00 committed by GitHub
commit 2d66d21d4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4453,6 +4453,7 @@ class TCPDF {
* @see SetFont()
*/
public function SetFontSize($size, $out=true) {
$size = (float)$size;
// font size in points
$this->FontSizePt = $size;
// font size in user units