From 4ed057c2d1ee1d6e37416e22dda08b7e84be2675 Mon Sep 17 00:00:00 2001 From: hzzz Date: Fri, 25 Aug 2017 14:38:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E6=95=B0=E5=BA=A6=E9=87=8F=20->=20?= =?UTF-8?q?=E5=B0=8F=E6=95=B0=E5=BA=A6=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/com/fr/design/foldablepane/HeaderPane.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/designer_base/src/com/fr/design/foldablepane/HeaderPane.java b/designer_base/src/com/fr/design/foldablepane/HeaderPane.java index eebac2af5..f0d19ee39 100644 --- a/designer_base/src/com/fr/design/foldablepane/HeaderPane.java +++ b/designer_base/src/com/fr/design/foldablepane/HeaderPane.java @@ -1,10 +1,12 @@ package com.fr.design.foldablepane; import com.fr.design.constants.UIConstants; +import com.fr.design.gui.syntax.ui.rsyntaxtextarea.RSyntaxUtilities; import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; +import java.util.Map; /** * Created by MoMeak on 2017/7/5. @@ -61,6 +63,10 @@ public class HeaderPane extends JPanel { g2d.fillRect(0, 0, headWidth, headHeight); g2d.setFont(new Font("SimSun", 0, fontSize)); g2d.setPaint(bgColor); + Map desktopHints = RSyntaxUtilities.getDesktopAntiAliasHints(); + if (desktopHints != null) { + g2d.setRenderingHints(desktopHints); + } g2d.drawString(this.title, TITLE_X, headHeight - fontSize / 2 - 1); int leftWdith = headWidth - LEFT_X; if (this.isShow) {