Re: universal unicode font for reportlab

2008-09-12 Thread Tim Roberts
Duncan Booth <[EMAIL PROTECTED]> wrote: > >The not too scientific test I did was to copy the font embedding example >from the Reportlab documentation, modify it enough to make it actually >run, and then change the output to have only one glyph. The resulting >PDF is virtually identical. I'm not

Re: universal unicode font for reportlab

2008-09-11 Thread Duncan Booth
Duncan Booth <[EMAIL PROTECTED]> wrote: > I may have made some blindingly obvious beginners mistake I made the blindingly stupid beginners mistake of cleaning up the code before posting it and breaking it in the process. The 'if' should of course say: if len(sys.argv) > 1: However my origi

Re: universal unicode font for reportlab

2008-09-11 Thread Duncan Booth
Tim Roberts <[EMAIL PROTECTED]> wrote: > Duncan Booth <[EMAIL PROTECTED]> wrote: >> >>Laszlo Nagy <[EMAIL PROTECTED]> wrote: >> >>> I need to use HTML anyway. I realized that universal unicode fonts >>> are above 5MB in size. The report would be a 10KB PDF, but I need to >>> embed the font before

Re: universal unicode font for reportlab

2008-09-10 Thread Tim Roberts
Duncan Booth <[EMAIL PROTECTED]> wrote: > >Laszlo Nagy <[EMAIL PROTECTED]> wrote: > >> I need to use HTML anyway. I realized that universal unicode fonts are >> above 5MB in size. The report would be a 10KB PDF, but I need to embed >> the font before I can send it to anyone. Since some reports ne

Re: universal unicode font for reportlab

2008-09-10 Thread Ross Ridge
Duncan Booth <[EMAIL PROTECTED]> wrote: >I thought that usually when you embed a font in a PDF only the glyphs which >are actually used in the document get embedded. Unfortunately a quick test >with reportlab seems to show that it doesn't do that optimisation: it looks >as though it just embeds

Re: universal unicode font for reportlab

2008-09-10 Thread Duncan Booth
Laszlo Nagy <[EMAIL PROTECTED]> wrote: > I need to use HTML anyway. I realized that universal unicode fonts are > above 5MB in size. The report would be a 10KB PDF, but I need to embed > the font before I can send it to anyone. Since some reports needs to be > sent in emails, I need to use some

Re: universal unicode font for reportlab

2008-09-10 Thread Laszlo Nagy
Ross Ridge wrote: Terry Reedy <[EMAIL PROTECTED]> wrote: Sorry, I posted the wrong name. Ariel Unicode MS is the one that seems pretty complete. ... From the MS, I would guess that is a Windows font too ;-). It's made by Microsoft, but it's not a standard Windows font. I th

Re: universal unicode font for reportlab

2008-09-09 Thread Terry Reedy
Jeroen Ruigrok van der Werven wrote: -On [20080909 05:23], Terry Reedy ([EMAIL PROTECTED]) wrote: Ariel Unicode MS is the one that seems pretty complete. Not really. It misses a lot of characters. Well, it has Latin, Greek, Cyrillic, Hebrew, Arabic, several south Asian, Tibetan, CJK, Japa

Re: universal unicode font for reportlab

2008-09-09 Thread Ross Ridge
Terry Reedy <[EMAIL PROTECTED]> wrote: >Sorry, I posted the wrong name. >Ariel Unicode MS is the one that seems pretty complete. ... > From the MS, I would guess that is a Windows font too ;-). It's made by Microsoft, but it's not a standard Windows font. I think it comes with Microsoft Office.

Re: universal unicode font for reportlab

2008-09-09 Thread Jeroen Ruigrok van der Werven
-On [20080909 05:23], Terry Reedy ([EMAIL PROTECTED]) wrote: >Ariel Unicode MS is the one that seems pretty complete. Not really. It misses a lot of characters. Might I recommend using BabelMap (http://www.babelstone.co.uk/Software/BabelMap.html) so you can investigate your fonts? The only font

Re: universal unicode font for reportlab

2008-09-08 Thread jonathon
On Mon, Sep 8, 2008 at 01:51, Laszlo Nagy wrote: > possible to use UTF 8 strings but there is a problem with the font. Use Code2000 http://www.code2000.net/ xan jonathon -- http://mail.python.org/mailman/listinfo/python-list

Re: universal unicode font for reportlab

2008-09-08 Thread Terry Reedy
Ross Ridge wrote: Terry Reedy <[EMAIL PROTECTED]> wrote: My OpenOffice on WinXP uses a unicode font, I believe Lucida Sans Unicode, that seems to cover the entire BMP. Lucida Sans Unicode only covers a small subset of Unicode. It may seem to cover a wider range because Windows (and possibl

Re: universal unicode font for reportlab

2008-09-08 Thread Ross Ridge
Terry Reedy <[EMAIL PROTECTED]> wrote: >My OpenOffice on WinXP uses a unicode font, I believe Lucida Sans >Unicode, that seems to cover the entire BMP. Lucida Sans Unicode only covers a small subset of Unicode. It may seem to cover a wider range because Windows (and possibly OpenOffice) will au

Re: universal unicode font for reportlab

2008-09-08 Thread Terry Reedy
The simplest solution would be to use a font that is able to handle all encodings that I need. My OpenOffice on WinXP uses a unicode font, I believe Lucida Sans Unicode, that seems to cover the entire BMP. I don't know whether it was already installed or installed by OO or how one would get

Re: universal unicode font for reportlab

2008-09-08 Thread Laszlo Nagy
Iain Dalton wrote: Why don't you want to use multiple typefaces? Many programs that deal with multilingual strings use multiple fonts (cf. any Web browser and Emacs). You are right, but these PDF documents will show mixed strings. The end user can enter arbitrary strings into the database, a

Re: universal unicode font for reportlab

2008-09-08 Thread Laszlo Nagy
The GNU Unifont http://en.wikipedia.org/wiki/GNU_Unifont> http://unifoundry.com/unifont.html> covers an impressive range of the Unicode Basic Multilingual Plane. Unifont is originally a bitmap font, but was recently made available in TrueType format http://www.lgm.cl/trabajos/unifont/index.en

Re: universal unicode font for reportlab

2008-09-08 Thread Laszlo Nagy
Laszlo Nagy <[EMAIL PROTECTED]> writes: 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? The GNU Unifont http://en.wikipedia.org/wiki/GNU_Unifont> http:/

Re: universal unicode font for reportlab

2008-09-08 Thread Ben Finney
Laszlo Nagy <[EMAIL PROTECTED]> writes: > 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? The GNU Unifont http://en.wikipedia.org/wiki/GNU_Unifont> http://unifou

universal unicode font for reportlab

2008-09-08 Thread Laszlo Nagy
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 h