Menu

#80 Encode Text Error for special language chars

0.1.2.1
closed-rejected
nobody
None
9
2015-07-26
2015-07-14
Andrea M.F.
No

Dear,
when call ShowText and pass Russian text in Cyrillic like this "ИН",
pdfclow call Fonts.cs:public byte[] Encode

ByteArray code = codes.GetKey(textCode); //textcode = 1048

it returns null and call :
code = codes.GetKey(defaultCode); //defultCode = 63 '?' char

I think pdfclown doesn't have the cyrillic key in fonts file.
Ps: We have used Helvetica and Times but the results its the same.

Thanks in advice

Discussion

  • Stefano Chizzolini

    If you used StandardType1 fonts like Helvetica and Times, be aware that those fonts are latin-based (no cyrillic characters). Otherwise, please inspect your fonts to verify whether they actually support those characters.

     
  • Andrea M.F.

    Andrea M.F. - 2015-07-15

    How can i use another fonts in pdf ?
    Shall i include into the source code resources or can i link an external font ? (how..)

     
  • Stefano Chizzolini

    • status: open --> closed-rejected
     

Log in to post a comment.

MongoDB Logo MongoDB