【问题标题】:Set Font type to Futura in Java在 Java 中将字体类型设置为 Futura
【发布时间】:2014-03-29 19:20:31
【问题描述】:

一切都很好,只是它不会在图片上打印 Futura Font 只是一个默认的字体

 BufferedImage image = ImageIO.read(new File("image.jpeg"));
            Graphics g =image.getGraphics();
            g.setFont(new Font("Futura", Font.PLAIN, 45));
            g.drawString("Hello", 100, 440);

            ImageIO.write(image, "png", new File("test.png"));

【问题讨论】:

    标签: java fonts


    【解决方案1】:

    也许这会有所帮助:)

    new font type in java

    还有这个:How to use Open Type Fonts in Java?

    在第一个链接上关注链接

    【讨论】:

      猜你喜欢
      • 2012-10-27
      • 1970-01-01
      • 2020-03-02
      • 2010-11-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-02
      • 1970-01-01
      相关资源
      最近更新 更多