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. 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 :-)
If you implement the css parser part and get the values into style, I think I know what to do in textblock and drawText (famous last words, right? :).
It wouldn't work for Chinese/Japanese since we're currently pretending that they're words, but oh well.
_______________________________________________ Dillo-dev mailing list Dillo-dev@dillo.org http://lists.auriga.wearlab.de/cgi-bin/mailman/listinfo/dillo-dev