Beispiel #1
0
  private Phrase doEncode(String nowBy) {

    BaseFont bf;
    Font font = null;
    Phrase p = null;
    try {

      bf = BaseFont.createFont("MHei-Medium", "UniCNS-UCS2-H", BaseFont.NOT_EMBEDDED);
      font = new Font(bf, 10, 0);
      p = new Phrase(nowBy, font);

    } catch (Exception e) {

      e.printStackTrace();
    }
    return p;
  }