Browse Source

Pull request #14017: REPORT-115178 fix:模板主题管理显示被截断

Merge in DESIGN/design from ~OBO/design:release/11.0 to release/11.0

* commit '27d6723338b61a754ef58dd5e90bd00ed4e3fa13':
  REPORT-115178 fix:模板主题管理显示被截断
release/11.0
Obo-王学仁 6 months ago
parent
commit
1be2e2a221
  1. 2
      designer-base/src/main/java/com/fr/design/utils/DesignUtils.java

2
designer-base/src/main/java/com/fr/design/utils/DesignUtils.java

@ -345,7 +345,7 @@ public class DesignUtils {
@Override @Override
protected FRFont compute() { protected FRFont compute() {
FRFont guiFRFont; FRFont guiFRFont;
Locale defaultLocale = Locale.getDefault(); Locale defaultLocale = GeneralContext.getLocale();
// JDK9 之后宋体在计算label中字母的空间上出现问题,暂时先用雅黑兼容,以后再统一字体 // JDK9 之后宋体在计算label中字母的空间上出现问题,暂时先用雅黑兼容,以后再统一字体
if (StableUtils.getMajorJavaVersion() >= 9 && OperatingSystem.isWindows()) { if (StableUtils.getMajorJavaVersion() >= 9 && OperatingSystem.isWindows()) {
guiFRFont = getNamedFont("Microsoft YaHei"); guiFRFont = getNamedFont("Microsoft YaHei");

Loading…
Cancel
Save