Prev
Name
ExcelExplorer Manual Next
Size


EEFont::Height

(ExcelExplorer 4.0)

Get font height (size).

integer Height(  )
Parameters
None
Description

Returns font height (size), in logical twips. Same as Size().

Convertion to other units can be done using one of the following methods:

Print font size used in HTML/CSS assuming 10-point font size is used.


<?php


$font 
$ee->Font(0);
if( 
$font ) {
  echo 
"<STYLE>\n";

  
$height $font->Height();

  echo 
'.font1 {font-size: '.$ee->Helper()->Tw2Pt($height).'pt}';
  echo 
"\n";
  echo 
'.font2 {font-size: '.$ee->Helper()->Tw2In($height).'in}';
  echo 
"\n";

  echo 
"</STYLE>\n";
}

?>

Will output:

<STYLE>
.font1 {font-size: 10pt}
.font2 {font-size: 0.138in}
</STYLE>

 
Prev
Name
Home
Up
Next
Size

 
© 2002-2009 EEPHP.com
All Rights Reserved.