Graphviz  2.41.20171026.1811
Data Structures | Macros | Functions | Variables
gvgetfontlist_pango.c File Reference
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "agxbuf.h"
#include "gvplugin_textlayout.h"
#include <pango/pangocairo.h>
#include "gvgetfontlist.h"
#include "ps_font_equiv.h"
Include dependency graph for gvgetfontlist_pango.c:

Go to the source code of this file.

Data Structures

struct  face_t
 
struct  fontdef_t
 
struct  availfont_t
 

Macros

#define FNT_BOLD   1<<0
 
#define FNT_BOOK   1<<1
 
#define FNT_CONDENSED   1<<2
 
#define FNT_DEMI   1<<3
 
#define FNT_EXTRALIGHT   1<<4
 
#define FNT_ITALIC   1<<5
 
#define FNT_LIGHT   1<<6
 
#define FNT_MEDIUM   1<<7
 
#define FNT_OBLIQUE   1<<8
 
#define FNT_REGULAR   1<<9
 
#define FNT_ROMAN   1<<9
 
#define PS_AVANTGARDE   "AvantGarde"
 
#define PS_BOOKMAN   "Bookman"
 
#define PS_COURIER   "Courier"
 
#define PS_HELVETICA   SAN_5
 
#define PS_NEWCENTURYSCHLBK   "NewCenturySchlbk"
 
#define PS_PALATINO   "Palatino"
 
#define PS_SYMBOL   "Symbol"
 
#define PS_TIMES   SER_3
 
#define PS_CHANCERY   "ZapfChancery"
 
#define PS_DINGBATS   "ZapfDingbats"
 
#define FNT_BOLD_ST   "BOLD"
 
#define FNT_BOOK_ST   "BOOK"
 
#define FNT_CONDENSED_ST   "CONDENSED"
 
#define FNT_DEMI_ST   "DEMI"
 
#define FNT_EXTRALIGHT_ST   "EXTRALIGHT"
 
#define FNT_ITALIC_ST   "ITALIC"
 
#define FNT_LIGHT_ST   "LIGHT"
 
#define FNT_MEDIUM_ST   "MEDIUM"
 
#define FNT_OBLIQUE_ST   "OBLIQUE"
 
#define FNT_REGULAR_ST   "REGULAR"
 
#define FNT_ROMAN_ST   "ROMAN"
 
#define SAN_0   "sans"
 
#define SAN_1   "URW Gothic L"
 
#define SAN_2   "Charcoal"
 
#define SAN_3   "Nimbus Sans L"
 
#define SAN_4   "Verdana"
 
#define SAN_5   "Helvetica"
 
#define SAN_6   "Bitstream Vera Sans"
 
#define SAN_7   "DejaVu Sans"
 
#define SAN_8   "Liberation Sans"
 
#define SAN_9   "Luxi Sans"
 
#define SAN_10   "FreeSans"
 
#define SAN_11   "Arial"
 
#define SER_0   "serif"
 
#define SER_1   "URW Bookman L"
 
#define SER_2   "Times New Roman"
 
#define SER_3   "Times"
 
#define SER_4   "Nimbus Roman No9 L"
 
#define SER_5   "Bitstream Vera Serif"
 
#define SER_6   "DejaVu Serif"
 
#define SER_7   "Liberation Serif"
 
#define SER_8   "Luxi Serif"
 
#define SER_9   "FreeSerif"
 
#define SER_10   "Century Schoolbook L"
 
#define SER_11   "Charcoal"
 
#define SER_12   "Georgia"
 
#define SER_13   "URW Palladio L"
 
#define SER_14   "Norasi"
 
#define SER_15   "Rekha"
 
#define SER_16   "URW Chancery L"
 
#define MON_0   "monospace"
 
#define MON_1   "Nimbus Mono L"
 
#define MON_2   "Inconsolata"
 
#define MON_3   "Courier New"
 
#define MON_4   "Bitstream Vera Sans Mono"
 
#define MON_5   "DejaVu Sans Mono"
 
#define MON_6   "Liberation Mono"
 
#define MON_7   "Luxi Mono"
 
#define MON_8   "FreeMono"
 
#define SYM_0   "fantasy"
 
#define SYM_1   "Impact"
 
#define SYM_2   "Copperplate Gothic Std"
 
#define SYM_3   "Cooper Std"
 
#define SYM_4   "Bauhaus Std"
 
#define DING_0   "fantasy"
 
#define DING_1   "Dingbats"
 
#define DING_2   "Impact"
 
#define DING_3   "Copperplate Gothic Std"
 
#define DING_4   "Cooper Std"
 
#define DING_5   "Bauhaus Std"
 
#define FACELIST_SZ   (sizeof(facelist)/sizeof(face_t))
 
#define PS_AVANT_E_SZ   (sizeof(PS_AVANT_E) / sizeof(char *))
 
#define PS_BOOKMAN_E_SZ   (sizeof(PS_BOOKMAN_E) / sizeof(char *))
 
#define PS_COURIER_E_SZ   (sizeof(PS_COURIER_E) / sizeof(char *))
 
#define PS_HELVETICA_E_SZ   (sizeof(PS_HELVETICA_E) / sizeof(char *))
 
#define PS_NEWCENT_E_SZ   (sizeof(PS_NEWCENT_E) / sizeof(char *))
 
#define PS_PALATINO_E_SZ   (sizeof(PS_PALATINO_E) / sizeof(char *))
 
#define PS_TIMES_E_SZ   (sizeof(PS_TIMES_E) / sizeof(char *))
 
#define PS_SYMBOL_E_SZ   (sizeof(PS_SYMBOL_E) / sizeof(char *))
 
#define PS_CHANCERY_E_SZ   (sizeof(PS_CHANCERY_E) / sizeof(char *))
 
#define PS_DINGBATS_E_SZ   (sizeof(PS_DINGBATS_E) / sizeof(char *))
 
#define GV_FONT_LIST_SIZE   (sizeof(gv_ps_fontdefs)/sizeof(fontdef_t))
 
#define NEW(t)   (t*)malloc(sizeof(t))
 
#define N_NEW(n, t)   (t*)malloc((n)*sizeof(t))
 

Functions

char * strcasestr (const char *str, const char *pat)
 
gv_font_mapget_font_mapping (PangoFontMap *fontmap)
 
void get_font_list (char **fonts[], int *cnt)
 

Variables

unsigned char Verbose
 

Macro Definition Documentation

#define DING_0   "fantasy"

Definition at line 142 of file gvgetfontlist_pango.c.

#define DING_1   "Dingbats"

Definition at line 143 of file gvgetfontlist_pango.c.

#define DING_2   "Impact"

Definition at line 144 of file gvgetfontlist_pango.c.

#define DING_3   "Copperplate Gothic Std"

Definition at line 145 of file gvgetfontlist_pango.c.

#define DING_4   "Cooper Std"

Definition at line 146 of file gvgetfontlist_pango.c.

#define DING_5   "Bauhaus Std"

Definition at line 147 of file gvgetfontlist_pango.c.

#define FACELIST_SZ   (sizeof(facelist)/sizeof(face_t))

Definition at line 167 of file gvgetfontlist_pango.c.

#define FNT_BOLD   1<<0

Definition at line 60 of file gvgetfontlist_pango.c.

#define FNT_BOLD_ST   "BOLD"

Definition at line 83 of file gvgetfontlist_pango.c.

#define FNT_BOOK   1<<1

Definition at line 61 of file gvgetfontlist_pango.c.

#define FNT_BOOK_ST   "BOOK"

Definition at line 84 of file gvgetfontlist_pango.c.

#define FNT_CONDENSED   1<<2

Definition at line 62 of file gvgetfontlist_pango.c.

#define FNT_CONDENSED_ST   "CONDENSED"

Definition at line 85 of file gvgetfontlist_pango.c.

#define FNT_DEMI   1<<3

Definition at line 63 of file gvgetfontlist_pango.c.

#define FNT_DEMI_ST   "DEMI"

Definition at line 86 of file gvgetfontlist_pango.c.

#define FNT_EXTRALIGHT   1<<4

Definition at line 64 of file gvgetfontlist_pango.c.

#define FNT_EXTRALIGHT_ST   "EXTRALIGHT"

Definition at line 87 of file gvgetfontlist_pango.c.

#define FNT_ITALIC   1<<5

Definition at line 65 of file gvgetfontlist_pango.c.

#define FNT_ITALIC_ST   "ITALIC"

Definition at line 88 of file gvgetfontlist_pango.c.

#define FNT_LIGHT   1<<6

Definition at line 66 of file gvgetfontlist_pango.c.

#define FNT_LIGHT_ST   "LIGHT"

Definition at line 89 of file gvgetfontlist_pango.c.

#define FNT_MEDIUM   1<<7

Definition at line 67 of file gvgetfontlist_pango.c.

#define FNT_MEDIUM_ST   "MEDIUM"

Definition at line 90 of file gvgetfontlist_pango.c.

#define FNT_OBLIQUE   1<<8

Definition at line 68 of file gvgetfontlist_pango.c.

#define FNT_OBLIQUE_ST   "OBLIQUE"

Definition at line 91 of file gvgetfontlist_pango.c.

#define FNT_REGULAR   1<<9

Definition at line 69 of file gvgetfontlist_pango.c.

#define FNT_REGULAR_ST   "REGULAR"

Definition at line 92 of file gvgetfontlist_pango.c.

#define FNT_ROMAN   1<<9

Definition at line 70 of file gvgetfontlist_pango.c.

#define FNT_ROMAN_ST   "ROMAN"

Definition at line 93 of file gvgetfontlist_pango.c.

#define GV_FONT_LIST_SIZE   (sizeof(gv_ps_fontdefs)/sizeof(fontdef_t))

Definition at line 239 of file gvgetfontlist_pango.c.

Referenced by get_font_list().

#define MON_0   "monospace"

Definition at line 126 of file gvgetfontlist_pango.c.

#define MON_1   "Nimbus Mono L"

Definition at line 127 of file gvgetfontlist_pango.c.

#define MON_2   "Inconsolata"

Definition at line 128 of file gvgetfontlist_pango.c.

#define MON_3   "Courier New"

Definition at line 129 of file gvgetfontlist_pango.c.

#define MON_4   "Bitstream Vera Sans Mono"

Definition at line 130 of file gvgetfontlist_pango.c.

#define MON_5   "DejaVu Sans Mono"

Definition at line 131 of file gvgetfontlist_pango.c.

#define MON_6   "Liberation Mono"

Definition at line 132 of file gvgetfontlist_pango.c.

#define MON_7   "Luxi Mono"

Definition at line 133 of file gvgetfontlist_pango.c.

#define MON_8   "FreeMono"

Definition at line 134 of file gvgetfontlist_pango.c.

#define N_NEW (   n,
 
)    (t*)malloc((n)*sizeof(t))

Definition at line 248 of file gvgetfontlist_pango.c.

Referenced by get_font_list(), and get_font_mapping().

#define NEW (   t)    (t*)malloc(sizeof(t))

Definition at line 247 of file gvgetfontlist_pango.c.

#define PS_AVANT_E_SZ   (sizeof(PS_AVANT_E) / sizeof(char *))

Definition at line 176 of file gvgetfontlist_pango.c.

#define PS_AVANTGARDE   "AvantGarde"

Definition at line 72 of file gvgetfontlist_pango.c.

#define PS_BOOKMAN   "Bookman"

Definition at line 73 of file gvgetfontlist_pango.c.

#define PS_BOOKMAN_E_SZ   (sizeof(PS_BOOKMAN_E) / sizeof(char *))

Definition at line 181 of file gvgetfontlist_pango.c.

#define PS_CHANCERY   "ZapfChancery"

Definition at line 80 of file gvgetfontlist_pango.c.

#define PS_CHANCERY_E_SZ   (sizeof(PS_CHANCERY_E) / sizeof(char *))

Definition at line 214 of file gvgetfontlist_pango.c.

#define PS_COURIER   "Courier"

Definition at line 74 of file gvgetfontlist_pango.c.

#define PS_COURIER_E_SZ   (sizeof(PS_COURIER_E) / sizeof(char *))

Definition at line 186 of file gvgetfontlist_pango.c.

#define PS_DINGBATS   "ZapfDingbats"

Definition at line 81 of file gvgetfontlist_pango.c.

#define PS_DINGBATS_E_SZ   (sizeof(PS_DINGBATS_E) / sizeof(char *))

Definition at line 217 of file gvgetfontlist_pango.c.

#define PS_HELVETICA   SAN_5

Definition at line 75 of file gvgetfontlist_pango.c.

#define PS_HELVETICA_E_SZ   (sizeof(PS_HELVETICA_E) / sizeof(char *))

Definition at line 191 of file gvgetfontlist_pango.c.

#define PS_NEWCENT_E_SZ   (sizeof(PS_NEWCENT_E) / sizeof(char *))

Definition at line 196 of file gvgetfontlist_pango.c.

#define PS_NEWCENTURYSCHLBK   "NewCenturySchlbk"

Definition at line 76 of file gvgetfontlist_pango.c.

#define PS_PALATINO   "Palatino"

Definition at line 77 of file gvgetfontlist_pango.c.

#define PS_PALATINO_E_SZ   (sizeof(PS_PALATINO_E) / sizeof(char *))

Definition at line 201 of file gvgetfontlist_pango.c.

#define PS_SYMBOL   "Symbol"

Definition at line 78 of file gvgetfontlist_pango.c.

#define PS_SYMBOL_E_SZ   (sizeof(PS_SYMBOL_E) / sizeof(char *))

Definition at line 209 of file gvgetfontlist_pango.c.

#define PS_TIMES   SER_3

Definition at line 79 of file gvgetfontlist_pango.c.

#define PS_TIMES_E_SZ   (sizeof(PS_TIMES_E) / sizeof(char *))

Definition at line 206 of file gvgetfontlist_pango.c.

#define SAN_0   "sans"

Definition at line 95 of file gvgetfontlist_pango.c.

#define SAN_1   "URW Gothic L"

Definition at line 96 of file gvgetfontlist_pango.c.

#define SAN_10   "FreeSans"

Definition at line 105 of file gvgetfontlist_pango.c.

#define SAN_11   "Arial"

Definition at line 106 of file gvgetfontlist_pango.c.

#define SAN_2   "Charcoal"

Definition at line 97 of file gvgetfontlist_pango.c.

#define SAN_3   "Nimbus Sans L"

Definition at line 98 of file gvgetfontlist_pango.c.

#define SAN_4   "Verdana"

Definition at line 99 of file gvgetfontlist_pango.c.

#define SAN_5   "Helvetica"

Definition at line 100 of file gvgetfontlist_pango.c.

#define SAN_6   "Bitstream Vera Sans"

Definition at line 101 of file gvgetfontlist_pango.c.

#define SAN_7   "DejaVu Sans"

Definition at line 102 of file gvgetfontlist_pango.c.

#define SAN_8   "Liberation Sans"

Definition at line 103 of file gvgetfontlist_pango.c.

#define SAN_9   "Luxi Sans"

Definition at line 104 of file gvgetfontlist_pango.c.

#define SER_0   "serif"

Definition at line 108 of file gvgetfontlist_pango.c.

#define SER_1   "URW Bookman L"

Definition at line 109 of file gvgetfontlist_pango.c.

#define SER_10   "Century Schoolbook L"

Definition at line 118 of file gvgetfontlist_pango.c.

#define SER_11   "Charcoal"

Definition at line 119 of file gvgetfontlist_pango.c.

#define SER_12   "Georgia"

Definition at line 120 of file gvgetfontlist_pango.c.

#define SER_13   "URW Palladio L"

Definition at line 121 of file gvgetfontlist_pango.c.

#define SER_14   "Norasi"

Definition at line 122 of file gvgetfontlist_pango.c.

#define SER_15   "Rekha"

Definition at line 123 of file gvgetfontlist_pango.c.

#define SER_16   "URW Chancery L"

Definition at line 124 of file gvgetfontlist_pango.c.

#define SER_2   "Times New Roman"

Definition at line 110 of file gvgetfontlist_pango.c.

#define SER_3   "Times"

Definition at line 111 of file gvgetfontlist_pango.c.

#define SER_4   "Nimbus Roman No9 L"

Definition at line 112 of file gvgetfontlist_pango.c.

#define SER_5   "Bitstream Vera Serif"

Definition at line 113 of file gvgetfontlist_pango.c.

#define SER_6   "DejaVu Serif"

Definition at line 114 of file gvgetfontlist_pango.c.

#define SER_7   "Liberation Serif"

Definition at line 115 of file gvgetfontlist_pango.c.

#define SER_8   "Luxi Serif"

Definition at line 116 of file gvgetfontlist_pango.c.

#define SER_9   "FreeSerif"

Definition at line 117 of file gvgetfontlist_pango.c.

#define SYM_0   "fantasy"

Definition at line 136 of file gvgetfontlist_pango.c.

#define SYM_1   "Impact"

Definition at line 137 of file gvgetfontlist_pango.c.

#define SYM_2   "Copperplate Gothic Std"

Definition at line 138 of file gvgetfontlist_pango.c.

#define SYM_3   "Cooper Std"

Definition at line 139 of file gvgetfontlist_pango.c.

#define SYM_4   "Bauhaus Std"

Definition at line 140 of file gvgetfontlist_pango.c.

Function Documentation

void get_font_list ( char **  fonts[],
int cnt 
)

Definition at line 543 of file gvgetfontlist_pango.c.

References availfont_t::fontname, GV_FONT_LIST_SIZE, N_NEW, and NULL.

gv_font_map* get_font_mapping ( PangoFontMap *  fontmap)
char * strcasestr ( const char *  str,
const char *  pat 
)

Definition at line 30 of file gvgetfontlist_pango.c.

References NULL, and str.

Variable Documentation

unsigned char Verbose