On Sun, Mar 10, 2002 at 08:33:08AM +0100, Olivier Chapuis wrote:
> On Sat, Mar 09, 2002 at 08:50:38PM +0100, Dominik Vogt wrote:
> > 
> > Olivier, there is some unfinished work in Flocale.* and Fft.*.
> > Specifically, I added a new member to the FlocaleFont structure:
> > min_char_offset.  This should be the x offset at which characters
> > are printed for vertical titles.  I didn't know how to calculate
> > that for Xft (I don't have any documentation).  Can you please
> > take a look at that?  I've marked all unfinished places with
> > "FIXME".  Also, Fft.c calls a function XftTextExtentsUtf8 and
> > a similar version of XDrawString.  My system doesn't have these
> > and configure does not detect that situation.  In other words: I
> > can't compile the code.  I've ifdef'ed them out for now.
> > 
> > Furthermore, I restructured and reformatted Flocal.* and Fft.*.
> > I hope you're not angry with me about that.  It was in the best
> > interest of future development.  All the FOOBAR_CODE() macros are
> > gone now and all code is compiled even when the libraries are not
> > present (I provided dummy interfaces if something is missing).
> > This way the compiler always checks the syntax of the code even if
> > the optimizer does not generate any code because of the
> > if-conditions like
> > 
> >   if (FlocaleMultibyteSupport)
> >     ...
> > 
> > with FlocaleMultibyteSupport #defined to 0 or 1.
> > 
> > Also, I vaguely remember some discussion about a library that
> > prints strings vertically.  This is needed to get left/right
> > titles working correctly.  I'm not sure how to handle this with
> > the flood of XDrawString variants we now have.
> >
> 
> Unfortunately, I've no time just now to complete the code and
> to answer your questions in the good way. I will work on this
> on monday and tuesday. The library which rotate font is still
> on my machine but it is just for FontStruct. I can try to
> implement vertical font rendering but I may need some times
> (as one week if I do not fall on particular difficulty).

The matter isn't pressing.  THere are two possible ways for
vertical titles:

 - Print them horizontally in a pixmap, rotate the pixmap by 90
   degress and copy it into the title.  Works without any
   libraries and is easy to do.
 - Print one letter atop each other.  Either use a library or
   do-it-yourself.  If I'd know how how to find out the length of
   a single character in bytes it could be done easily without a
   library.

BTW, I'm not convinced titles with one letter atop the other look
better than rotated titles.

Bye

Dominik ^_^  ^_^

 --
Dominik Vogt, [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to