@ -462,20 +462,30 @@ public class FactoryProperties {
dealWithFontSizeOrTextIndent ( h , cprops , prop , key ) ;
dealWithFontSizeOrTextIndent ( h , cprops , prop , key ) ;
} else if ( key . equals ( Markup . CSS_KEY_FONTSTYLE ) ) {
} else if ( key . equals ( Markup . CSS_KEY_FONTSTYLE ) ) {
String ss = prop . getProperty ( key ) . trim ( ) . toLowerCase ( ) ;
String ss = prop . getProperty ( key ) . trim ( ) . toLowerCase ( ) ;
if ( ss . equals ( "italic" ) | | ss . equals ( "oblique" ) )
if ( ss . equals ( "italic" ) | | ss . equals ( "oblique" ) ) {
h . put ( "i" , null ) ;
h . put ( "i" , null ) ;
} else {
h . remove ( "i" ) ;
}
} else if ( key . equals ( Markup . CSS_KEY_FONTWEIGHT ) ) {
} else if ( key . equals ( Markup . CSS_KEY_FONTWEIGHT ) ) {
String ss = prop . getProperty ( key ) . trim ( ) . toLowerCase ( ) ;
String ss = prop . getProperty ( key ) . trim ( ) . toLowerCase ( ) ;
if ( ss . equals ( "bold" ) | | ss . equals ( "700" ) | | ss . equals ( "800" )
if ( ss . equals ( "bold" ) | | ss . equals ( "700" ) | | ss . equals ( "800" )
| | ss . equals ( "900" ) )
| | ss . equals ( "900" ) ) {
h . put ( "b" , null ) ;
h . put ( "b" , null ) ;
} else {
h . remove ( "b" ) ;
}
} else if ( key . equals ( Markup . CSS_KEY_TEXTDECORATION ) ) {
} else if ( key . equals ( Markup . CSS_KEY_TEXTDECORATION ) ) {
String ss = prop . getProperty ( key ) . trim ( ) . toLowerCase ( ) ;
String ss = prop . getProperty ( key ) . trim ( ) . toLowerCase ( ) ;
if ( ss . equals ( Markup . CSS_VALUE_UNDERLINE ) ) {
if ( ss . equals ( Markup . CSS_VALUE_UNDERLINE ) ) {
h . remove ( "s" ) ;
h . put ( "u" , null ) ;
h . put ( "u" , null ) ;
} else if ( ss . equals ( Markup . CSS_VALUE_LINETHROUGH ) ) {
} else if ( ss . equals ( Markup . CSS_VALUE_LINETHROUGH ) ) {
h . remove ( "u" ) ;
h . put ( "s" , null ) ;
h . put ( "s" , null ) ;
} else {
} else {
h . remove ( "u" ) ;
h . remove ( "s" ) ;
h . put ( key , ss ) ;
h . put ( key , ss ) ;
}
}
} else if ( key . equals ( Markup . CSS_KEY_COLOR ) ) {
} else if ( key . equals ( Markup . CSS_KEY_COLOR ) ) {