Location: PHPKode > projects > Html2ps > html2ps-2.0.43/css.font-style.inc.php
<?php

class CSSFontStyle extends CSSSubFieldProperty {
  function default_value() {
    return FS_NORMAL;
  }

  function parse($value) {
    $value = trim(strtolower($value));
    switch ($value) {
    case 'inherit':
      return CSS_PROPERTY_INHERIT;
    case 'normal':
      return FS_NORMAL;
    case 'italic':
      return FS_ITALIC;
    case 'oblique':
      return FS_OBLIQUE;
    };
  }

  function get_property_code() {
    return CSS_FONT_STYLE;
  }

  function get_property_name() {
    return 'font-style';
  }

}

?>
Return current item: Html2ps