Files
luos/thirdparty/html2ps_pdf/css.font-style.inc.php
Paula Quispe 9eb7d6cac2 HOR-2689
2017-08-03 17:00:30 -04:00

32 lines
527 B
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 getPropertyCode() {
return CSS_FONT_STYLE;
}
function getPropertyName() {
return 'font-style';
}
}
?>