Hello Keith!

On Saturday 16 February 2002 01:50, Keith Packard wrote:
|   Fontconfig implements font matching using a mechanism very similar to
| that specified by CSS2.  Instead of creating a similar-but-different
| mechanism I propose to make Fontconfig match CSS2.  The differences at this
| point appear relatively minor:
|
[...]

|    4) Font substitution is somewhat more complicated than Fontconfig's
|       'font aliases', possibly involving panose-like matching; I'm not
|       sure what is required and what is optional yet.

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.
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)
 
|
|   There are probably other minor differences, but I haven't read thru the
|   entire CSS2 specification yet.
|
|   Fontconfig is already usable for CSS2-like font matching; my Mozilla
|   implementation uses Fontconfig exclusively and most of the testing I've
|   done shows that it behaves as expected.
|
|   Are there compelling reasons *not* to use the CSS2 matching algorithm?  I
|   prefer to adopt an existing standard rather than developing my own.

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.
But, there are high chances that CSS3 Fonts module will pass W3C 
Recommendation and become standard.
Therefor, I recommend you to use CSS3 properties (Font module) instead of 
implementing obsolete (before becoming live!) CSS2.

IIRC HStem and VStem matching is part of CSS3.

|
|   Keith Packard        XFree86 Core Team        Compaq Cambridge Research
| Lab

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

Vadim Plessky
http://kde2.newmail.ru  (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
KDE mini-Themes
http://kde2.newmail.ru/themes/

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

Reply via email to