NetSurf
|
Go to the source code of this file.
Macros | |
#define | AMI_OFONT_ENGINE ofont->GEngine |
Functions | |
void | ami_font_scan_init (const char *filename, bool force_scan, bool save, lwc_string **glypharray) |
Initialise the font glyph cache. More... | |
void | ami_font_scan_fini (lwc_string **glypharray) |
Finalise the font glyph cache. More... | |
void | ami_font_scan_save (const char *filename, lwc_string **glypharray) |
Save a font glyph cache. More... | |
const char * | ami_font_scan_lookup (const uint16 *code, lwc_string **glypharray) |
Lookup a font that contains a UTF-16 codepoint. More... | |
#define AMI_OFONT_ENGINE ofont->GEngine |
Definition at line 29 of file font_scan.h.
void ami_font_scan_fini | ( | lwc_string ** | glypharray | ) |
Finalise the font glyph cache.
glypharray | an array of 0xffff lwc_string pointers to free |
Definition at line 452 of file font_scan.c.
References glypharray.
Referenced by ami_font_finiscanner().
void ami_font_scan_init | ( | const char * | filename, |
bool | force_scan, | ||
bool | save, | ||
lwc_string ** | glypharray | ||
) |
Initialise the font glyph cache.
Reads an existing file or, if not present, generates a new cache.
filename | cache file to attempt to read |
force_scan | force re-creation of cache |
save | save the cache |
glypharray | an array of 0xffff lwc_string pointers |
Definition at line 474 of file font_scan.c.
References AddObject(), ami_font_scan_fonts(), ami_font_scan_gui_close(), ami_font_scan_gui_open(), ami_font_scan_list(), ami_font_scan_load(), ami_font_scan_save(), AMINS_UNKNOWN, nsObject::dtz_Node, FreeObjList(), glypharray, NewObjList(), NSLOG, nsoption_bool, nsoption_charp, and strsep().
Referenced by ami_font_initscanner().
const char * ami_font_scan_lookup | ( | const uint16 * | code, |
lwc_string ** | glypharray | ||
) |
Lookup a font that contains a UTF-16 codepoint.
code | UTF-16 codepoint to lookup |
glypharray | an array of 0xffff lwc_string pointers |
Definition at line 82 of file font_scan.c.
References glypharray.
Referenced by ami_open_outline_font().
void ami_font_scan_save | ( | const char * | filename, |
lwc_string ** | glypharray | ||
) |
Save a font glyph cache.
filename | name of cache file to save |
glypharray | an array of 0xffff lwc_string pointers |
Definition at line 425 of file font_scan.c.
References FClose, FOpen, glypharray, and NSLOG.
Referenced by ami_font_savescanner(), and ami_font_scan_init().