Problem exporting arabic text to PDF

edited June 2011 in Devices
Hi,

We're using RB12.04 with Delphi 2009.
Some of our customers are in the middle east and are creating reports in
arabic. These reports preview fine in Report Builder, but when they try
to export them to PDF they get the error "VerifyUnicodeFont: No Font
Found". This seems unusual as the same font has just been used to render
the text in preview. The GlyphsPresent() function seems to be what's
responsible as it ends up with 65535 as one of the index values which is
then rejected when it tests for this towards the end. However, if I
change the call to GetGlyphIndices so that it doesn't set unrecognised
glyphs to 65535, the report will PDF but just contains garbage, and if I
inspect the aText parameter in GlyphsPresent, that too contains garbage,
so I wonder if the text is even reaching that function "intact" as it were.

I've pasted a sample of the arabic text below, but if it doesn't display
correctly in the news group please email me and I'll send it to you. I
have no idea what it says.

??????????
?????: ?????????
1) ?????? ????????. 2) ?????? ????????. 3) ??????
?????????. 4) ?????? ????????.
??????: ???????
1) ??? ?? ????? ????????.
2) ?????? ???????? ??? ???.
3) ?????? ?????? ?? ??????? ?????? ?????? ????????.
????????
* ???? ??? ??? ?? ??? ???? ?? ??????? ??????? ???????? .
* ????? ??? ????? ????? ?????.
* ???? ??? ???? ???????? ??????? ?????.
????????
* ???? ??? ??? ??????? ????????? ?? ????? ??????.
* ????? ??? ???????? ???????? ???? ???????.
* ???? ??? ????? ????????? ?????? ?????.
????????
* ???? ?? ??????? ??? ???????? ????????? ??????????.
* ???? ?? ??????? ??? ????? ?????? ?????? ??? ????? ???

Thanks,

Steve Branley
WCBS Ltd

Comments

This discussion has been closed.