Skip to content

Commit 60cb9f8

Browse files
committed
๐Ÿ› fix: ๋‚˜๋ˆ” ํฐํŠธ๋กœ ์ˆ˜์ •
1 parent 4b72988 commit 60cb9f8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

โ€Žapp-maple-stamp-api/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ ARG JAR_FILE=build/libs/app-maple-stamp-api-0.0.1-SNAPSHOT.jar
99
ARG CONTAINER_JAR_FILE=app-maple-stamp-api.jar
1010
COPY ${JAR_FILE} ${CONTAINER_JAR_FILE}
1111

12+
RUN apt-get update && apt-get -y upgrade && apt-get install -y fonts-nanum* && fc-cache -fv
13+
1214
EXPOSE 9000
1315

1416
# Spring Boot๋ฅผ ์‹คํ–‰ํ•˜๊ธฐ ์œ„ํ•œ entry point ์ง€์ •

โ€Žapp-maple-stamp-api/src/main/java/com/mapletrend/appmaplestampapi/service/StampService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ public byte[] createStampImage(JSONObject jsonObject) {
4949
graphics2D.fillRect(0, 0, 600, 200);
5050

5151
int fontSize = 30;
52-
graphics2D.setFont(new Font("Liberation Sans", Font.BOLD, fontSize));
52+
graphics2D.setFont(new Font("Nanum", Font.BOLD, fontSize));
5353
graphics2D.setColor(Color.black);
5454
graphics2D.drawString(invenNickname, 30, 60);
5555

56-
graphics2D.setFont(new Font("Liberation Sans", Font.PLAIN, 20));
56+
graphics2D.setFont(new Font("Nanum", Font.PLAIN, 20));
5757
graphics2D.drawString("๋ ˆ๋ฒจ: " + formattedCharacterLevel, 30, 100);
5858
graphics2D.drawString("์ „ํˆฌ๋ ฅ: " + formattedBattlePower, 30, 130);
5959
graphics2D.drawString("์œ ๋‹ˆ์˜จ: " + formattedUnionLevel, 30, 160);
6060

61-
Font detailsFont = new Font("Liberation Sans", Font.PLAIN, 12);
61+
Font detailsFont = new Font("Nanum", Font.PLAIN, 12);
6262
graphics2D.setFont(detailsFont);
6363
// Calculate position for the text
6464
FontMetrics metrics = graphics2D.getFontMetrics(detailsFont);
@@ -81,7 +81,7 @@ public byte[] createStampImage(JSONObject jsonObject) {
8181
String watermarkText = invenNickname;
8282

8383
// Set watermark properties
84-
graphics2D.setFont(new Font("Liberation Sans", Font.PLAIN, watermarkFontSize));
84+
graphics2D.setFont(new Font("Nanum", Font.PLAIN, watermarkFontSize));
8585
graphics2D.setColor(new Color(0, 0, 0, 128));
8686
graphics2D.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.3f));
8787

0 commit comments

Comments
ย (0)