text_settings_t

Declaration

typedef struct {
    int             horizJust;
    int             vertJust;
    int             dir;
    int             szNumerx;
    int             szNumery;
    int             szDenomx;
    int             szDenomy;
    int             spaceExtra;
    font_t          *font;
    ushort          *encoding;
    ibool           useEncoding;
    } text_settings_t

Prototype In

mgraph.h

Description

Structure representing the current text rasterizing settings. This structure is used to group all these settings together in the MGL, and allows you to save and restore the text rendering settings as a single unit.

Members

horizJust

Horizontal justification value. Will be one of the values defined by the MGL_textJustType enumeration.

vertJust

Vertical justification value. Will be one of the values defined by the MGL_textJustType enumeration.

dir

Current text direction value. Will be one of the values defined by the MGL_textDirType enumeration.

szNumerx

Current text x size numerator value

szNumery

Current text y size numerator value

szDenomx

Current text x size denominator value

szDenomy

Current text y size denominator value

spaceExtra

Current text space extra value. The space extra value is the number of extra pixels to be added to every space character when rendering the line of text.

font

Pointer to current active font loaded in memory.

encoding

Pointer to current encoding table.

useEncoding

Flag indication whether to use encoding table or not. Is true for TT and Type1 fonts, false for bitmap fonts

 

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com