Transforms FONT tags to the proper form (SPAN with CSS styling)
This transformation takes the three proprietary attributes of FONT and transforms them into their corresponding CSS attributes. These are color, face, and size.
- Zu beachten
- Size is an interesting case because it doesn't map cleanly to CSS. Thanks to http://style.cleverchimp.com/font_size_intervals/altintervals.html for reasonable mappings.
- Warnung
- This doesn't work completely correctly; specifically, this TagTransform operates before well-formedness is enforced, so the "active formatting elements" algorithm doesn't get applied.
Definiert in Zeile 18 der Datei Font.php.
transform |
( |
|
$tag, |
|
|
|
$config, |
|
|
|
$context |
|
) |
| |
Initialisierung:= 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%'
)
array
Definiert in Zeile 28 der Datei Font.php.
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
Sie sind hier: Home » MyOOS Benutzerhandbuch » HTML Purifier
Korrekturen, Hinweise und Ergänzungen
Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag
Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.