mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-12 14:39:49 +00:00
8244324: RTFEditorKit does not display some of Japanese characters correctly
Reviewed-by: serb, psadhukhan
This commit is contained in:
parent
911c553cd2
commit
5fbac4a34c
@ -133,6 +133,7 @@ class RTFReader extends RTFParser
|
||||
static boolean useNeXTForAnsi = false;
|
||||
static {
|
||||
characterSets = new Hashtable<String, char[]>();
|
||||
defineCharacterSet("ansicpg", latin1TranslationTable);
|
||||
}
|
||||
|
||||
/* TODO: per-font font encodings ( \fcharset control word ) ? */
|
||||
@ -487,6 +488,11 @@ public boolean handleKeyword(String keyword, int parameter)
|
||||
keyword.equals("private"))
|
||||
ignoreGroupIfUnknownKeywordSave = true;
|
||||
|
||||
if (keyword.contains("ansicpg")) {
|
||||
setCharacterSet("ansicpg");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (rtfDestination != null) {
|
||||
if(rtfDestination.handleKeyword(keyword, parameter))
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user