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 ?
-- Cheers Jorge.-
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. Cheers, Johannes
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. 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.
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
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().
On Fri, Oct 16, 2009 at 11:30:52PM +0000, corvid wrote:
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?
Don't know, plus we would also need something for Windows and MacOS :)
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().
Yes, that sounds good. textWidth() would have to be adapted as well of course. The css part should be easy btw. I will just add it. Cheers, Johannes
On Fri, Oct 16, 2009 at 11:30:52PM +0000, corvid wrote:
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().
Nice! You already implemented it. Cheers, Johannes
participants (3)
-
corvid@lavabit.com
-
jcid@dillo.org
-
Johannes.Hofmann@gmx.de