【发布时间】:2012-10-25 03:33:25
【问题描述】:
使用 java.awt.font 时是否可以增加字母间距? 像这样的:
Font font = new Font("serif", Font.PLAIN, 21);
//Increase the spacing - perhaps with deriveFont()?
BufferedImage image = new BufferedImage(400, 600, BufferedImage.TYPE_INT_RGB);
Graphics2D graphics = image.createGraphics();
graphics.setFont(font);
graphics.drawString("testing",0,0);
【问题讨论】: