wPDF and CreateFontIndirect issue

  • Hi,

    I have downloaded wPDF 3 evaluation version.

    When I wan to print out the text with the font created
    by the function: CreateFontIndirect
    text doesn't appear on the page but when i set just common font's properties available in TCanvas class everything works.

    Is it a problem with such API calls?
    Can anything be done to use API methods?

    Thanks

  • Hi,
    could you please give ma a hint in the following example:

    I am creating the MetaFile, Font and set it on the canvas:

    FFontHdl := CreateFont(0, LFontWidth, 0, 0, 0, 0,
    0, 0, DEFAULT_CHARSET,
    OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, FIXED_PITCH, PChar(FONT_NAME));

    The problem is that, in EMF file the report is ok, but when i draw it
    on the pdf canvas (via DrawMetafile) the text using this font doesn't appear
    unless i set the Height parameter in CreateFont procedure.

    Could you please tell me how I could calculate the height parameter for this procedure?

    normally for font's width = 30 the height parameter should be -73.
    (600 dpi, Courier New font).