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

    Helo,
    I am using the trial version of PD4ML(PHP wrapper). We are testing it out before purchasing the pro version. I have dumped all the font files that we are using in our report in the “/pd4ml/fonts” folder. I deleted the old “pd4fonts.properties” and the newly generated one looks like this:

    #this is an autogenerated file. please remove manually any references to copyrighted fonts
    #Mon Jul 26 06:03:36 IST 2010
    Gotham Bold=Gotham-Bold.ttf
    Gotham Bold Italic=Gotham-BoldItalic.ttf
    Gotham Book=Gotham-Book.ttf
    Gotham Book Italic=Gotham-BookItalic.ttf
    KaiTi_GB2312=SIMKAI.TTF
    MicrogrammaDBolExt=microgbe.ttf
    MicrogrammaDMedExt=microgme.ttf
    Myriad Pro=MyriadPro-Regular.otf
    Myriad Pro Black=MyriadPro-Black.otf
    Myriad Pro Black Italic=MyriadPro-BlackIt.otf
    Myriad Pro Bold=MyriadPro-Bold.otf
    Myriad Pro Bold Condensed=MyriadPro-BoldCond.otf
    Myriad Pro Bold Condensed Italic=MyriadPro-BoldCondIt.otf
    Myriad Pro Bold Italic=MyriadPro-BoldIt.otf
    Myriad Pro Condensed=MyriadPro-Cond.otf
    Myriad Pro Condensed Italic=MyriadPro-CondIt.otf
    Myriad Pro Italic=MyriadPro-It.otf
    Myriad Pro Light=MyriadPro-Light.otf
    Myriad Pro Light Italic=MyriadPro-LightIt.otf
    Myriad Pro Semibold=MyriadPro-Semibold.otf
    Myriad Web Bold=MYRIADB.TTF
    font.dir.location=..\fonts\

    Note: I had about 25 different fonts in my dir, but only 20 were listed in the properties file (some .otf and .dfont fonts were skipped, not sure why?!)

    My test.php using the various font is as below:







    Hello World in MicrogrammaDBolExt!!

    Hello World in MicrogrammaDMedExt!!

    Hello World in Myriad Pro Semibold!!

    Hello World in Gotham Bold!!

    Hello World in Gotham Bold Italic!!

    Hello World in Gotham Book!!

    Hello World in Gotham Book Italic!!

    Hello World in Myriad Pro!!

    Hello World in Myriad Pro Black!!

    Hello World in Myriad Pro Black Italic!!

    Hello World in Myriad Pro Bold!!

    Hello World in Myriad Pro Bold Condensed!!

    Hello World in Myriad Pro Bold Condensed Italic!!

    Hello World in Myriad Pro Bold Italic!!

    Hello World in Myriad Pro Condensed!!

    Hello World in Myriad Pro Condensed Italic!!

    Hello World in Myriad Pro Italic!!

    Hello World in Myriad Pro Light!!

    Hello World in Myriad Pro Light Italic!!

    Hello World in Myriad Pro Semibold!!

    Hello World in Myriad Web Bold!!


    However in the o/p file I can only see the first two fonts being displayed(MicrogrammaDBolExt, MicrogrammaDMedExt). The rest of them (containing spaces in the font names) were ignored. Not sure if I am using the font name right, I am simply pasting the name as available in the properties file. I even tried deleting the last line “font.dir.location=..\fonts\” from the properties file, but no change.

    Please advise.

    #28115

    In HTML you do not need to escape spaces with backslashes. So try to remove all backslashes from face attribute values.
    Now:

    Should be:

    #28116

    Thanks for your help!

    Did that already, din’t help much, some text started appearing in bold, and some in Italic randomly, not the o/p we expected. I put that way with the backslashes deliberately ‘coz I thought the script considered the exact font-name “as is” in the properties file – desperate measure – but din’t work out!

    Please if someone can help us with this; we are really looking forward to buying the paid version.

    @Guest wrote:

    In HTML you do not need to escape spaces with backslashes. So try to remove all backslashes from face attribute values.
    Now:

    Should be:

    #28117

    1. PD4ML supports TTF and OTF fonts. OTFs from Win32 distribution are ok, but there are “third-party” OTFs for some reasons not supported by Java (in the case they are skipped in pd4fonts.properties). Usually it helps to open such OTF file in FontForge application and save as TTF. FontForge is an open source tool for UNIX/Linux platform, which is also available for Win32 as “fontforge-mingw”

    2. refers to Myriad Pro Light in pd4fonts.properties. refers to Myriad Pro Light Italic, refers to Myriad Pro Light Bold. Also refers to Myriad Pro Light Bold even if there is no tags around. Probably it can explain some oddities with font styles you faced with.

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

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