Unicode characters in DynaPDFMBS

  1. 5 weeks ago

    Jeff T

    Jul 21 Pre-Release Testers Midlands of England, Europe

    Creating a mostly text PDF

    Sample code from MBS follows:

    call pdf.SetFont "Arial", pdf.kfsNone, fsz, true, pdf.kcpunicode
    call pdf.WriteFTextEx 100, 200, 500, -1, pdf.ktaCenter, "Arial with Unicode: ďĎéÉěĚíÍňŇóÓřŘšŠťŤúÚůŮžŽ"

    This works.

    But text of mine holding a character of unicode &u2B08 always shows up as squares

    ↖︎

    It works in a text file under Arial and Helvetica on my Mac.
    Anyone know how to make it show up properly in a PDF?

    The text itself is several paragraphs. Some parts of it can be user generated.
    One user has pasted in this character as part of their text.
    Throughout my processing I added DefineEncodings as UTF8, and the character is visible as correct in the debugger before it is inserted into the PDF using WriteFTextEx as above.

  2. Christian S

    Jul 22 Pre-Release Testers, Xojo Pro, XDC Speakers Germany

    Does it work, if you use Helvetica as font? Or Arial Unicode?

    I fear the character may not be available in the regular Arial font and font substitution is coming with DynaPDF 5 version.

  3. Jeff T

    Jul 22 Pre-Release Testers Midlands of England, Europe

    I've tried both.
    It displays correctly in Textedit using Helvetica (and most other fonts) , but not within the body of a PDF

or Sign Up to reply!