PHPExcel_Shared
[ class tree: PHPExcel_Shared ] [ index: PHPExcel_Shared ] [ all elements ]

Class: PHPExcel_Shared_Font

Source Location: /PHPExcel/Shared/Font.php

Class Overview


PHPExcel_Shared_Font


Author(s):

Copyright:

  • Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)

Methods



Class Details

[line 36]
PHPExcel_Shared_Font

PHPExcel_Shared_Font




Tags:

copyright:  Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)


[ Top ]


Class Methods


static method calculateColumnWidth [line 47]

static int calculateColumnWidth( [int $fontSize = 9], [bool $fontSizeInPixels = false], [string $columnText = ''], [int $rotation = 0])

Calculate an (approximate) OpenXML column width, based on font size and text contained

Calculate an (approximate) OpenXML column width, based on font size and text contained




Tags:

return:  Column width
access:  public


Parameters:

int   $fontSize   Font size (in pixels or points)
bool   $fontSizeInPixels   Is the font size specified in pixels (true) or in points (false) ?
string   $columnText   Text to calculate width
int   $rotation   Rotation angle

[ Top ]

static method centimeterSizeToPixels [line 111]

static int centimeterSizeToPixels( [int $sizeInCm = 1])

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

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




Tags:

return:  Size (in pixels)
access:  public


Parameters:

int   $sizeInCm   Font size (in centimeters)

[ Top ]

static method fontSizeToPixels [line 91]

static int fontSizeToPixels( [int $fontSizeInPoints = 12])

Calculate an (approximate) pixel size, based on a font points size

Calculate an (approximate) pixel size, based on a font points size




Tags:

return:  Font size (in pixels)
access:  public


Parameters:

int   $fontSizeInPoints   Font size (in points)

[ Top ]

static method inchSizeToPixels [line 101]

static int inchSizeToPixels( [int $sizeInInch = 1])

Calculate an (approximate) pixel size, based on inch size

Calculate an (approximate) pixel size, based on inch size




Tags:

return:  Size (in pixels)
access:  public


Parameters:

int   $sizeInInch   Font size (in inch)

[ Top ]


Documentation generated on Wed, 22 Apr 2009 08:58:29 +0200 by phpDocumentor 1.4.1