I just committed support for the letter-spacing CSS property. No GUI yet, but you can set letter-spacing on a text object via XML editor and it will work. (I just really needed it for my work, so decided to see if it can be done quickly, and indeed it can.) Please test!
One problem is the em and ex units. I simply copied the Lauris' code which sets em equal to the font size and ex to 0.5 of the font size. Of course we need a proper way to extract the real em and ex values from the current font, but I don't know how to do that and if it's possible at all. (Or can Pango text help with this?) Any help will be appreciated.
_________________________________________________________________ Learn how to choose, serve, and enjoy wine at Wine @ MSN. http://wine.msn.com/
On Tue, 2004-02-03 at 20:46, bulia byak wrote:
I just committed support for the letter-spacing CSS property. No GUI yet, but you can set letter-spacing on a text object via XML editor and it will work. (I just really needed it for my work, so decided to see if it can be done quickly, and indeed it can.) Please test!
Good work!
One problem is the em and ex units. I simply copied the Lauris' code which sets em equal to the font size and ex to 0.5 of the font size. Of course we need a proper way to extract the real em and ex values from the current font, but I don't know how to do that and if it's possible at all. (Or can Pango text help with this?) Any help will be appreciated.
Hmm, I think Pango provides means to get font metrics. Nathan's the current Pango expert I think though.
-mental
participants (2)
-
bulia byak
-
MenTaLguY