GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71933
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
driver/text.c
Go to the documentation of this file.
1 #include "driver.h"
2 #include "driverlib.h"
3 
4 void COM_Text(const char *text)
5 {
6  switch (font_get_type()) {
7  case GFONT_STROKE:
8  soft_text(text);
9  break;
10  case GFONT_FREETYPE:
11  soft_text_freetype(text);
12  break;
13  case GFONT_DRIVER:
14  if (driver->Text)
15  (*driver->Text)(text);
16  break;
17  }
18 }
19 
int font_get_type(void)
Definition: font.c:29
#define GFONT_STROKE
Definition: fontcap.h:14
void COM_Text(const char *)
Definition: driver/text.c:4
#define GFONT_FREETYPE
Definition: fontcap.h:15
void soft_text(const char *)
Definition: text2.c:108
void(* Text)(const char *)
Definition: driver.h:50
void soft_text_freetype(const char *)
Definition: text3.c:264
Definition: driver.h:22
#define GFONT_DRIVER
Definition: fontcap.h:16