lib/ezpdf/classes/class.ezpdftable.php
function addToPreStack( $options=array() )
    {
        $currentElement = array();

        $prevElement = array_pop( $this->PreStack );

        if ( isset( $options['justification'] ) )
        {
            $currentElement['justification'] = $options['justification'];
        }
        else
        {
            $currentElement['justification'] = $prevElement['justification'];
        }

        if ( isset( $options['fontSize'] ) )
        {
            $currentElement['fontSize'] = $options['fontSize'];
        }
        else
        {
            $currentElement['fontSize'] = $prevElement['fontSize'];
        }

        if ( isset( $options['fontName'] ) )
        {
            $currentElement['fontName'] = $options['fontName'];
        }
        else
        {
            $currentElement['fontName'] = $prevElement['fontName'];
        }

        if ( isset( $options['cmyk'] ) )
        {
            $currentElement['cmyk'] = $options['cmyk'];
        }
        else
        {
            $currentElement['cmyk'] = $prevElement['cmyk'];
        }

        $this->PreStack[] = $prevElement;
        $this->PreStack[] = $currentElement;
    }
function addToPreStack( $options=array() )
    {
        $currentElement = array();

        $prevElement = array_pop( $this->PreStack );

        if ( isset( $options['justification'] ) )
        {
            $currentElement['justification'] = $options['justification'];
        }
        else
        {
            $currentElement['justification'] = $prevElement['justification'];
        }

        if ( isset( $options['fontSize'] ) )
        {
            $currentElement['fontSize'] = $options['fontSize'];
        }
        else
        {
            $currentElement['fontSize'] = $prevElement['fontSize'];
        }

        if ( isset( $options['fontName'] ) )
        {
            $currentElement['fontName'] = $options['fontName'];
        }
        else
        {
            $currentElement['fontName'] = $prevElement['fontName'];
        }

        if ( isset( $options['cmyk'] ) )
        {
            $currentElement['cmyk'] = $options['cmyk'];
        }
        else
        {
            $currentElement['cmyk'] = $prevElement['cmyk'];
        }

        $this->PreStack[] = $prevElement;
        $this->PreStack[] = $currentElement;
    }
function addToPreStack ( $ options = array ( ) ) { $ currentElement = array ( ) ; $ prevElement = array_pop ( $ this -> PreStack ) ; if ( isset ( $ options [ 'justification' ] ) ) { $ currentElement [ 'justification' ] = $ options [ 'justification' ] ; } else { $ currentElement [ 'justification' ] = $ prevElement [ 'justification' ] ; } if ( isset ( $ options [ 'fontSize' ] ) ) { $ currentElement [ 'fontSize' ] = $ options [ 'fontSize' ] ; } else { $ currentElement [ 'fontSize' ] = $ prevElement [ 'fontSize' ] ; } if ( isset ( $ options [ 'fontName' ] ) ) { $ currentElement [ 'fontName' ] = $ options [ 'fontName' ] ; } else { $ currentElement [ 'fontName' ] = $ prevElement [ 'fontName' ] ; } if ( isset ( $ options [ 'cmyk' ] ) ) { $ currentElement [ 'cmyk' ] = $ options [ 'cmyk' ] ; } else { $ currentElement [ 'cmyk' ] = $ prevElement [ 'cmyk' ] ; } $ this -> PreStack [ ] = $ prevElement ; $ this -> PreStack [ ] = $ currentElement ; }
function for adding font specification to PreStack array

Possible $options setting:
- justification
- fontSize
- fontName
function for adding font specification to PreStack array