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 46]

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

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

[ Top ]

static method fontSizeToPixels [line 75]

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 ]


Documentation generated on Mon, 05 Jan 2009 20:37:13 +0100 by phpDocumentor 1.4.1