Benoit Maisonny wrote: > 2010/5/18 Hussein Shafie <[email protected] <mailto:[email protected]>> > > [Sorry but the previous answer had too many typos.] > > Henry Mok wrote: > > I have a question about the character tool. When I look at the options > > in the character tool, there are a lot of characters that look like > > blocks. Why is this? > > Because the font used by the Character tool does not contain glyphs for > all the Unicode characters. When this is the case, the missing glyph is > replaced by a small rectangle. > > > How does XXE selects the font used by the Character tool? >
Internally, the Character tools uses the "Serif 14pt" logical Java font, simply because we have found it [1] to have a lot of glyphs [2] to be legible on screen. > One of my users reported that, on Windows, some characters that are > unprintable according to Unicode were displayed by the Character tool > and the styled view as printable characters. > For example, 0x96 and 97 > were shown as en- and em-dash. These characters were "correctly" encoded > in the XML file by XXE, so they quite logically didn't make it into the > final PDF document (appeared as empty rectangle). The problem you report is a Java[tm] problem, and not an XXE problem. The "Serif 14pt" *logical* Java font is not supposed to show you en-dash and em-dash glyphs for the U+0096 and U+0097 Unicode code points. > My assumption is that the Character tool and styled view use some > default system font (in Windows) which has incorrect Unicode mapping > (for that user, at least), but I haven't verified that. > > > > > > Is this something that can be customized? > > Currently the answer is no. > > > Do you mean we can't change that font? Even by changing the default font > set in Java's font.properties? Modifying Java's font.properties of course influences what is displayed using the "Serif 14pt" logical font. > It would be nice if that tool could use the same font as the one used > where the caret is located, but this may be difficult with more than 1 > styled view. The Character tool is just a *character* *picker*. It does not pretend to be WYSIWYG. Functionally, we could replace it by a facility letting the user type the numerical Unicode code point of a character.[*] What it displays is not directly related to what you'll see in the styled view (which uses its own set of fonts) or what you'll get when you convert the document to HTML or PDF (which uses its own set of fonts). --- [*] Handy alternative: command insertCharByName ( http://www.xmlmind.com/xmleditor/_distrib/doc/commands/insertCharByName.html ). By default this command is bound to the "Esc n" keystrokes ( http://www.xmlmind.com/xmleditor/_distrib/doc/quickrefcard/quickrefcard-A4.pdf ). -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

