lib/ezpdf/classes/class.ezpdf.php
function lineHeight( $options = array() )
    {
        if ( is_array( $options ) && isset( $options['size'] ) )
        {
            $size = $options['size'];
        }
        else
        {
            $size = $this->ez['fontSize'];
        }

        if ( is_array( $options ) && isset( $options['leading'] ) )
        {   // use leading instead of spacing
            $height = $options['leading'];
        }
        else if ( is_array( $options ) && isset( $options['spacing'] ) )
        {
            $height = $this->getFontHeight( $size ) * $options['spacing'];
        }
        else
        {
            $height = $this->getFontHeight( $size );
        }

        return $height;
    }
function lineHeight( $options = array() )
    {
        if ( is_array( $options ) && isset( $options['size'] ) )
        {
            $size = $options['size'];
        }
        else
        {
            $size = $this->ez['fontSize'];
        }

        if ( is_array( $options ) && isset( $options['leading'] ) )
        {   // use leading instead of spacing
            $height = $options['leading'];
        }
        else if ( is_array( $options ) && isset( $options['spacing'] ) )
        {
            $height = $this->getFontHeight( $size ) * $options['spacing'];
        }
        else
        {
            $height = $this->getFontHeight( $size );
        }

        return $height;
    }
function lineHeight ( $ options = array ( ) ) { if ( is_array ( $ options ) && isset ( $ options [ 'size' ] ) ) { $ size = $ options [ 'size' ] ; } else { $ size = $ this -> ez [ 'fontSize' ] ; } if ( is_array ( $ options ) && isset ( $ options [ 'leading' ] ) ) { // use leading instead of spacing $ height = $ options [ 'leading' ] ; } else if ( is_array ( $ options ) && isset ( $ options [ 'spacing' ] ) ) { $ height = $ this -> getFontHeight ( $ size ) * $ options [ 'spacing' ] ; } else { $ height = $ this -> getFontHeight ( $ size ) ; } return $ height ; }
Get current line height
Get current line height