Hi!

>What happens if you change HtmlTagMap and set another default font
>like is done in this code snippet:
>peer = new HtmlPeer(ElementTags.PHRASE, HtmlTags.CODE);
>peer.addValue(MarkupTags.CSS_FONT, FontFactory.COURIER);
>put(peer.getAlias(), peer);

the problem ist:
this would override the values i set in the html document.

i used this code for my test
        peer = new HtmlPeer(ElementTags.PARAGRAPH, HtmlTags.PARAGRAPH);
        peer.addAlias(ElementTags.ALIGN, HtmlTags.ALIGN);
          peer.addValue(MarkupTags.CSS_FONT, FontFactory.TIMES_BOLD);
        put(peer.getAlias(), peer);


if i do so li, h1, h2 ... tags will still have helvetica as their default
font.

micha


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to