// XDIME/PAPI element, as they do not need to add anything to it.
// Thus, if, for example, a 'font' element has been added it will not
// disturb these renderers.
// font-weight
ElementOnlyStyleEmulationPropertyRenderer fontWeightRenderer =
new ElementOnlyStyleEmulationPropertyRenderer(
new DefaultFontWeightEmulationPropertyRenderer());
styleEmulationPropertyRendererSelector.register(
StylePropertyDetails.FONT_WEIGHT,
fontWeightRenderer);
// font-style
ElementOnlyStyleEmulationPropertyRenderer fontStyleRenderer =
new ElementOnlyStyleEmulationPropertyRenderer(
new DefaultFontStyleEmulationPropertyRenderer());
styleEmulationPropertyRendererSelector.register(
StylePropertyDetails.FONT_STYLE,
fontStyleRenderer);
// font-size
ElementOnlyStyleEmulationPropertyRenderer fontSizeRenderer =
new ElementOnlyStyleEmulationPropertyRenderer(
new WMLFontSizeEmulationPropertyRenderer());
styleEmulationPropertyRendererSelector.register(
StylePropertyDetails.FONT_SIZE,
fontSizeRenderer);