GRASS GIS 8 Programmer's Manual
8.5.0dev(2025)-565e82de51
Main Page
Related Pages
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
r
s
t
u
v
w
y
Enumerations
a
c
d
e
h
i
j
l
m
n
o
p
r
s
t
v
y
Enumerator
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
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
9
int
font_init_freetype
(
const
char
*
name
,
int
index)
10
{
11
if
(filename)
12
G_free
(filename);
13
filename =
G_store
(
name
);
14
15
font_index = index;
16
17
return
0;
18
}
19
20
const
char
*
font_get_freetype_name
(
void
)
21
{
22
return
filename;
23
}
24
25
int
font_get_index
(
void
)
26
{
27
return
font_index;
28
}
G_free
void G_free(void *)
Free allocated memory.
Definition:
gis/alloc.c:150
G_store
char * G_store(const char *)
Copy string to allocated memory.
Definition:
strings.c:87
driverlib.h
font_init_freetype
int font_init_freetype(const char *name, int index)
Definition:
font_freetype.c:9
font_get_freetype_name
const char * font_get_freetype_name(void)
Definition:
font_freetype.c:20
font_get_index
int font_get_index(void)
Definition:
font_freetype.c:25
gis.h
name
const char * name
Definition:
named_colr.c:6
stdlib.h
string.h
lib
driver
font_freetype.c
Generated on Thu Mar 20 2025 07:33:24 for GRASS GIS 8 Programmer's Manual by
1.9.1