From 15e7e4aba90f05c6204043b7f886eec6e12a59fb Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 4 Jul 2017 19:10:49 +0200 Subject: [PATCH] Moved font stuff to it's own util class --- src/dorkbox/notify/NotifyPopup.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dorkbox/notify/NotifyPopup.java b/src/dorkbox/notify/NotifyPopup.java index 654b7d6..32dc818 100644 --- a/src/dorkbox/notify/NotifyPopup.java +++ b/src/dorkbox/notify/NotifyPopup.java @@ -48,6 +48,7 @@ import dorkbox.tweenengine.TweenCallback; import dorkbox.tweenengine.TweenEquations; import dorkbox.tweenengine.TweenManager; import dorkbox.util.ActionHandlerLong; +import dorkbox.util.FontUtil; import dorkbox.util.Property; import dorkbox.util.ScreenUtil; import dorkbox.util.SwingUtil; @@ -283,7 +284,7 @@ class NotifyPopup extends JFrame { g2.fillRect(0, 0, WIDTH, HEIGHT); // Draw the title text - Font titleTextFont = SwingUtil.parseFont(TITLE_TEXT_FONT); + Font titleTextFont = FontUtil.parseFont(TITLE_TEXT_FONT); g2.setColor(titleText_FG); g2.setFont(titleTextFont); g2.drawString(notification.title, 5, 20); @@ -301,7 +302,7 @@ class NotifyPopup extends JFrame { } // Draw the main text - Font mainTextFont = SwingUtil.parseFont(MAIN_TEXT_FONT); + Font mainTextFont = FontUtil.parseFont(MAIN_TEXT_FONT); String notText = notification.text; int length = notText.length(); StringBuilder text = new StringBuilder(length);