In windows/nonclient.c, the captions on caption buttons are calculated (according to the button size, which is determined by some system metrics). This is due to the fact that we don't have a replacement for the Marlett font used in Windows.
But simple formulae can't reproduce the captions correctly. I've taken some screenshots of the caption buttons in Windows XP (with the classic theme, so I think the results can be reproduced in earlier versions).
I think we can reproduce Windows' behavior with a table. For every value of SM_CYCAPTION, we have one table entry. This way, we can save space (the table is a lot smaller than a table of bitmaps) and still reproduce correct behavior.
Anyone has comments on this?
__________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com
Le jeu 11/11/2004 à 10:41, William Poetra Yoga H a écrit :
In windows/nonclient.c, the captions on caption buttons are calculated (according to the button size, which is determined by some system metrics). This is due to the fact that we don't have a replacement for the Marlett font used in Windows.
We have (contributed by Transgaming). Check in wine/fonts, file wine_marlett. You need fontforge to build it though.
Vincent
--- Vincent B�ron vberon@mecano.gme.usherb.ca wrote:
We have (contributed by Transgaming). Check in wine/fonts, file wine_marlett. You need fontforge to build it though.
Vincent
I've looked at it. Fontforge's GUI is really bad, but at last I somehow managed to generate the TTF. I guess someone can improve the caption buttons now, right?
__________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com
Sorry, I meant dlls/user/uitools.c.
__________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com