WordPress.org

Forums

VoucherPress
Cyrillic symbols don't show (6 posts)

  1. qnub
    Member
    Posted 4 years ago #

    If i try to place cyrillic text into voucher then in PDF i have only question marks instead of cyrillic symbols.

    http://wordpress.org/extend/plugins/voucherpress/

  2. Chris Taylor
    Member
    Plugin Author

    Posted 4 years ago #

    Looks like unicode is needed, I'll investigate this for a future version.

  3. Cidx
    Member
    Posted 4 years ago #

    Have the same problem (v.1.4). Cyrillic works fine everywhere except the preview and voucher pdf. Can you point to the code where the voucher is created? Maybe I will be able to fix it.

  4. Cidx
    Member
    Posted 4 years ago #

    Ok, looks like I fixed it.

    In function "voucherpress_render_voucher" I changed the font from:

    $pdf->SetFont($voucher->font, '', XX);

    to something like this:

    $pdf->SetFont('freeserif', '', XX);

    and cyrillic appeared in pdf.

  5. qnub
    Member
    Posted 4 years ago #

    DejaVu fonts also good, but you need to place it into fonts directory

  6. Chris Taylor
    Member
    Plugin Author

    Posted 3 years ago #

    The next version of VoucherPress will have better support for fonts, including the DejaVu font family.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • VoucherPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic