@@ 631-633 (lines=3) @@ | ||
628 | static $fs = array('0'=>'xx-small', '1'=>'xx-small', '2'=>'small', '3'=>'medium', '4'=>'large', '5'=>'x-large', '6'=>'xx-large', '7'=>'300%', '-1'=>'smaller', '-2'=>'60%', '+1'=>'larger', '+2'=>'150%', '+3'=>'200%', '+4'=>'300%'); |
|
629 | if($e == 'font'){ |
|
630 | $a2 = ''; |
|
631 | if(preg_match('`face\s*=\s*(\'|")([^=]+?)\\1`i', $a, $m) or preg_match('`face\s*=(\s*)(\S+)`i', $a, $m)){ |
|
632 | $a2 .= ' font-family: '. str_replace('"', '\'', trim($m[2])). ';'; |
|
633 | } |
|
634 | if(preg_match('`color\s*=\s*(\'|")?(.+?)(\\1|\s|$)`i', $a, $m)){ |
|
635 | $a2 .= ' color: '. str_replace('"', '\'', trim($m[2])). ';'; |
|
636 | } |
|
@@ 634-636 (lines=3) @@ | ||
631 | if(preg_match('`face\s*=\s*(\'|")([^=]+?)\\1`i', $a, $m) or preg_match('`face\s*=(\s*)(\S+)`i', $a, $m)){ |
|
632 | $a2 .= ' font-family: '. str_replace('"', '\'', trim($m[2])). ';'; |
|
633 | } |
|
634 | if(preg_match('`color\s*=\s*(\'|")?(.+?)(\\1|\s|$)`i', $a, $m)){ |
|
635 | $a2 .= ' color: '. str_replace('"', '\'', trim($m[2])). ';'; |
|
636 | } |
|
637 | if(preg_match('`size\s*=\s*(\'|")?(.+?)(\\1|\s|$)`i', $a, $m) && isset($fs[($m = trim($m[2]))])){ |
|
638 | $a2 .= ' font-size: '. str_replace('"', '\'', $fs[$m]). ';'; |
|
639 | } |