T
Ted Hopp
I've used TextAttribute.CHAR_REPLACEMENT to insert in-line graphics into
text by applying it to the Unicode character U+FFFC
(OBJECT_REPLACEMENT_CHARACTER). But all the layout, measurement, bidi
analysis, etc. seems to work the same if the underlying character is
anything else.
So my question is: when I apply the CHAR_REPLACEMENT attribute to a
character, does it matter at all what character it is? Do all JVMs behave
the same in this area?
The Java documentation isn't exactly clear. The description of
TextAttribute.CHAR_REPLACEMENT ends with the following strange sentence:
"Follows the Microsoft model: the character that this is applied to should
be ?." That seems to say that I should have been using a question mark all
along instead of U+FFFC. But isn't that contrary to the Unicode standard?
Thanks,
Ted Hopp
(e-mail address removed)
text by applying it to the Unicode character U+FFFC
(OBJECT_REPLACEMENT_CHARACTER). But all the layout, measurement, bidi
analysis, etc. seems to work the same if the underlying character is
anything else.
So my question is: when I apply the CHAR_REPLACEMENT attribute to a
character, does it matter at all what character it is? Do all JVMs behave
the same in this area?
The Java documentation isn't exactly clear. The description of
TextAttribute.CHAR_REPLACEMENT ends with the following strange sentence:
"Follows the Microsoft model: the character that this is applied to should
be ?." That seems to say that I should have been using a question mark all
along instead of U+FFFC. But isn't that contrary to the Unicode standard?
Thanks,
Ted Hopp
(e-mail address removed)