GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-6596d49e63
cairodriver/text.c File Reference

GRASS cairo display driver - text subroutines. More...

#include <grass/glocale.h>
#include "cairodriver.h"
#include <iconv.h>
Include dependency graph for cairodriver/text.c:

Go to the source code of this file.

Functions

void Cairo_Text (const char *str)
 Draw text. More...
 
void Cairo_text_box (const char *str, double *t, double *b, double *l, double *r)
 
void Cairo_set_font (const char *name)
 Set font. More...
 
void Cairo_font_list (char ***list, int *count)
 Get list of fonts. More...
 
void Cairo_font_info (char ***list, int *count)
 Get fonts into. More...
 

Detailed Description

GRASS cairo display driver - text subroutines.

(C) 2007-2008 by Lars Ahlzen and the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Lars Ahlzen <lars ahlzen.com> (original contributor)
Glynn Clements

Definition in file cairodriver/text.c.

Function Documentation

◆ Cairo_font_info()

void Cairo_font_info ( char ***  list,
int *  count 
)

Get fonts into.

Parameters
[out]listfont list
[out]countnumber of items in the list

Definition at line 335 of file cairodriver/text.c.

◆ Cairo_font_list()

void Cairo_font_list ( char ***  list,
int *  count 
)

Get list of fonts.

Parameters
[out]listfont list
[out]countnumber of items in the list

Definition at line 321 of file cairodriver/text.c.

◆ Cairo_set_font()

void Cairo_set_font ( const char *  name)

Set font.

Parameters
namefont name

Definition at line 280 of file cairodriver/text.c.

◆ Cairo_Text()

void Cairo_Text ( const char *  str)

Draw text.

Parameters
strstring to be drawn

Definition at line 107 of file cairodriver/text.c.

◆ Cairo_text_box()

void Cairo_text_box ( const char *  str,
double *  t,
double *  b,
double *  l,
double *  r 
)

Definition at line 130 of file cairodriver/text.c.