编程语言
首页 > 编程语言> > java – 设置JXL自定义字体

java – 设置JXL自定义字体

作者:互联网

如何在JXL中添加自定义字体?除了默认提供的那个?

public static final FontName ARIAL = new FontName("Arial");
public static final FontName TIMES = new FontName("Times New Roman");
public static final FontName COURIER = new FontName("Courier New");
public static final FontName TAHOMA = new FontName("Tahoma");

FontName类似乎是WritableFont类中的私有静态内部类.如何添加除了那里提到的字体之外的字体?

问候,
一个Y.

解决方法:

 WritableFont(WritableFont.FontName fn, int ps)
      Constructs of font of the specified face and of size given by the specified point size

here

标签:java,fonts,jxl,jexl
来源: https://codeday.me/bug/20190709/1411393.html