Problem with TCPDF and Sinhala unicode

475 views
Skip to first unread message

Niraj Yasitha

unread,
Jun 6, 2012, 5:04:36 AM6/6/12
to Sinhala...@googlegroups.com
Hi guys the recent i found this group is, Im haveing problem with displaying sinhala unicodes in tcpdf. I have changed the font to iskolapotha and did everything i knw but didn't work very well, it displays sinhala words but some time 'kombuwa, hal kirilla' not appear in proper places, any one who did any projects using stcpdf and sinhala ? 
Thank you.

--
Best Regards.
H N Yasitha

විශ්ව කුමාර

unread,
Mar 15, 2014, 5:53:15 AM3/15/14
to sinhala...@googlegroups.com, Sinhala...@googlegroups.com
I have run in to the same problem. Did you find any solution to this..

Dhanushka Gunasinghe

unread,
Mar 16, 2014, 11:01:12 AM3/16/14
to sinhala...@googlegroups.com
what is the device you use?
> --
> සිංහල යුනිකෝඩ් සමූහය - Sinhala Unicode Group.
> මෙම සමූහයට විද්‍යුත් තැපැල් පණිවුඩයක් එවීමට:
> Sinhala...@googlegroups.com
> දායකත්වයෙන් ඉවත්වීමට මෙම ලිපිනයට ලියන්න:
> Sinhala-Unico...@googlegroups.com
> වෙනත් විකල්ප සඳහා සමූහය වෙත එන්න:
> http://groups.google.com/group/Sinhala-Unicode?hl=si
> If you have trouble reading Sinhala Fonts, please visit
> http://si.wikipedia.org/wiki/Wikipedia:Sinhala_font for instructions.
> ---
> You received this message because you are subscribed to the Google Groups
> "සිංහල යුනිකෝඩ් සමූහය - Sinhala Unicode Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sinhala-unico...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
ධනුෂ්ක ගුණසිංහ.
DCSD(NIBM),HDCBIC(NIBM),BSc (MIS),MIT(UoC)
MBCS,MCSE,MCTS,CCNA
www.dhanushkasline.com
www.dhanushka4u.blogspot.com
www.facebook.com/dhanushkagunasinghe
www.twitter.com/Dhanushkapg
තක්ෂණික ගැටලු ඉදිරිපත් කරන්න:www.techkatha.com

tidalbobo

unread,
Mar 17, 2014, 1:19:56 AM3/17/14
to sinhala-unicode

Nayana Hettiarachchi

unread,
Apr 18, 2014, 3:29:43 AM4/18/14
to sinhala...@googlegroups.com
How can you solve the problem by changing character set to ISO-8859? Sinhala is unicode. Lithuanian  uses latin alphabet. The solution suggested for Lithuanian doesn't apply for Sinhala. 

tidalbobo

unread,
Apr 18, 2014, 3:40:18 AM4/18/14
to sinhala-unicode
The suggested solution in the SOF article is

......

TCPDF is quite tricky with utf8. Best way to achieve what you want is to embed the font in generated PDF file itself. You can use freeserif font from the TCPDF package, it contains all the utf8 symbols, shows absolutely any character of any language, but adds ~700kb to the output file. That's probably the easiest way to get symbols you need if file size doesn't matter.

You could also make your own font to embed, containing the characters you need. That's probably the best solution, keeping it universal and small in size, but is more complex.

Alternatively, you can relay on core fonts, which are taken from the system, and if not found, replaced by a substitute. This makes output file extremely light, but adds the necessity of font subsetting to obtain exotic chars. Personally I haven't had a success with this, so I still think embedding font is the best solution, which also happens to be more universal..

......

Reply all
Reply to author
Forward
0 new messages