Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26951

    I am testing the Pro Trial version with font “Ming(for ISO10646)”. I added the font in the mapping file but the exported PDF showed “?” for chinese characters.

    From the debug info, noticed that it was looking for the mapping of the mingliu font. So, I added the mapping for mingliu pointing to the ttf file of Ming(for ISO646). Upon export, the chinese characters were exported properly. But the english characters using ming iso font were using a default font I think. Is it hardcoded that chinese characters use mingliu font?

    From the html, all the text were inside a span element with style=”font-family: Ming(for ISO10646); font-size: 12pt;”

    Also, please advise if there is a plan to support TTC files. In the mapping, we can use “mingliu.ttf=ming.ttc,0”, the number is the index of the font in the ttc file.

    #29578

    I would recommend to generate pd4font.properties automates, as described by

    http://pd4ml.com/reference.htm#7.1
    pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html
    http://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm

    It should create correct mapping, including for TTF collections (.ttc).

    I am not 100% sure if ‘(‘ and ‘)’ does not confuse in font names. Probably it is a good idea to rename the font in the .properties from “Ming(for ISO10646)” to “MingISO10646″ and refer it from the HTML/CSS like

    style=”font-family: MingISO10646; font-size: 12pt;”

    If after that it still does not work, please collect the debug output and send (or publish it here) to support pd4ml com. The font file, source HTML and resulting PDF would help a lot if you send it as an attachment as well.

    #29579

    Thank you for your reply. It worked after updating to remove ‘()’ from the font name in the input html and mapping file. With this, will the PD4ML library be updated such cases? Thanks.

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

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.