473,597 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1796
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
1129
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 ReportLab there. You can register online at http://www.xmlconference.org/xmlusa/2003/ - and Public Expo passes are still free if you're quick (deadline Dec. 1st).
3
5296
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 available truetype font that works with UTF8? -aj
0
1120
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 renderPM. Henning von Bargen's LongTables optimisation. Marc Stober's underline fixes. Restored/improved platypus layout error detection. New platypus FlexFigure flowable. ReportLab is now mostly jython compatible, but Python-2.3 no longer...
4
5369
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 called reportlab.pth in the pythod dir. The only line in this file is supposed to be the path to the reportlib dir. Then I'm instructed to open the ... ok I'll close and reopen ... the python cmd line interpreter and type import reportlab
2
1366
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 toolkit as well. Admittedly, I have'nt read the documentation in detail, but I was wondering if anybody could provide any pointers to extracting pages from a PDF via Python without using pdflatex Thanks, Rajarshi
4
1744
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 stm.write(pack(">LLL", checksum, offset, len(data))) C:\Python25\reportlab\pdfbase\ttfonts.py:419: DeprecationWarning: struct integer overflow masking is deprecated stm.write(pack('>L', checksum))
2
7484
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) appears to the right of the text. The image always appears first and then the text below on the next line. Please help. Chuck
16
8633
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, latin2, arabic, chinese and other languages at the same time. Is there a single font that is able to handle these languages? (Most of our invoices will be for EN, FR, DE, HU, SK, CZ, RO but some of them needs to be in Chinese.) Thanks, Laszlo
0
8267
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8024
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8258
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5844
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5423
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3921
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2394
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1229
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.