ImageIo外部字体导入
使用反射获取外部字体即可
public static void main(String[] args) throws IOException {
//画板
BufferedImage i = new BufferedImage(400, 400, 2);
//画笔
var m = i.createGraphics();
//平滑度
m.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_GASP);
m.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
m.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, Rende
ImageIo外部字体导入最先出现在Python成神之路。
共有 0 条评论