On Jul 21, 2007, at 19:25, Vincent Hennebert wrote:

Andreas L Delmelle a écrit :
<snip/>
org.apache.fop.fonts.Font contains a fontSize member. I would like to
see this separated from the Font instance somehow. Instead of fetching a
Font corresponding to given triplet and font-size, we would get one
corresponding to the triplet. In the Font-methods that use the
font-size, I would then add an int parameter, so the font-size can be
passed in by the caller.

No idea if this makes sense, or what the initial motivation was to embed
the font-size in the Font instance. If there's a good reason, please
enlighten me...

The font may depend on the desired size. For example, bitmap fonts have different instances for each size. IIC there's something like that in AFP.

Good thing I decided to ask first before proceeding and bumping into this myself... :-)

Thanks, Vincent.

Cheers

Andreas

Reply via email to