You are here

public static function PHPExcel_Shared_Font::centimeterSizeToPixels in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Font.php \PHPExcel_Shared_Font::centimeterSizeToPixels()

* Calculate an (approximate) pixel size, based on centimeter size * *

Parameters

int $sizeInCm Font size (in centimeters): * @return int Size (in pixels)

1 call to PHPExcel_Shared_Font::centimeterSizeToPixels()
PHPExcel_Reader_Excel2007::toCSSArray in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007.php

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Font.php, line 414

Class

PHPExcel_Shared_Font
PHPExcel_Shared_Font

Code

public static function centimeterSizeToPixels($sizeInCm = 1) {
  return $sizeInCm * 37.795275591;
}