javafontsjxljexl

Setting JXL custom Font


How to add custom fonts in JXL? Apart from the one's available by default?

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");

The FontName class appears to be a private static internal class inside of the WritableFont class. How can I add fonts apart from the one mentioned there?

Regards, A Y.


Solution

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

    see here