Josselin Mouette writes ("Re: Bug#299697: fontconfig: Still unresolved"):
> Le lundi 24 avril 2006 à 12:35 +0100, Ian Jackson a écrit :
> > Indeed, as Steve Pomeroy says, the problem is that websites specifying
> > `Times' (say) get Nimbus rather than DejaVu (or whatever the default
> > is in Debian).
> 
> Again, this is caused by a rewrite of "sans" into "Helvetica" and
> "sans-serif" into "Times" in Mozilla. This bug has been fixed in
> xulrunner and can easily be fixed in firefox as well.

This may be true and will cause the problem to manifest on most
websites rather than just on ones that ask for `Times' or `Helvetica'
explicity.  However, even if we fix Mozilla then we'll still have
problems with those latter sites.

> > In Ubuntu we configure firefox to use pango for all of its text
> > rendering (for i18n charset reasons).  And as it turns out, I think
> > applications that use pango (such as firefox) always leave the
> > specific text sizing and placement to pango, and pango uses the actual
> > metrics from the actual font.  So the correct place to set the
> > anymetrics fontconfig flag is in pango, and firefox does not need to
> > be changed.
> 
> Epiphany disables pango, apart for some languages for which it is
> necessary to use it. So this method wouldn't be enough for epiphany;
> that would mean dealing with Mozilla's internals to add the same hack.

This is not a hack, and I resent you describing it that way.

It's the correct solution; we add the missing piece of information to
the interface.  Or do you disagree with some part of my rationale ?
If so, please come out and explain !

But yes, if you don't use pango for everything then you have to find
the places in Mozilla where it uses fontconfig and change those too,
to pass the new flag.  I haven't done that at this stage because it
wasn't relevant to the configuration in Ubuntu.

Alternatively you might say that the default is wrong, and that
instead we should edit the programs that have (or whose documents
have) a specific idea of what the metrics are going to be.

Thanks,
Ian.

Reply via email to