NetSurf
Macros | Functions
font_scan.h File Reference
#include "amiga/os3support.h"
#include <libwapcaplet/libwapcaplet.h>
Include dependency graph for font_scan.h:
This graph shows which files directly or indirectly include this file:

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...
 

Macro Definition Documentation

◆ AMI_OFONT_ENGINE

#define AMI_OFONT_ENGINE   ofont->GEngine

Definition at line 29 of file font_scan.h.

Function Documentation

◆ ami_font_scan_fini()

void ami_font_scan_fini ( lwc_string **  glypharray)

Finalise the font glyph cache.

Parameters
glypharrayan array of 0xffff lwc_string pointers to free

Definition at line 452 of file font_scan.c.

References glypharray.

Referenced by ami_font_finiscanner().

Here is the caller graph for this function:

◆ ami_font_scan_init()

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.

Parameters
filenamecache file to attempt to read
force_scanforce re-creation of cache
savesave the cache
glypharrayan 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().

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

◆ ami_font_scan_lookup()

const char * ami_font_scan_lookup ( const uint16 code,
lwc_string **  glypharray 
)

Lookup a font that contains a UTF-16 codepoint.

Parameters
codeUTF-16 codepoint to lookup
glypharrayan array of 0xffff lwc_string pointers
Returns
font name or NULL

Definition at line 82 of file font_scan.c.

References glypharray.

Referenced by ami_open_outline_font().

Here is the caller graph for this function:

◆ ami_font_scan_save()

void ami_font_scan_save ( const char *  filename,
lwc_string **  glypharray 
)

Save a font glyph cache.

Parameters
filenamename of cache file to save
glypharrayan 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().

Here is the caller graph for this function: