设置 JXL 自定义字体

var*_*321 5 java fonts jxl jexl

如何在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");
Run Code Online (Sandbox Code Playgroud)

该类FontName似乎是类private static内部的内部类WritableFont。除了那里提到的字体之外,如何添加字体?

问候,A Y.

Rac*_*len 0

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

这里