NetSurf
Functions | Variables
font.h File Reference

Beos font layout handling interface. More...

#include "netsurf/plot_style.h"
Include dependency graph for font.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool nsfont_paint (const plot_font_style_t *fstyle, const char *string, size_t length, int x, int y)
 Render a string. More...
 
void nsbeos_style_to_font (BFont &font, const struct plot_font_style *fstyle)
 Convert a font style to a PangoFontDescription. More...
 

Variables

struct gui_layout_tablebeos_layout_table
 

Detailed Description

Beos font layout handling interface.

Definition in file font.h.

Function Documentation

◆ nsbeos_style_to_font()

void nsbeos_style_to_font ( BFont &  font,
const struct plot_font_style fstyle 
)

Convert a font style to a PangoFontDescription.

Parameters
fontBeos font object.
fstylestyle for this text

Definition at line 53 of file font.cpp.

References plot_font_style::family, plot_font_style::flags, FONTF_ITALIC, FONTF_OBLIQUE, nsoption_charp, PLOT_FONT_FAMILY_CURSIVE, PLOT_FONT_FAMILY_FANTASY, PLOT_FONT_FAMILY_MONOSPACE, PLOT_FONT_FAMILY_SANS_SERIF, PLOT_FONT_FAMILY_SERIF, PLOT_STYLE_SCALE, plot_font_style::size, and plot_font_style::weight.

Referenced by beos_font_position(), beos_font_split(), beos_font_width(), gui_set_clipboard(), and nsfont_paint().

Here is the caller graph for this function:

◆ nsfont_paint()

bool nsfont_paint ( const plot_font_style_t fstyle,
const char *  string,
size_t  length,
int  x,
int  y 
)

Render a string.

Parameters
fstylestyle for this text
stringUTF-8 string to measure
lengthlength of string
xx coordinate
yy coordinate
Returns
true on success, false on error and error reported

Render a string.

Parameters
fstyleplot style for this text
stringUTF-8 string to measure
lengthlength of string
xx coordinate
yy coordinate
Returns
true on success, false on error and error reported

Definition at line 312 of file font.cpp.

References plot_font_style::background, beos_warn_user(), plot_font_style::foreground, line(), no_font_blending, nsbeos_current_gc(), nsbeos_rgb_colour(), nsbeos_style_to_font(), nsfont_read_style(), NSLOG, print_active, and view.

Referenced by nsbeos_plot_text(), nsgtk_plot_text(), and ro_plot_text().

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

Variable Documentation

◆ beos_layout_table

struct gui_layout_table* beos_layout_table
extern

Definition at line 373 of file font.cpp.

Referenced by gui_init_replicant(), and main().