Loading...
Searching...
No Matches
font_freetype.c
Go to the documentation of this file.
#include <stdlib.h>
#include <string.h>
#include <grass/gis.h>
#include "driverlib.h"
static char *filename;
static int font_index;
int font_init_freetype(const char *name, int index)
{
if (filename)
G_free(filename);
filename = G_store(name);
font_index = index;
return 0;
}
const char *font_get_freetype_name(void)
{
return filename;
}
int font_get_index(void)
{
return font_index;
}
G_free
void G_free(void *buf)
Free allocated memory.
Definition alloc.c:147
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
name
const char * name
Definition named_colr.c:6
G_store
char * G_store(const char *s)
Copy string to allocated memory.
Definition strings.c:87