NetSurf
font_scan.h
Go to the documentation of this file.
1/*
2 * Copyright 2012 Chris Young <chris@unsatisfactorysoftware.co.uk>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef AMIGA_FONT_SCAN_H
20#define AMIGA_FONT_SCAN_H
21#include "amiga/os3support.h"
22#include <libwapcaplet/libwapcaplet.h>
23
24/* Compatibliity define used by font.c and font_scan.c
25 * It's here because this file is included by both. */
26#ifdef __amigaos4__
27#define AMI_OFONT_ENGINE &ofont->olf_EEngine
28#else
29#define AMI_OFONT_ENGINE ofont->GEngine
30#endif
31
32void ami_font_scan_init(const char *filename, bool force_scan, bool save,
33 lwc_string **glypharray);
34void ami_font_scan_fini(lwc_string **glypharray);
35void ami_font_scan_save(const char *filename, lwc_string **glypharray);
36const char *ami_font_scan_lookup(const uint16 *code, lwc_string **glypharray);
37
38#endif
39
static lwc_string * glypharray[0xffff+1]
Definition: font_bullet.c:135
const char * ami_font_scan_lookup(const uint16 *code, lwc_string **glypharray)
Lookup a font that contains a UTF-16 codepoint.
Definition: font_scan.c:82
void ami_font_scan_init(const char *filename, bool force_scan, bool save, lwc_string **glypharray)
Initialise the font glyph cache.
Definition: font_scan.c:474
void ami_font_scan_save(const char *filename, lwc_string **glypharray)
Save a font glyph cache.
Definition: font_scan.c:425
void ami_font_scan_fini(lwc_string **glypharray)
Finalise the font glyph cache.
Definition: font_scan.c:452
Minimal compatibility header for AmigaOS 3.
uint16_t uint16
Definition: os3support.h:182