ok = SetDesignFontA(vi,textattr,tags)
LONG SetDesignFontA(APTR,
struct TextAttr *ta,
struct TagItem *tags);
LONG SetDesignFont(APTR,
struct TextAttr *ta,...);
SetDesignFontA() defines a font to be used as basis for grid layout functions for gadget placement with the NG_GRIDLAYOUT flag set. If so, the gadget dimensions and position will be derived from the font sizes. The upper 12 bit define a scaling factor that is multiplied by the width or height of the font divided by 4, the lower 4 bit a pixel offset that is added or subtracted. Without this call, the scaling is based on 8x8 font cells, i.e. topaz.8.
- GTVI_LeftBorder:
-
Left offset for the gadget design grid. Default is the current setting of the VisualInfo.
GTVI_TopBorder : Top offset for the gadget design grid.
Default is the current setting of the VisualInfo.
GTVI_MinFontWidth : Minimum design font width. If the font width
is smaller than the pixel width given by this tag, the tag value is used. Default is 0.
- GTVI_MinFontHeight:
-
Minimum design font height. If the font height is smaller than the pixel height given by this tag, the tag value is used. Default is 0.