本文整理汇总了Java中sun.font.FontUtilities.isSolaris8方法的典型用法代码示例。如果您正苦于以下问题:Java FontUtilities.isSolaris8方法的具体用法?Java FontUtilities.isSolaris8怎么用?Java FontUtilities.isSolaris8使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sun.font.FontUtilities
的用法示例。
在下文中一共展示了FontUtilities.isSolaris8方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initReorderMapForSolaris
import sun.font.FontUtilities; //导入方法依赖的package包/类
private void initReorderMapForSolaris() {
/* Don't create a no-op entry, so we can optimize this case
* i.e. we don't need to do anything so can avoid slower paths in
* the code.
*/
// reorderMap.put("UTF-8", "latin-1");
reorderMap.put("UTF-8.hi", "devanagari"); // NB is in Lucida.
reorderMap.put("UTF-8.ja",
split("japanese-x0201,japanese-x0208,japanese-x0212"));
reorderMap.put("UTF-8.ko", "korean-johab");
reorderMap.put("UTF-8.th", "thai");
reorderMap.put("UTF-8.zh.TW", "chinese-big5");
reorderMap.put("UTF-8.zh.HK", split("chinese-big5,chinese-hkscs"));
if (FontUtilities.isSolaris8) {
reorderMap.put("UTF-8.zh.CN", split("chinese-gb2312,chinese-big5"));
} else {
reorderMap.put("UTF-8.zh.CN",
split("chinese-gb18030-0,chinese-gb18030-1"));
}
reorderMap.put("UTF-8.zh",
split("chinese-big5,chinese-hkscs,chinese-gb18030-0,chinese-gb18030-1"));
reorderMap.put("Big5", "chinese-big5");
reorderMap.put("Big5-HKSCS", split("chinese-big5,chinese-hkscs"));
if (! FontUtilities.isSolaris8 && ! FontUtilities.isSolaris9) {
reorderMap.put("GB2312", split("chinese-gbk,chinese-gb2312"));
} else {
reorderMap.put("GB2312","chinese-gb2312");
}
reorderMap.put("x-EUC-TW",
split("chinese-cns11643-1,chinese-cns11643-2,chinese-cns11643-3"));
reorderMap.put("GBK", "chinese-gbk");
reorderMap.put("GB18030",split("chinese-gb18030-0,chinese-gb18030-1"));
reorderMap.put("TIS-620", "thai");
reorderMap.put("x-PCK",
split("japanese-x0201,japanese-x0208,japanese-x0212"));
reorderMap.put("x-eucJP-Open",
split("japanese-x0201,japanese-x0208,japanese-x0212"));
reorderMap.put("EUC-KR", "korean");
/* Don't create a no-op entry, so we can optimize this case */
// reorderMap.put("ISO-8859-1", "latin-1");
reorderMap.put("ISO-8859-2", "latin-2");
reorderMap.put("ISO-8859-5", "cyrillic-iso8859-5");
reorderMap.put("windows-1251", "cyrillic-cp1251");
reorderMap.put("KOI8-R", "cyrillic-koi8-r");
reorderMap.put("ISO-8859-6", "arabic");
reorderMap.put("ISO-8859-7", "greek");
reorderMap.put("ISO-8859-8", "hebrew");
reorderMap.put("ISO-8859-9", "latin-5");
reorderMap.put("ISO-8859-13", "latin-7");
reorderMap.put("ISO-8859-15", "latin-9");
}