< prev index next >
src/java.desktop/share/classes/sun/font/CMap.java
Print this page
rev 59106 : imported patch client
*** 232,262 ****
else if (three3 != 0) {
cmap = createCMap(cmapBuffer, three3,
getConverterMap(GBKEncoding));
}
else if (three4 != 0) {
- /* GB2312 TrueType fonts on Solaris have wrong encoding ID for
- * cmap table, these fonts have EncodingID 4 which is Big5
- * encoding according the TrueType spec, but actually the
- * fonts are using gb2312 encoding, have to use this
- * workaround to make Solaris zh_CN locale work. -sherman
- */
- if (FontUtilities.isSolaris && font.platName != null &&
- (font.platName.startsWith(
- "/usr/openwin/lib/locale/zh_CN.EUC/X11/fonts/TrueType") ||
- font.platName.startsWith(
- "/usr/openwin/lib/locale/zh_CN/X11/fonts/TrueType") ||
- font.platName.startsWith(
- "/usr/openwin/lib/locale/zh/X11/fonts/TrueType"))) {
- cmap = createCMap(cmapBuffer, three4,
- getConverterMap(GBKEncoding));
- }
- else {
cmap = createCMap(cmapBuffer, three4,
getConverterMap(Big5Encoding));
}
- }
else if (three5 != 0) {
cmap = createCMap(cmapBuffer, three5,
getConverterMap(WansungEncoding));
}
else if (three6 != 0) {
--- 232,244 ----
< prev index next >