DLLGetFontAttribute()

DLLGetFontAttribute()
  • SYNOPSIS:
    attribute = DLLGetFontAttribute(iFontBank,iFontAttribute)
  • DESCRIPTION:
    After DLLChooseFont() returns, it leaves all information about the font the user selected in your font bank. This command allows you to get the information from the font bank.
  • PARAMETERS:
    iFontBank A bank created with DLLCreateFontBank(). This is a bank of information on how to setup the font requester if the CF_INITTOLOGFONTSTRUCT is specified in iFlags when calling DLLChooseFont(). This bank will have all the information about the font that was selected when DLLChooseFont() returns.
    iFontAttribute

    This is the attribute that you want to query. Possible values are:

    FONT_ATTRIBUTES_WIDTH - Return the width of the font (generally not used).
    FONT_ATTRIBUTES_HEIGHT - Return the height of the font.
    FONT_ATTRIBUTES_ESCAPEMENT - Return the font angle (generally not used).
    FONT_ATTRIBUTES_ORIENTATION - Returns the orientation (generally not used).
    FONT_ATTRIBUTES_WEIGHT - Returns the weight of the font (boldness).
    FONT_ATTRIBUTES_ITALIC - True if the font is italic.
    FONT_ATTRIBUTES_UNDERLINE - True if the font is underlined.
    FONT_ATTRIBUTES_STRIKEOUT - True if the font is strike-through.
    FONT_ATTRIBUTES_CHARACTERSET - Returns the characterset of the font.
    FONT_ATTRIBUTES_COLOR - Returns the (packed RGB) colour of the font.
    FONT_ATTRIBUTES_FACE - Returns a string with the Font Face Name.

  • RETURNS:
    Each of the above attributes returns different relative values...
    -- FONT_ATTRIBUTES_CHARACTERSET:
    ANSI_CHARSET
    BALTIC_CHARSET
    CHINESEBIG5_CHARSET
    DEFAULT_CHARSET
    EASTEUROPE_CHARSET
    GB2312_CHARSET
    GREEK_CHARSET
    HANGUL_CHARSET
    MAC_CHARSET
    OEM_CHARSET
    RUSSIAN_CHARSET
    SHIFTJIS_CHARSET
    SYMBOL_CHARSET
    TURKISH_CHARSET

    -- FONT_ATTRIBUTES_COLOR:
    FONT_COLOR_BLACK
    FONT_COLOR_MAROON
    FONT_COLOR_GREEN
    FONT_COLOR_OLIVE
    FONT_COLOR_NAVY
    FONT_COLOR_PURPLE
    FONT_COLOR_TEAL
    FONT_COLOR_GRAY
    FONT_COLOR_SILVER
    FONT_COLOR_RED
    FONT_COLOR_LIME
    FONT_COLOR_YELLOW
    FONT_COLOR_BLUE
    FONT_COLOR_FUCHSIA
    FONT_COLOR_AQUA
    FONT_COLOR_WHITE

  • EXAMPLE:
    See examples: example018.bb, example019.bb and example020.bb.
  • BUGS:
    None Known.

Return To Index
Problems with this command or bugs? EMail me at: mailto:loki.sd@blueyonder.co.uk

Section Last Updated: Sunday, February 3, 2002 3:35 PM GMT

All materials used in this help, related sources and binaries are (C)opyright Rob Hutchinson, Joseph Cox and Tarropithium Software 2002. All rights reserved. All software is provided without warranty unless otherwise stated.
Tarropithium Software or the authors will not be held liable for any damage or data loss that may occur during the application of this software. Use it at your own risk!