PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) General questions / FAQ loading verdana and georgia ttf not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26667

    Pd4ml api is right now defaulting the generated pdf to Times New Roman fonttype.

    I just want Verdana and Georgia fontype (.ttf) to be used while generating the pdf. The PD4ML demo jar code I am using is as below:

    PD4ML pd4ml = new PD4ML();
    pd4ml.useTTF(“/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/fonts”,true)
    pd4ml.setDefaultTTFs(“Verdana”, “Georgia”);
    pd4ml.enableDebugInfo();

    pd4fonts.properties file present in System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/fonts directory has following contents:

    .Keyboard=Keyboard.ttf
    Georgia=georgia.ttf
    Verdana=verdana.ttf

    Please let me know if I am missing anything obvious since I have the required .ttf files in the above directory. Any help would be appreciated.

    #28835

    First, make sure you use PD4ML Pro.

    pd4ml.enableDebugInfo() API call forces PD4ML to output diagnostic info to STDOUT or server’s log. Please publish here what it writes or send to support pd4ml com

    #28836

    following your advices , logs show us the font was not read,the font is loaded when the “font-family” property is read in our css, so we had fix our problem.

    Thanks for answer.

    #28837

    Glad you solved the problem!

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

The forum ‘General questions / FAQ’ is closed to new topics and replies.