sdk-world
v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Toggle main menu visibility
Loading...
Searching...
No Matches
ftbase.h
Go to the documentation of this file.
1
/****************************************************************************
2
*
3
* ftbase.h
4
*
5
* Private functions used in the `base' module (specification).
6
*
7
* Copyright (C) 2008-2025 by
8
* David Turner, Robert Wilhelm, Werner Lemberg, and suzuki toshiya.
9
*
10
* This file is part of the FreeType project, and may only be used,
11
* modified, and distributed under the terms of the FreeType project
12
* license, LICENSE.TXT. By continuing to use, modify, or distribute
13
* this file you indicate that you have read the license and
14
* understand and accept it fully.
15
*
16
*/
17
18
23
#ifndef FTBASE_H_
24
#define FTBASE_H_
25
26
27
#include <
freetype/internal/ftobjs.h
>
28
29
30
FT_BEGIN_HEADER
31
32
33
FT_DECLARE_GLYPH( ft_bitmap_glyph_class )
34
FT_DECLARE_GLYPH( ft_outline_glyph_class )
35
FT_DECLARE_GLYPH( ft_svg_glyph_class )
36
37
38
#ifdef FT_CONFIG_OPTION_MAC_FONTS
39
40
/* MacOS resource fork cannot exceed 16MB at least for Carbon code; */
41
/* see https://jeffpar.github.io/kbarchive/kb/130/Q130437/ */
42
#define FT_MAC_RFORK_MAX_LEN 0x00FFFFFFUL
43
44
45
/* Assume the stream is sfnt-wrapped PS Type1 or sfnt-wrapped CID-keyed */
46
/* font, and try to load a face specified by the face_index. */
47
FT_LOCAL( FT_Error )
48
open_face_PS_from_sfnt_stream( FT_Library library,
49
FT_Stream stream,
50
FT_Long face_index,
51
FT_Int num_params,
52
FT_Parameter *params,
53
FT_Face *aface );
54
55
56
/* Create a new FT_Face given a buffer and a driver name. */
57
/* From ftmac.c. */
58
FT_LOCAL( FT_Error )
59
open_face_from_buffer( FT_Library library,
60
FT_Byte* base,
61
FT_ULong size,
62
FT_Long face_index,
63
const
char
* driver_name,
64
FT_Face *aface );
65
66
67
#if defined( FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK ) && \
68
!defined( FT_MACINTOSH )
69
/* Mac OS X/Darwin kernel often changes recommended method to access */
70
/* the resource fork and older methods makes the kernel issue the */
71
/* warning of deprecated method. To calm it down, the methods based */
72
/* on Darwin VFS should be grouped and skip the rest methods after */
73
/* the case the resource is opened but found to lack a font in it. */
74
FT_LOCAL( FT_Bool )
75
ft_raccess_rule_by_darwin_vfs( FT_Library library, FT_UInt rule_index );
76
#endif
77
78
#endif
/* FT_CONFIG_OPTION_MAC_FONTS */
79
80
81
FT_END_HEADER
82
83
#endif
/* FTBASE_H_ */
84
85
86
/* END */
ftobjs.h
freetype
src
base
ftbase.h
Generated by
1.18.0