From 068fc7f2e81178e55fa191a13709af64b1a163f6 Mon Sep 17 00:00:00 2001
From: EricsHu <hrr145632>
Date: 星期一, 05 十二月 2022 14:27:43 +0800
Subject: [PATCH] 处理编码

---
 src/main/java/com/qxueyou/scc/org/util/CourseMarketUtils.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/qxueyou/scc/org/util/CourseMarketUtils.java b/src/main/java/com/qxueyou/scc/org/util/CourseMarketUtils.java
index d01a5ef..72731bb 100644
--- a/src/main/java/com/qxueyou/scc/org/util/CourseMarketUtils.java
+++ b/src/main/java/com/qxueyou/scc/org/util/CourseMarketUtils.java
@@ -11,7 +11,7 @@
 
 
 /**
- * 课程超市工具类
+ * 璇剧▼瓒呭競宸ュ叿绫�
  * @author xiadehu
  *
  */
@@ -25,7 +25,7 @@
 	 */
 	public static BufferedImage drawPng(char letter,Color bgColor){
 		
-		//初始化画布
+		//鍒濆鍖栫敾甯�
 		int width=120;
 		int height = 120;
 		BufferedImage image = new BufferedImage(width, height,     BufferedImage.TYPE_INT_RGB);
@@ -34,7 +34,7 @@
 		g2d.dispose();
 		g2d = image.createGraphics();
 		 
-		//背景
+		//鑳屾櫙
 		g2d.setColor(bgColor);
 		g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
 		double centerX = width/2;
@@ -44,11 +44,11 @@
 		circle.setFrameFromCenter(centerX, centerY, centerX + radius, centerY+ radius);
 		g2d.fill(circle);
 		
-		//文字
+		//鏂囧瓧
 		g2d.setColor(new Color(255,255,255));
 		int textSize = 64;
 		
-		Font font = new Font("微软雅黑", Font.PLAIN, textSize);
+		Font font = new Font("寰蒋闆呴粦", Font.PLAIN, textSize);
 		g2d.setFont(font);
 		FontMetrics metrics = g2d.getFontMetrics();
 		
@@ -57,7 +57,7 @@
 		
 		g2d.drawString(String.valueOf(letter), x, y);
 		
-		//释放
+		//閲婃斁
 		g2d.dispose();
 		
 		return image;

--
Gitblit v1.8.0