From: Tony G. <Ton...@Su...> - 2003-04-16 01:00:49
|
Jesper Stigberg wrote at 15 Apr 2003 22:41:01 +0200: > Tony Graham wrote: ... > > As an aside, I'm pleased that pangogp can render Thai and Arabic, > > which pangopdflib can't. > > Because of PDFLib? Yes. Thai and Arabic have context-dependent glyphs. The GNOME Print backend uses GNOME Print glyphlists, so there's no problem. The PDFlib backend has to map glyphs back to glyph names in the Adobe Glyph List (AGL) (and not the current AGL version, at that). When a font doesn't use a glyph name from the supported AGL version, PDFlib can't cope. > > On the downside, pangogp can't do CJK, which > > pangopdflib can (if you only use the standard Adobe fonts). Can your > > Win32 screen renderer handle non-Roman scripts? > > I haven't tried yet, but I don't think there should be any problems thats not > solvable. That's good. I've since found problems with both my Arabic and Thai implementations. I'm using the pangoft2topgm program from the Pango examples directory and lines from HELLO.utf8 as my benchmark for script support. ... > > Where do you also need to add fo_doc_begin_path/fo_doc_end_path in > > area-to-pdf.c? > > > > Surounding the 'function calls'/figures that should be part of the path > > fo_doc_begin_path(...); > .... > fo_doc_move_to(...); > fo_doc_line_to(...); > .... > fo_doc_end_path(...); > > fo_doc_fill_stroke(...); > > or did I misunderstand you? That is what I asked, thank you. > To be frank, I have just implemented fo_doc_{begin,end}_page, > fo_doc_translate, fo_doc_move_to etc and concentrated on pango to > see if I can get the text layout correctly (well, I did > fo_doc_line_to for debugging), so I haven't really given it enough > thought (will post a suggestion/patch when I have). So you have both a new FoDoc variant and a new Pango backend variant? Or just a FoDoc variant for the Win32 backend of Pango? Regards, Tony Graham ------------------------------------------------------------------------ XML Technology Center - Dublin Sun Microsystems Ireland Ltd Phone: +353 1 8199708 Hamilton House, East Point Business Park, Dublin 3 x(70)19708 |