gm_text_box_type Derived Type

type, public :: gm_text_box_type

Text box settings for drawing text on image.

You can tag a font to specify whether it is a PostScript, TrueType, or X11 font. For example, Arial.ttf is a TrueType font, ps:helvetica is PostScript, and x:fixed is X11.


Components

Type Visibility Attributes Name Initial
character(len=GM_GRAVITY_LEN), public :: gravity = GM_GRAVITY_SW

Text position (GM).

character(len=GM_COLOR_LEN), public :: background = GM_COLOR_BLACK

Box colour (GM).

character(len=GM_COLOR_LEN), public :: foreground = GM_COLOR_WHITE

Text colour (GM).

character(len=GM_FONT_LEN), public :: font = 'DejaVuSansMono'

Font name (GM).

integer, public :: font_size = 12

Font size in points.