Relative font-sizes

2005-08-06 Thread Manuel Mall
Hi fop-devs,

I am current looking into getting relative font-size property values, 
e.g. larger or smaller, implemented. The spec gives some leeway in 
that area, i.e. it says in 7.8.4: If the parent element's size is not 
close to a table entry, the user agent is free to interpolate between 
table entries or round off to the closest one.. I would like to 
implement this as: If the parent element's size is not close to a 
table entry, FOP will round off to the closest one., that is don't use 
interpolation and some FOP specific definition of what size not close 
to a table entry means.

Does that sound right to others on the list? Any concerns?

Thanks

Manuel


Relative font weights and font selection

2005-08-06 Thread Manuel Mall
I was looking at how to implement support for relative font weights 
(bolder and lighter). The spec says that a relative font weight 
refers to the next lighter or bolder font. This means we cannot simply 
subtract/add 100 to the weight but we have to find the next font 
relative to the current font which is actually lighter or bolder. For 
example if the current font weight is 400 for most of the default fonts 
the next bolder font weight is 700. This means this feature actually 
interacts with or is part of the font selection process.

This raises the question if the font selection algorithm needs to be 
adjusted for this should it be fixed up to support for example list of 
font family names, font variant and font stretch or even the font 
selection strategy property including context characters, etc.. The 
last bit (selection strategy, context characters, glyph availability) 
may be a bit much for me to attempt at the moment but the other bits 
look doable.

My question for the experienced developers and those fop-devs who look 
at the overall project: Is this something useful and sensible to 
attempt at this point in time, i.e. leading up to a 0.9 release? Would 
this cut across or interfere with the attempt to integrate FOray's font 
system into FOP?

Manuel