tsc_Font

This class is used to specify a font for graphics drawing purposes.  Most UI objects are drawn using standard Survey Core fonts which have been automatically adjusted to suit the hardware platform and language currently in use.  A selection of the standard fonts is provided in an enumeration, and the use of these is recommended.

Some of the fonts in the enum are historical and may map to the same font as some others in the enum.

The size of the font required for a particular purpose depends on the screen resolution, and sometimes on the character set which is related to the language in use.  The minimum readable font size for Simplified Chinese, for instance, is somewhat larger than the minimum size for the Latin characters used for most Western langauges. 

 These things must be taken into account when creating a font.  For this reason Trimble recommends use of the standard fonts wherever possible.

Public members

enum tsc_Font::StandardFont
{
    Unspecified = -1,
      A standard font has not been specified. 

    ControlFont = 0,
      A font that is used for data controls, edit boxes, drop-down lists, etc. 

    PromptFont,
        Prompts on forms and small static text.

    GroupFont,
        Group headings on forms - the top line of a group-box.

    ButtonFont,
      The text on buttons.

    SmallGraphicsFont,
        Small font used on graphic windows, such as the names of points on the map.

    GraphicsFont,
        Medium-size font used on graphic windows, such as the satellite numbers on the satellites window.

    MainIconsFont,
        The text under the Main Menu Icons.

    SuperFont,
        A very large font.

    HyperlinkFont,
        A font used to display hyperlinks.  Text using this font has an underline.

    TsFace2LcdFont,
        A font suitable for total station Face 2 LCD displays.

    SubtreeFont
        A font used for the second and subsequent level of item in a tree view.
}

tsc_Font (StandardFont font);
Construct a font object object using a standard SC font.

tsc_Font (void* windowsFontHandle);
Construct a font object using a windows HFONT. For compatibility across devices and OS's, avoid this.

StandardFont GetFont() const
Get the standard font.  If this font was constructed from an HFONT, Unspecified is returned.

void* GetHandle() const
Gets the font handle if constructed with an HFONT, otherwise NULL is returned.