public static function PHPExcel_Shared_Font::fontSizeToPixels in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Font.php \PHPExcel_Shared_Font::fontSizeToPixels()
* Calculate an (approximate) pixel size, based on a font points size * *
Parameters
int $fontSizeInPoints Font size (in points): * @return int Font size (in pixels)
2 calls to PHPExcel_Shared_Font::fontSizeToPixels()
- PHPExcel_Reader_Excel2007::toCSSArray in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel2007.php - PHPExcel_Shared_Excel5::sizeRow in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ Excel5.php - * Convert the height of a cell from user's units to pixels. By interpolation * the relationship is: y = 4/3x. If the height hasn't been set by the user we * use the default value. If the row is hidden we use a value of zero. * *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ Font.php, line 394
Class
- PHPExcel_Shared_Font
- PHPExcel_Shared_Font
Code
public static function fontSizeToPixels($fontSizeInPoints = 11) {
return (int) (4 / 3 * $fontSizeInPoints);
}