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)

Constants

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

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

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

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 getCharsetFromFontName [line 144]

static int getCharsetFromFontName( string $name)

Returns the associated charset for the font name.

Returns the associated charset for the font name.




Tags:

return:  Character set code
access:  public


Parameters:

string   $name   Font name

[ Top ]

static method inchSizeToPixels [line 124]

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 ]


Class Constants

CHARSET_ANSI_ARABIC =  0xB2

[line 52]


[ Top ]

CHARSET_ANSI_BALTIC =  0xBA

[line 53]


[ Top ]

CHARSET_ANSI_CHINESE_SIMIPLIFIED =  0x86

[line 46]


[ Top ]

CHARSET_ANSI_CHINESE_TRADITIONAL =  0x88

[line 47]


[ Top ]

CHARSET_ANSI_CYRILLIC =  0xCC

[line 54]


[ Top ]

CHARSET_ANSI_GREEK =  0xA1

[line 48]


[ Top ]

CHARSET_ANSI_HEBREW =  0xB1

[line 51]


[ Top ]

CHARSET_ANSI_JAPANESE_SHIFTJIS =  0x80

[line 43]


[ Top ]

CHARSET_ANSI_KOREAN_HANGUL =  0x81

[line 44]


[ Top ]

CHARSET_ANSI_KOREAN_JOHAB =  0x82

[line 45]


[ Top ]

CHARSET_ANSI_LATIN =  0x00

[line 39]

Character set codes used by BIFF5-8 in Font records

Character set codes used by BIFF5-8 in Font records



[ Top ]

CHARSET_ANSI_LATIN_II =  0xEE

[line 56]


[ Top ]

CHARSET_ANSI_THAI =  0xDE

[line 55]


[ Top ]

CHARSET_ANSI_TURKISH =  0xA2

[line 49]


[ Top ]

CHARSET_ANSI_VIETNAMESE =  0xA3

[line 50]


[ Top ]

CHARSET_APPLE_ROMAN =  0x4D

[line 42]


[ Top ]

CHARSET_OEM_LATIN_I =  0xFF

[line 57]


[ Top ]

CHARSET_SYMBOL =  0x02

[line 41]


[ Top ]

CHARSET_SYSTEM_DEFAULT =  0x01

[line 40]


[ Top ]



Documentation generated on Mon, 10 Aug 2009 08:04:23 +0200 by phpDocumentor 1.4.1