473,386 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

reportlab - ttf justify

hi,

i'm working with reportlab since a couple of weeks and i managed to
create quite nice pdfs...
there is a little problem though. since i have to create english and
russian content, i use the utf8 support of registered ttf's. the only
thing is that it does not support the justify-alignment in paragraph
flowables!
is there a way to fix that?

thanks alot
jm
Jan 19 '06 #1
3 1778
maeckle wrote:
hi,

i'm working with reportlab since a couple of weeks and i managed to
create quite nice pdfs...
there is a little problem though. since i have to create english and
russian content, i use the utf8 support of registered ttf's. the only
thing is that it does not support the justify-alignment in paragraph
flowables!
is there a way to fix that?

thanks alot
jm


Hi, you'll get better response from the reportlab-users list at

http://two.pairlist.net/mailman/list...eportlab-users

The ttf support has been significantly improved in an svn branch. re-ask on that
list giving your current version.

I believe the problem with ttf justification was related to using space as a
splitting character in dynamically subsetted fonts. Someone posted a fix for
that problem to the users list and I think that has gone in to the code now, but
I'm not sure if it is on the stable branch or not.
--
Robin Becker

Jan 19 '06 #2
Robin Becker schrieb:
maeckle wrote:
hi,

i'm working with reportlab since a couple of weeks and i managed to
create quite nice pdfs...
there is a little problem though. since i have to create english and
russian content, i use the utf8 support of registered ttf's. the only
thing is that it does not support the justify-alignment in paragraph
flowables!
is there a way to fix that?

thanks alot
jm


Hi, you'll get better response from the reportlab-users list at

http://two.pairlist.net/mailman/list...eportlab-users

The ttf support has been significantly improved in an svn branch. re-ask
on that list giving your current version.

I believe the problem with ttf justification was related to using space
as a splitting character in dynamically subsetted fonts. Someone posted
a fix for that problem to the users list and I think that has gone in to
the code now, but I'm not sure if it is on the stable branch or not.


thank you, that helped me alot!

cheers
jm
Jan 19 '06 #3
hi,

no success at the reportlab-users list.

i also applied the 'spaces patch to fix para splitting'-patch but it's
still not justifying the text...

is there an other solution?

thanks alot!!
jm
maeckle wrote:
hi,

i'm working with reportlab since a couple of weeks and i managed to
create quite nice pdfs...
there is a little problem though. since i have to create english and
russian content, i use the utf8 support of registered ttf's. the only
thing is that it does not support the justify-alignment in paragraph
flowables!
is there a way to fix that?

thanks alot
jm


Hi, you'll get better response from the reportlab-users list at

http://two.pairlist.net/mailman/list...eportlab-users

The ttf support has been significantly improved in an svn branch.
re-ask on that list giving your current version.

I believe the problem with ttf justification was related to using
space as a splitting character in dynamically subsetted fonts. Someone
posted a fix for that problem to the users list and I think that has
gone in to the code now, but I'm not sure if it is on the stable
branch or not.


thank you, that helped me alot!

cheers
jm

Jan 30 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Precedo | last post by:
ReportLab is happy to announce that it is a major sponsor of the XML Conference 2003, taking place in Philadelphia PA on December 7th to 12th. We'd love to see friends and associates of...
3
by: Andreas Jung | last post by:
Reportlab has some problems with creating PDFs from UTF8 encoded text. For this reason they are using a truetype font rina.ttf which looks *very ugly*. Does anyone know of a suitable free...
0
by: Robin Becker | last post by:
Version 1.19 of the ReportLab Toolkit has been released. Fixes from Max Neunhöffer (pyRXP) and Peter Borocz (pdfmetrics). ReportLab graphics now has some 3D charts. Support for True Type Fonts in...
4
by: Active8 | last post by:
I did this once and can't remember how <blush> so I read the reportlab user guid. It says to unzip the reportlab archive - this is on w2k, BTW, with Python23 - to a directory and make a file...
2
by: Rajarshi Guha | last post by:
Hi, I've been using pdflatex to dump ranges of pages from a PDF file via Python. However, I was looking at the Reportlab toolkit and was wondering if this operation would be possible using this...
4
by: Méta-MCI | last post by:
Hi! I try to generate PDF from Python 2.5 + ReporLab_lib, and, I have: C:\Python25\reportlab\pdfbase\ttfonts.py:407: DeprecationWarning: struct integer overflow masking is deprecated...
2
by: Chuck | last post by:
I have been trying all day to get this to work. My complete code is below. I can get my text into the PDF, I can get my image in the PDF. What I can't get to work is frames so that the image (logo)...
16
by: Laszlo Nagy | last post by:
I need to create multi lingual invoices from reportlab. I think it is possible to use UTF 8 strings but there is a problem with the font. I could not find any free TTF font that can do latin1,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.