Indic printing - it works in Mozilla

I was thinking of using the PostScript backend of Cairo for getting complex text to render properly in the PS outputs from Firefox, and hence I downloaded the latest source from CVS. ..and guess what - it has been already implemented!! Mozilla can now print Indic properly. Check out this Postscript file obtained from Firefox (using print to file).

I supplied the following arguments to the configure script:

--prefix=/opt --enable-default-toolkit=cairo-gtk2 --enable-cairo --enable-pango --enable-application=browser --enable-xprint

…and in case anyone is wondering how I figured out that the magic is being done by cairo - here are the first few lines in the postscript file:

%%Creator: cairo (
%%CreationDate: Sat Sep 9 12:28:52 2006
%%Pages: 1
%%BoundingBox: 0 0 595 841
%%DocumentData: Clean7Bit
%%LanguageLevel: 2
/C{curveto}bind def
/F{fill}bind def
/G{setgray}bind def
/L{lineto}bind def
/M{moveto}bind def
/P{closepath}bind def
/R{setrgbcolor}bind def
/S{show}bind def
% _cairo_ps_surface_emit_font_subsets
% _cairo_ps_surface_emit_truetype_font_subset