Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27062

    When i try to use JSP and Adding other languages.I can’t set UTF-8 Encoding in JSP , I can’t read Tahoma (Thai languages) ,And Servlet can’t open PDF ,
    our problem , if i will buy pd4ml PRO , it’s work better and solve this problem right ?

    #29859

    If you open tahoma.ttf in any of font viewer tools (i.e Cahacter Map on Win platform), you can see it does not define Thai glyphs.

    For code like กกก PD4ML (as any web browser) looks for a similar font substitution, which can render Thai.

    Below are substitution tables used by PD4ML. As far as I know Microsoft Sans Serif (micross.ttf) supports Thai.
    You need to register Microsoft Sans Serif under any of names from sansFallback to let the font substitutions happen.

    For example, define in pd4fonts.properties
    Arial=micross.ttf

    [language=java:2n43dq0p]private static String[] serifFallback = new String[] {
    “Times New Roman”,
    “MS Mincho”,
    “MingLiU”,
    “SimSun”,
    “Mangal”,
    “David”,
    “Batang”,
    “Wingdings”,
    “Symbol”,
    “Lucida Sans Regular”,
    };

    private static String[] sansFallback = new String[] {
    “Arial”,
    “MS Gothic”,
    “MingLiU”,
    “SimSun”,
    “Mangal”,
    “David”,
    “Gulim”,
    “Wingdings”,
    “Symbol”,
    “Lucida Sans Regular”,
    };

    private static String[] monoFallback = new String[] {
    “Courier New”,
    “MS Gothic”,
    “MingLiU”,
    “SimSun”,
    “Mangal”,
    “David”,
    “GulimChe”,
    “Wingdings”,
    “Symbol”,
    “Lucida Sans Regular”,
    };[/language:2n43dq0p]

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Troubleshooting’ is closed to new topics and replies.