PHPExcel_Shared_Font
category | PHPExcel |
---|---|
package | PHPExcel_Shared |
copyright | Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) |
calculateColumnWidth(\PHPExcel_Style_Font $font, \PHPExcel_RichText | string $cellText, integer $rotation, \PHPExcel_Style_Font $defaultFont) : integer
integer
Rotation angle
integer
Column widthcentimeterSizeToPixels(int $sizeInCm) : int
int
Font size (in centimeters)
int
Size (in pixels)fontSizeToPixels(int $fontSizeInPoints) : int
int
Font size (in points)
int
Font size (in pixels)getAutoSizeMethod() : string
string
getCharsetFromFontName(string $name) : int
string
Font name
int
Character set codegetDefaultColumnWidthByFont(\PHPExcel_Style_Font $font, boolean $pPixels) : mixed
boolean
true = return column width in pixels, false = return in OOXML units
mixed
Column widthgetDefaultRowHeightByFont(\PHPExcel_Style_Font $font) : float
getTextWidthPixelsApprox(string $columnText, \PHPExcel_Style_Font $font, int $rotation) : int
string
\PHPExcel_Style_Font
int
int
Text width in pixels (no padding added)getTextWidthPixelsExact(string $text, \PHPExcel_Style_Font $font, int $rotation) : int
string
\PHPExcel_Style_Font
int
\PHPExcel_Exception |
---|
int
getTrueTypeFontFileFromFont(\PHPExcel_Style_Font $font) : string
getTrueTypeFontPath() : string
string
inchSizeToPixels(int $sizeInInch) : int
int
Font size (in inch)
int
Size (in pixels)setAutoSizeMethod(string $pValue) : boolean
string
boolean
Success or failuresetTrueTypeFontPath(string $pValue)
There should be a trailing slash. Typical locations on variout some platforms:
string
$defaultColumnWidths : array
$_autoSizeMethods
$autoSizeMethod : string
$trueTypeFontPath : string
ARIAL
ARIAL_BOLD
ARIAL_BOLD_ITALIC
ARIAL_ITALIC
AUTOSIZE_METHOD_APPROX
AUTOSIZE_METHOD_EXACT
CALIBRI
CALIBRI_BOLD
CALIBRI_BOLD_ITALIC
CALIBRI_ITALIC
CHARSET_ANSI_ARABIC
CHARSET_ANSI_BALTIC
CHARSET_ANSI_CHINESE_SIMIPLIFIED
CHARSET_ANSI_CHINESE_TRADITIONAL
CHARSET_ANSI_CYRILLIC
CHARSET_ANSI_GREEK
CHARSET_ANSI_HEBREW
CHARSET_ANSI_JAPANESE_SHIFTJIS
CHARSET_ANSI_KOREAN_HANGUL
CHARSET_ANSI_KOREAN_JOHAB
CHARSET_ANSI_LATIN
CHARSET_ANSI_LATIN_II
CHARSET_ANSI_THAI
CHARSET_ANSI_TURKISH
CHARSET_ANSI_VIETNAMESE
CHARSET_APPLE_ROMAN
CHARSET_OEM_LATIN_I
CHARSET_SYMBOL
CHARSET_SYSTEM_DEFAULT
COMIC_SANS_MS
COMIC_SANS_MS_BOLD
COURIER_NEW
COURIER_NEW_BOLD
COURIER_NEW_BOLD_ITALIC
COURIER_NEW_ITALIC
GEORGIA
GEORGIA_BOLD
GEORGIA_BOLD_ITALIC
GEORGIA_ITALIC
IMPACT
LIBERATION_SANS
LIBERATION_SANS_BOLD
LIBERATION_SANS_BOLD_ITALIC
LIBERATION_SANS_ITALIC
LUCIDA_CONSOLE
LUCIDA_SANS_UNICODE
MICROSOFT_SANS_SERIF
PALATINO_LINOTYPE
PALATINO_LINOTYPE_BOLD
PALATINO_LINOTYPE_BOLD_ITALIC
PALATINO_LINOTYPE_ITALIC
SYMBOL
TAHOMA
TAHOMA_BOLD
TIMES_NEW_ROMAN
TIMES_NEW_ROMAN_BOLD
TIMES_NEW_ROMAN_BOLD_ITALIC
TIMES_NEW_ROMAN_ITALIC
TREBUCHET_MS
TREBUCHET_MS_BOLD
TREBUCHET_MS_BOLD_ITALIC
TREBUCHET_MS_ITALIC
VERDANA
VERDANA_BOLD
VERDANA_BOLD_ITALIC
VERDANA_ITALIC