TCPDF::getHTMLFontUnits( $val,  $refsize = 12,  $parent_size = 12,  $defaultunit = 'pt' )

Convert HTML string containing font size value to points


Description Description


Parameters Parameters

$val

(Required) (string) String containing font size value and unit.

$refsize

(Optional) (float) Reference font size in points.

Default value: 12

$parent_size

(Optional) (float) Parent font size in points.

Default value: 12

$defaultunit

(Optional) (string) Default unit (can be one of the following: %, em, ex, px, in, mm, pc, pt).

Default value: 'pt'


Top ↑

Return Return

(float) value in points


Top ↑

Source Source

File: includes/lib/tcpdf/tcpdf.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.