Around 23 o'clock on Feb 18, Vadim Plessky wrote:

> IIRC we were already discussing PANOSE matching once.
> There is an opinion that PANOSE matching not flexible enough, and there are 
> better ways to do matching.

PANOSE matching is included in CSS2, but it's not required.  It has the 
advantage of being relatively well documented, if not entirely accurate.

> In particular, you can use HStem and VStem values (arrays) for each font, 
> these values are rather unique for each typeface.
> David Turner proposed us excellent algorithm for doing this (I think it's in 
> XFree86 Fonts archive, but may be it's in FT-devel list)

These are also permitted to be used in CSS2 font matching as far as I can 
determine.

Both of these depend on the application including the appropriate 
information to the matching system; obviously there's not way we can guess 
what the app intended with no data.  So, we should use whatever we have.

> Yes, there is! CSS2 is not flexible enough, besides none of browser vendors
> (to my best knoledge) is going to implement Fonts specification from CSS2.

Mozilla does the required parts of CSS2 (names, weights and sizes), but 
doesn't use panose or stem sizes.

> Therefor, I recommend you to use CSS3 properties (Font module) instead of 
> implementing obsolete (before becoming live!) CSS2.

I'll go get the CSS3 draft and look it over.  My suspicion is that CSS3 
will look a lot like CSS2 with even more optional fields to match on; 
that's fine, it's just more different kinds of data to examine.

> P.S. I am curious: are you going to implement this for upcoming XF 4.3.0?

Yes.  Xft has already been replaced with a new version which is now 
dependent on a non-X font configuration library; tuning that library is 
the current plan, I believe it will be relatively complete when a more 
standard font matching scheme is in place.

Mozilla and Gtk+ 2.0 are already ported to the new library. Both look 
quite nice, although the matching doesn't do the CSS2 weight replacement 
yet.  Of course, the core clients are already there as well.  Qt will take 
a bit of work and I haven't done that yet.

Keith Packard        XFree86 Core Team        Compaq Cambridge Research Lab


_______________________________________________
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts

Reply via email to