Johannes wrote:
On Fri, Oct 16, 2009 at 08:21:13PM +0000, corvid wrote:
Johannes wrote:
On Fri, Oct 16, 2009 at 02:56:32PM -0300, Jorge Arellano Cid wrote:
Hi,
[Alexandre Berges (alexandre dot berges @ GMAIL) wrote:]
Hello
I use Dillo and i like it. I have a littel problem with it it's how to use letter-spacing attribut. I know this attribut is'nt implemented Do you know when this attribute will be implemented ?
I guess it would be pretty straight forward to add if we find out how to change the letter spacing in fltk.
I believe we would have to draw each glyph individually.
Hm, i would prefer to handle it as a different font. There is this XFT_SPACING flag which could be passed in XftFontOpen() in fltk-2.0.x-r6786/src/x11/Font_xft.cxx If that could be added to fltk, then spacing would just be another Font property. But I don't know what fltk people think about it.
Is there something for the non-xft case?
Alternatively we could add the spacing attribute just to our Font class and handle the messy glyph by glyph drawing in fltkplatform.cc. That way we could keep the complexity out of textblock.cc which is complex enough already :-)
Ah, I did mean drawText() in fltkviewbase, but then I didn't think of touching fltkplatform's textWidth().