--- In [email protected], "entropyreduction" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Ugh.  I knew there was a reason I hadn't go involved in fonts.
> 
> Here's 
> 
> typedef struct tagLOGFONT { // lf 
>    LONG lfHeight; 
>    LONG lfWidth; 
>    LONG lfEscapement; 
>    LONG lfOrientation; 
>    LONG lfWeight; 
>    BYTE lfItalic; 
>    BYTE lfUnderline; 
>    BYTE lfStrikeOut; 
>    BYTE lfCharSet; 
>    BYTE lfOutPrecision; 
>    BYTE lfClipPrecision; 
>    BYTE lfQuality; 
>    BYTE lfPitchAndFamily; 
>    TCHAR lfFaceName[LF_FACESIZE]; 
> } LOGFONT; 
> 
> If I'm gonna be thorough about it, I need to quite a few of those
> properties.
> 
> It would be silly to make most or all of those characteristics of a
> control.
> 
> Therefore I'll need to introduce create_font, which returns a handle
> to a font object, which can optionally be used as a property of a
control.
> 
> If you read up on LOGFONT, which you probably have, it's messy; lots
> of constants to be defined.
> 
> Do we need:
> lfQuality, lfClipPrecision, lfOutPrecision, lfPitchAndFamily
> 
> Probably can dispense with PointSize and therefore suppress lfWidth
> and lfHeight

Probably people would expect to see the properties in the Window's
Font Selection dialog: Face name, Height, Weight, Italic, Underline,
StrikeOut (not sure about CharSet). And, IMHO, CreateFont is
preferable over CreateFontIndirect with LogFont.

> Do you want to be able to set a font for the whole dialog,
> which in practice means the caption as well as all controls?

It may be sufficient to provide just one service set_font, and not on
the level of define/define_control.

Sean






Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/power-pro/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to