The comment for MarkupParser.parseAttributes() says that the string passed
in should be of the form:

        'key1="value1"; key2="value2";... keyN="valueN" '

However, the nested string tokenizers parse first on ';' then on ':'.  The
latter should be '=', no?

This is called from FontFactory.getFont().  In that method an attribute of
MarkupTags.STYLE is checked for which in turn leads to checking for
MarkupTags.CSS_* attributes.  However, MarkupTags.STYLE is check for again
later in the method as well.  Perhaps the first tag should be
MarkupTags.CSS_<something>?

One other question, there is a MarkupParser.parseFont().  Should that method
be called instead of MarkupParser.parseAttributes()?

So, back to my original question:  How do I properly specify a font of Times
New Roman, size of 12, italic?

<phrase
    style="font-family:Times New Roman; font-size:12.0; font-style:italic"
    >
    blah blah blah
</phrase>

Although the Times New Roman phrase does not work, the size and style do.



_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to