Font rendering

  • Hi,

    I'm evaluating WPViewPDF and I've many font rendering problems. After a sight in forum I noticed to put zlib1.dll & wp_type1ttf.dll in my application directory with wPDFViewDemo02.dll v. 2.53.0.0.

    My PDF use theses fonts :
    - FuturaHvBT,Italic Type: TrueType
    - Helvetica Type: Type1 | Real font : ArialMT, real font type : TrueType
    - Helvetica-Bold Type: Type1 | Real font : Arial-BoldMT, real font type : TrueType
    - Helvetica-BoldOblique Type: Type1 | Real font : Arial-BoldItalicMT, real font type : TrueType
    - Tahoma,Bold Type: TrueType
    - Times-Bold Type: Type1 | Real font : TimesNewRomanPS-BoldMT, real font type : TrueType
    - Times-Italic Type: Type1 | Real font : TimesNewRomanPS-ItalicMT, real font type : TrueType

    Only Futura font was rendering OK on bold but not Helvetica. This document was printed with PDFCreator and Helvetica was really Arial in original FastReport designer (with or without Bold and/ or Italic style).

    I tried :
    WPViewPDF1.CommandStr(COMPDF_SETFONTFOLDER, 'C:\Program Files\Adobe\Reader 9.0\Resource\Font\PFM');
    WPViewPDF1.CommandStr(COMPDF_SETCMAPFOLDER, 'C:\Program Files\Adobe\Reader 9.0\Resource\CMap');

    and

    WPViewPDF1.CommandStr(COMPDF_SETFONTFOLDER, 'C:\Windows\Fonts');

    without success, maybe I made errors in use of theses functions ?

    Any ideas ?

    With another PDF document with only Arial fonts and mixed font styles directly export to PDF by FastReport the rendering was quite perfect (instead of margin problems, maybe due to demo watermark ?)

    Best regards - Cyril

    • Offizieller Beitrag

    Hi,

    the Adobe fonts are copyrighted - esspecially helvetica is here a problem. Acrobat Reader also does not anymore install those fonts, they are embedded into the EXE. Some versions ago, the files were installed.

    IF the adobe fonts would be on the drive, the setfolder command would help. But they are not in the windows directory.

    So Arial or Frutiger is used as replacement.

    Julian