[reportlab-users] Hebrew font

Robin Becker robin at reportlab.com
Wed Jun 11 12:54:55 EDT 2014


On 11/06/2014 15:54, Arkadi Colson wrote:
> Hi
>
> I'm using the Cyberbit.ttf font but the Hebrew text is printed backwards on the
> pdf. Anybody any idea? Is there some kind of option somewhere?
>
> Thx!
>
>
.......

we have some support for RTL text in the latest releases. Currently this 
requires the extension pyfribidi2. Also you'll need to set the rl_settings.py 
rtlSupport value to 1 using one or more of the methods for doing that eg the 
values come from

	reportlab.rl_settings.py
	reportlab.local_rl_settings.py
	reportlab_settings.py or ~/.reportlab_settings

	later values override earlier
......

On top of all that for full fribidi interaction behaviour you need paragraph 
styles to have wordWrap='LTR' or 'RTL'.

If that's not bad enough the current implementation is applied too late so the 
widths used for positioning at the right margin are wrong so we end up with 
badly positioned paragraphs. Additionally I only have a working dll for 
pyfribidi with 32bit python 2.7.

This is a work in progress.
-- 
Robin Becker


More information about the reportlab-users mailing list