From owner-freebsd-gnome@FreeBSD.ORG Fri Jan 29 02:22:08 2010 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93176106566C for ; Fri, 29 Jan 2010 02:22:08 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 710B48FC25 for ; Fri, 29 Jan 2010 02:22:07 +0000 (UTC) Received: from segfault-nmh-helo.tristatelogic.com (localhost [127.0.0.1]) by segfault.tristatelogic.com (Postfix) with ESMTP id C1AB4BDC0C for ; Thu, 28 Jan 2010 18:22:06 -0800 (PST) To: freebsd-gnome@freebsd.org In-Reply-To: Date: Thu, 28 Jan 2010 18:22:06 -0800 Message-ID: <1594.1264731726@tristatelogic.com> From: "Ronald F. Guilmette" Subject: Re: Firefox3 printing woes X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jan 2010 02:22:08 -0000 In message , naddy@mips.inka.de (Christian Weisgerber) wrote: >Ronald F. Guilmette wrote: > >> Would any of you chaps happen to have any suggestions for solving the >> firefox3 garbled fonts printing problem? > >The problem is that various web sites (e.g. aircanada.com) apparently >specify fonts narrowly by name, and if a commercial font such as >"Arial" isn't available, Firefox somehow ends up substituting these >terrible bitmapped fonts. Obviously, that's kinda dumb. >I don't know why this only affects printing. Yes. That _is_ mighty strange that it knows how to propery render the fonts on-screen, but then forgets how to do that when it comes to printing. >OpenBSD works around this by adding this etc/fonts/conf.d file to map >common commercial fonts to their Bitstream Vera equivalents: >http://www.openbsd.org/cgi-bin/cvsweb/xenocara/lib/fontconfig/conf.d/31-nonmst >.conf?rev=1.2 > >I guess many people simply install the Microsoft fonts >(ports/x11-fonts/webfonts), which I understand also solves this. THANK YOU, THANK YOU, THANK YOU! Seriously, I can't thank you enough for these two suggestions. This problem has been causing me serious annoyance for at least a year now, and none of the other suggested fixes that I found on the web worked. An interesting observation: My primary test case was the home page of a web site that some other fellow (in the UK) had seen and that was causing him the same problem, i.e. http://www.thepensionservice.gov.uk/ So anyway, I first just implemented the second of your two suggested fixes above. That caused the text of www.thepensionservice.gov.uk itself to print properly, *however* (and very bizzarely) the firefox-added headers & footers that were also printed on the same page were still looking quite awful. (Same problem... horrid font.) So after that, I also implemented the first of your two suggested fixes (adding a new conf.d/31-nonmst.conf file) and then tried printing again. Volia! Now _everything_ is printing properly... both the web page text itself and also the firefox-added headers & footers. I am a very happy camper, and I thank you again most humbly. >> I've tried the various suggested fixes, to wit: >> ... >This is all obvious nonsense. Yes, apparently all those other suggested fixes were indeed quite useless. Regards, rfg P.S. I'm going to submit a PR on this. I guess that whoever reviews that PR can just close it if the problem has already been addressed. (But at least the Proper Solution will make it into the Official Record.)