NetSurf
Functions | Variables
fontplot.c File Reference
#include <stdbool.h>
#include <assert.h>
#include <stdlib.h>
#include <mt_gem.h>
#include "netsurf/mouse.h"
#include "netsurf/plot_style.h"
#include "atari/bitmap.h"
#include "atari/plot/fontplot.h"
Include dependency graph for fontplot.c:

Go to the source code of this file.

Functions

void dump_font_drivers (void)
 
FONT_PLOTTER new_font_plotter (int vdihandle, char *name, unsigned long flags, int *error)
 Create an new text plotter object. More...
 
int delete_font_plotter (FONT_PLOTTER p)
 

Variables

const struct s_font_driver_table_entry font_driver_table []
 

Function Documentation

◆ delete_font_plotter()

int delete_font_plotter ( FONT_PLOTTER  p)

Definition at line 121 of file fontplot.c.

References s_font_plotter::dtor.

Referenced by plot_finalise().

Here is the caller graph for this function:

◆ dump_font_drivers()

void dump_font_drivers ( void  )

Definition at line 44 of file fontplot.c.

References s_font_driver_table_entry::flags, font_driver_table, and s_font_driver_table_entry::name.

Referenced by plot_init().

Here is the caller graph for this function:

◆ new_font_plotter()

FONT_PLOTTER new_font_plotter ( int  vdihandle,
char *  name,
unsigned long  flags,
int *  error 
)

Create an new text plotter object.

Available: "vdi", "freetype", "internal"

Parameters
vdihandlethe vdi handle to act upon,
nameselector ID (string) of the font plotter.
flagsconfigration flags of the plotter, available flags: FONTPLOT_FLAG_MONOGLYPH - Enable 1 bit font plotting
errorset to != 0 when errors occur
Returns
the new font plotter instance on success, or NULL on failure.

Definition at line 67 of file fontplot.c.

References s_font_driver_table_entry::ctor, ERR_NO_MEM, ERR_PLOTTER_NOT_AVAILABLE, s_font_driver_table_entry::flags, s_font_plotter::flags, font_driver_table, fplotter, s_font_driver_table_entry::name, s_font_plotter::name, s_font_plotter::vdi_handle, and vdihandle.

Referenced by plot_init().

Here is the caller graph for this function:

Variable Documentation

◆ font_driver_table

const struct s_font_driver_table_entry font_driver_table[]
Initial value:
=
{
{(char*)NULL, NULL, 0}
}

Definition at line 30 of file fontplot.c.

Referenced by dump_font_drivers(), and new_font_plotter().