From 6e2660120e6b4ce93bb06e907d9c2d313581a476 Mon Sep 17 00:00:00 2001 From: xiaxiang <1438003374@qq.com> Date: Thu, 31 Mar 2016 10:35:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9F=A9=E6=96=87=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- designer_base/src/com/fr/design/utils/DesignUtils.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/designer_base/src/com/fr/design/utils/DesignUtils.java b/designer_base/src/com/fr/design/utils/DesignUtils.java index 61b71e8595..f048578d91 100644 --- a/designer_base/src/com/fr/design/utils/DesignUtils.java +++ b/designer_base/src/com/fr/design/utils/DesignUtils.java @@ -247,7 +247,11 @@ public class DesignUtils { //默认语言(中文:宋体, 英文:Tahoma, 其他:Dialog) guiFRFont = getNamedFont("SimSun"); if (!guiFRFont.canDisplay(displayChar)) { - FRContext.getLogger().error(Inter.getLocText("FR-Base_SimSun_Not_Found")); + //比如想在中文或英文系统里用韩文设计器 + guiFRFont = getNamedFont("Dialog"); + if(!guiFRFont.canDisplay(displayChar)) { + FRContext.getLogger().error(Inter.getLocText("FR-Base_SimSun_Not_Found")); + } } } @@ -266,7 +270,8 @@ public class DesignUtils { return ComparatorUtils.equals(defaultLocale, Locale.TRADITIONAL_CHINESE) || ComparatorUtils.equals(defaultLocale, Locale.JAPANESE) || ComparatorUtils.equals(defaultLocale, Locale.JAPAN) - || ComparatorUtils.equals(defaultLocale, Locale.KOREAN); + || ComparatorUtils.equals(defaultLocale, Locale.KOREAN) + || ComparatorUtils.equals(defaultLocale, Locale.KOREA); } /**