Package tech.mgl.core.utils
Class MGL_FontUtils
java.lang.Object
tech.mgl.core.utils.MGL_FontUtils
- Author:
- www.mgl.tech
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfontToImage(String str, Color color, Font font, File outFile) static voidfontToImage(String str, Font font, Color color, File outFile, double scaleX, double scaleY) static voidfontToImage(String str, Font font, File outFile) static Font随机获取字体static FontgetRandomFont(int fontSize) 随机获取字体static void
-
Constructor Details
-
MGL_FontUtils
public MGL_FontUtils()
-
-
Method Details
-
fontToImage
- Parameters:
str-font-outFile-- Throws:
Exception- 参数
-
fontToImage
- Parameters:
str-color-font-outFile-- Throws:
Exception- 参数
-
fontToImage
public static void fontToImage(String str, Font font, Color color, File outFile, double scaleX, double scaleY) throws Exception - Parameters:
str-font-color-outFile-- Throws:
Exception- 参数
-
getRandomFont
随机获取字体- Returns:
- Font
-
getRandomFont
随机获取字体- Parameters:
fontSize- fontSize- Returns:
- Font
-
main
-