NetSurf
|
Beos font layout handling interface. More...
#include "netsurf/plot_style.h"
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_table * | beos_layout_table |
Beos font layout handling interface.
Definition in file font.h.
void nsbeos_style_to_font | ( | BFont & | font, |
const struct plot_font_style * | fstyle | ||
) |
Convert a font style to a PangoFontDescription.
font | Beos font object. |
fstyle | style 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().
bool nsfont_paint | ( | const plot_font_style_t * | fstyle, |
const char * | string, | ||
size_t | length, | ||
int | x, | ||
int | y | ||
) |
Render a string.
fstyle | style for this text |
string | UTF-8 string to measure |
length | length of string |
x | x coordinate |
y | y coordinate |
Render a string.
fstyle | plot style for this text |
string | UTF-8 string to measure |
length | length of string |
x | x coordinate |
y | y coordinate |
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().
|
extern |
Definition at line 373 of file font.cpp.
Referenced by gui_init_replicant(), and main().