GRASS Programmer's Manual
6.4.3(2013)-r
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
font_freetype.c
Go to the documentation of this file.
1
#include <stdlib.h>
2
#include <string.h>
3
#include <grass/gis.h>
4
#include "
driverlib.h
"
5
6
static
char
*filename;
7
static
int
font_index;
8
static
char
*charset;
9
10
int
font_init_freetype
(
const
char
*
name
,
int
index)
11
{
12
if
(filename)
13
G_free
(filename);
14
filename =
G_store
(name);
15
16
font_index = index;
17
18
return
0;
19
}
20
21
int
font_init_charset
(
const
char
*str)
22
{
23
if
(charset)
24
G_free
(charset);
25
charset =
G_store
(str);
26
return
0;
27
}
28
29
const
char
*
font_get_freetype_name
(
void
)
30
{
31
return
filename;
32
}
33
34
const
char
*
font_get_charset
(
void
)
35
{
36
if
(!charset)
37
charset =
G_store
(
"ISO-8859-1"
);
38
return
charset;
39
}
40
41
int
font_get_index
(
void
)
42
{
43
return
font_index;
44
}
lib
driver
font_freetype.c
Generated on Sat Oct 5 2013 12:11:06 for GRASS Programmer's Manual by
1.8.4