Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
gvtextlayout_pango.c File Reference
#include "config.h"
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <gvc/gvplugin_render.h>
#include <cgraph/agxbuf.h>
#include <cgraph/alloc.h>
#include <common/utils.h>
#include <gvc/gvplugin_textlayout.h>
#include <pango/pangocairo.h>
#include "gvgetfontlist.h"
Include dependency graph for gvtextlayout_pango.c:

Go to the source code of this file.

Macros

#define FONT_DPI   96.
 
#define ENABLE_PANGO_MARKUP
 

Functions

static void pango_free_layout (void *layout)
 
static char * pango_psfontResolve (PostscriptAlias *pa)
 
static int agxbput_int (void *buffer, const char *s)
 
static bool pango_textlayout (textspan_t *span, char **fontpath)
 

Variables

static gvtextlayout_engine_t pango_textlayout_engine
 
gvplugin_installed_t gvtextlayout_pango_types []
 

Macro Definition Documentation

◆ ENABLE_PANGO_MARKUP

#define ENABLE_PANGO_MARKUP

Definition at line 57 of file gvtextlayout_pango.c.

◆ FONT_DPI

#define FONT_DPI   96.

Definition at line 55 of file gvtextlayout_pango.c.

Function Documentation

◆ agxbput_int()

static int agxbput_int ( void *  buffer,
const char *  s 
)
static

Definition at line 61 of file gvtextlayout_pango.c.

References agxbput(), and len().

Referenced by pango_textlayout().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pango_free_layout()

static void pango_free_layout ( void *  layout)
static

Definition at line 30 of file gvtextlayout_pango.c.

References layout().

Referenced by pango_textlayout().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pango_psfontResolve()

static char * pango_psfontResolve ( PostscriptAlias pa)
static

Definition at line 35 of file gvtextlayout_pango.c.

References _PostscriptAlias::family, _PostscriptAlias::stretch, _PostscriptAlias::style, and _PostscriptAlias::weight.

Referenced by pango_textlayout().

Here is the caller graph for this function:

◆ pango_textlayout()

Variable Documentation

◆ gvtextlayout_pango_types

gvplugin_installed_t gvtextlayout_pango_types[]
Initial value:
= {
{0, "textlayout", 10, &pango_textlayout_engine, NULL},
{0, NULL, 0, NULL, NULL}
}
node NULL
Definition grammar.y:149
static gvtextlayout_engine_t pango_textlayout_engine

Definition at line 268 of file gvtextlayout_pango.c.

◆ pango_textlayout_engine

gvtextlayout_engine_t pango_textlayout_engine
static
Initial value:
= {
}
static bool pango_textlayout(textspan_t *span, char **fontpath)

Definition at line 264 of file gvtextlayout_pango.c.