1 /****************************************************************************
5 * Private functions used in the `base' module (specification).
7 * Copyright (C) 2008-2020 by
8 * David Turner, Robert Wilhelm, Werner Lemberg, and suzuki toshiya.
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.
23 #include <freetype/internal/ftobjs.h>
29 FT_DECLARE_GLYPH( ft_bitmap_glyph_class )
30 FT_DECLARE_GLYPH( ft_outline_glyph_class )
33 #ifdef FT_CONFIG_OPTION_MAC_FONTS
35 /* MacOS resource fork cannot exceed 16MB at least for Carbon code; */
36 /* see https://support.microsoft.com/en-us/kb/130437 */
37 #define FT_MAC_RFORK_MAX_LEN 0x00FFFFFFUL
40 /* Assume the stream is sfnt-wrapped PS Type1 or sfnt-wrapped CID-keyed */
41 /* font, and try to load a face specified by the face_index. */
43 open_face_PS_from_sfnt_stream( FT_Library library,
51 /* Create a new FT_Face given a buffer and a driver name. */
54 open_face_from_buffer( FT_Library library,
58 const char* driver_name,
62 #if defined( FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK ) && \
63 !defined( FT_MACINTOSH )
64 /* Mac OS X/Darwin kernel often changes recommended method to access */
65 /* the resource fork and older methods makes the kernel issue the */
66 /* warning of deprecated method. To calm it down, the methods based */
67 /* on Darwin VFS should be grouped and skip the rest methods after */
68 /* the case the resource is opened but found to lack a font in it. */
70 ft_raccess_rule_by_darwin_vfs( FT_Library library, FT_UInt rule_index );
73 #endif /* FT_CONFIG_OPTION_MAC_FONTS */
78 #endif /* FTBASE_H_ */