NetSurf
Data Structures | Functions | Variables
font.h File Reference

The interface to the win32 font and utf8 handling. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  font_desc
 

Functions

nserror utf8_to_font_encoding (const struct font_desc *font, const char *string, size_t len, char **result)
 convert from utf-8 to win32 font encoding. More...
 
HFONT get_font (const struct plot_font_style *style)
 generate a win32 font handle from a generic font style More...
 

Variables

HWND font_hwnd
 
struct gui_layout_tablewin32_layout_table
 
struct gui_utf8_tablewin32_utf8_table
 

Detailed Description

The interface to the win32 font and utf8 handling.

Definition in file font.h.

Function Documentation

◆ get_font()

HFONT get_font ( const struct plot_font_style style)

generate a win32 font handle from a generic font style

Parameters
styleThe font style.
Returns
The win32 font handle

◆ utf8_to_font_encoding()

nserror utf8_to_font_encoding ( const struct font_desc font,
const char *  string,
size_t  len,
char **  result 
)

convert from utf-8 to win32 font encoding.

Parameters
[in]fontfont descriptor
[in]stringsource utf-8 string
[in]lenThe length of the utf-8 data
[out]resultThe reencoded string.

Definition at line 43 of file font.c.

References font_desc::encoding, result, and utf8_to_enc().

Here is the call graph for this function:

Variable Documentation

◆ font_hwnd

HWND font_hwnd
extern

Definition at line 39 of file font.c.

Referenced by get_font(), and win32_window_create().

◆ win32_layout_table

struct gui_layout_table* win32_layout_table
extern

Definition at line 352 of file font.c.

Referenced by WinMain().

◆ win32_utf8_table

struct gui_utf8_table* win32_utf8_table
extern

Definition at line 360 of file font.c.

Referenced by WinMain().