parent
5d6b82d9c9
commit
efce08d67c
104 changed files with 684 additions and 965 deletions
@ -1,226 +0,0 @@ |
||||
#
|
||||
# FreeType 2 library sub-Makefile
|
||||
#
|
||||
|
||||
|
||||
# Copyright 1996-2000 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used modified
|
||||
# and distributed under the terms of the FreeType project license,
|
||||
# LICENSE.TXT. By continuing to use, modify, or distribute this file you
|
||||
# indicate that you have read the license and understand and accept it
|
||||
# fully.
|
||||
|
||||
|
||||
# DO NOT INVOKE THIS MAKEFILE DIRECTLY! IT IS MEANT TO BE INCLUDED BY
|
||||
# OTHER MAKEFILES.
|
||||
|
||||
|
||||
# The targets `objects' and `library' are defined at the end of this
|
||||
# Makefile when all rules have been included.
|
||||
#
|
||||
.PHONY: build_freetype objects library |
||||
|
||||
# default target -- build objects and library
|
||||
#
|
||||
build_freetype: objects library |
||||
|
||||
# `multi' target -- build multiple objects and library
|
||||
#
|
||||
multi: objects library |
||||
|
||||
|
||||
# The FreeType source directory.
|
||||
#
|
||||
SRC := $(TOP)$(SEP)src
|
||||
|
||||
|
||||
# The directory where the base layer components are placed. By default,
|
||||
# this is `freetype/src/base'.
|
||||
#
|
||||
BASE_DIR := $(SRC)$(SEP)base
|
||||
|
||||
|
||||
# A few short-cuts in order to avoid typing $(SEP) all the time for the
|
||||
# directory separator.
|
||||
#
|
||||
# For example: SRC_ equals to `./src/' where `.' is $(TOP).
|
||||
#
|
||||
#
|
||||
SRC_ := $(SRC)$(SEP)
|
||||
BASE_ := $(BASE_DIR)$(SEP)
|
||||
OBJ_ := $(OBJ_DIR)$(SEP)
|
||||
LIB_ := $(LIB_DIR)$(SEP)
|
||||
PUBLIC_ := $(TOP)$(SEP)include$(SEP)
|
||||
CONFIG_ := $(TOP)$(SEP)config$(SEP)
|
||||
|
||||
|
||||
# The name of the final library file.
|
||||
#
|
||||
FT_LIBRARY := $(LIB_)$(LIBRARY).$A
|
||||
|
||||
|
||||
# include paths
|
||||
#
|
||||
# IMPORTANT NOTE: The architecture-dependent directory must ALWAYS be placed
|
||||
# in front of the include list. Porters are then able to
|
||||
# put their own version of some of the FreeType components
|
||||
# in the `freetype/config/<system>' directory, as these
|
||||
# files will override the default sources.
|
||||
#
|
||||
INCLUDES := $(BUILD) $(TOP)$(SEP)config $(TOP)$(SEP)include $(INCLUDES)
|
||||
|
||||
INCLUDE_FLAGS = $(INCLUDES:%=$I%)
|
||||
|
||||
|
||||
# C flags used for the compilation of an object file. This must include at
|
||||
# least the paths for the `base' and `config/<system>' directories,
|
||||
# debug/optimization/warning flags + ansi compliance if needed.
|
||||
#
|
||||
FT_CFLAGS = $(CFLAGS) $(INCLUDE_FLAGS)
|
||||
FT_CC = $(CC) $(FT_CFLAGS)
|
||||
FT_COMPILE = $(CC) $(ANSIFLAGS) $(FT_CFLAGS)
|
||||
|
||||
|
||||
# include the `modules' rules file
|
||||
#
|
||||
include $(CONFIG_)modules.mk |
||||
|
||||
|
||||
# Free the lists of driver objects.
|
||||
#
|
||||
COMPONENTS_LIST :=
|
||||
DRIVERS_LIST :=
|
||||
OBJECTS_LIST :=
|
||||
|
||||
# System-specific component -- this must be defined in this Makefile for
|
||||
# easy updates. The default ANSI ftsystem.c is located in
|
||||
# `freetype/config/ftsystem.c'. However, some system-specific configuration
|
||||
# might define $(FTSYS_SRC) to fetch it in other places, like
|
||||
# `freetype/config/<system>/ftsystem.c'.
|
||||
#
|
||||
# $(BASE_H) is defined in `src/base/rules.mk' and contains the list of all
|
||||
# base layer header files.
|
||||
#
|
||||
ifndef FTSYS_SRC |
||||
FTSYS_SRC = $(BASE_)ftsystem.c
|
||||
endif |
||||
FTSYS_OBJ = $(OBJ_)ftsystem.$O
|
||||
|
||||
OBJECTS_LIST += $(FTSYS_OBJ)
|
||||
|
||||
$(FTSYS_OBJ): $(FTSYS_SRC) $(BASE_H) |
||||
$(FT_COMPILE) $T$@ $<
|
||||
|
||||
|
||||
# ftdebug component
|
||||
#
|
||||
# FTDebug contains code used to print traces and errors. It is normally
|
||||
# empty for a release build (see ftoption.h).
|
||||
#
|
||||
FTDEBUG_SRC = $(BASE_)ftdebug.c
|
||||
FTDEBUG_OBJ = $(OBJ_)ftdebug.$O
|
||||
|
||||
OBJECTS_LIST += $(FTDEBUG_OBJ)
|
||||
|
||||
$(FTDEBUG_OBJ): $(FTDEBUG_SRC) $(BASE_H) |
||||
$(FT_COMPILE) $T$@ $<
|
||||
|
||||
|
||||
# Define $(PUBLIC_H) as the list of all public header files located in
|
||||
# `$(TOP)/include'.
|
||||
#
|
||||
PUBLIC_H := $(wildcard $(PUBLIC_)*.h)
|
||||
|
||||
|
||||
# Include all rule files from FreeType components.
|
||||
#
|
||||
include $(wildcard $(SRC)/*/rules.mk) |
||||
|
||||
|
||||
# FTInit file
|
||||
#
|
||||
# The C source `ftinit.c' contains the FreeType initialization routines.
|
||||
# It is able to automatically register one or more drivers when the API
|
||||
# function FT_Init_FreeType() is called.
|
||||
#
|
||||
# The set of initial drivers is determined by the driver Makefiles
|
||||
# includes above. Each driver Makefile updates the FTINIT_xxxx lists
|
||||
# which contain additional include paths and macros used to compile the
|
||||
# single `ftinit.c' source.
|
||||
#
|
||||
FTINIT_SRC := $(BASE_)ftinit.c
|
||||
FTINIT_OBJ := $(OBJ_)ftinit.$O
|
||||
|
||||
OBJECTS_LIST += $(FTINIT_OBJ)
|
||||
|
||||
$(FTINIT_OBJ): $(FTINIT_SRC) $(BASE_H) $(FT_MODULE_LIST) |
||||
$(FT_COMPILE) $T$@ $<
|
||||
|
||||
|
||||
# All FreeType library objects
|
||||
#
|
||||
# By default, we include the base layer extensions. These could be
|
||||
# omitted on builds which do not want them.
|
||||
#
|
||||
OBJ_M = $(BASE_OBJ_M) $(BASE_EXT_OBJ) $(DRV_OBJS_M)
|
||||
OBJ_S = $(BASE_OBJ_S) $(BASE_EXT_OBJ) $(DRV_OBJS_S)
|
||||
|
||||
|
||||
# The target `multi' on the Make command line indicates that we want to
|
||||
# compile each source file independently.
|
||||
#
|
||||
# Otherwise, each module/driver is compiled in a single object file through
|
||||
# source file inclusion (see `src/base/ftbase.c' or
|
||||
# `src/truetype/truetype.c' for examples).
|
||||
#
|
||||
BASE_OBJECTS := $(OBJECTS_LIST)
|
||||
|
||||
ifneq ($(findstring multi,$(MAKECMDGOALS)),) |
||||
OBJECTS_LIST += $(OBJ_M)
|
||||
else |
||||
OBJECTS_LIST += $(OBJ_S)
|
||||
endif |
||||
|
||||
objects: $(OBJECTS_LIST) |
||||
|
||||
library: $(FT_LIBRARY) |
||||
|
||||
.c.$O: |
||||
$(FT_COMPILE) $T$@ $<
|
||||
|
||||
|
||||
# Standard cleaning and distclean rules. These are not accepted
|
||||
# on all systems though.
|
||||
#
|
||||
clean_freetype_std: |
||||
-$(DELETE) $(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)
|
||||
|
||||
distclean_freetype_std: clean_freetype_std |
||||
-$(DELETE) $(FT_LIBRARY)
|
||||
-$(DELETE) *.orig *~ core *.core
|
||||
|
||||
# The Dos command shell does not support very long list of arguments, so
|
||||
# we are stuck with wildcards.
|
||||
#
|
||||
clean_freetype_dos: |
||||
-$(DELETE) $(subst $(SEP),$(HOSTSEP),$(OBJ_))*.$O 2> nul
|
||||
|
||||
distclean_freetype_dos: clean_freetype_dos |
||||
-$(DELETE) $(subst $(SEP),$(HOSTSEP),$(FT_LIBRARY)) 2> nul
|
||||
|
||||
# Remove configuration file (used for distclean).
|
||||
#
|
||||
remove_config_mk: |
||||
-$(DELETE) $(subst $(SEP),$(HOSTSEP),$(CONFIG_MK))
|
||||
|
||||
|
||||
# The `config.mk' file must define `clean_freetype' and
|
||||
# `distclean_freetype'. Implementations may use to relay these to either
|
||||
# the `std' or `dos' versions, or simply provide their own implementation.
|
||||
#
|
||||
clean: clean_freetype |
||||
distclean: distclean_freetype remove_config_mk |
||||
|
||||
# EOF
|
@ -0,0 +1,186 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* ftconfig.h */ |
||||
/* */ |
||||
/* ANSI-specific configuration file (specification only). */ |
||||
/* */ |
||||
/* Copyright 1996-2000 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used */ |
||||
/* modified and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* This header file contains a number of macro definitions that are used */ |
||||
/* by the rest of the engine. Most of the macros here are automatically */ |
||||
/* determined at compile time, and you should not need to change it to */ |
||||
/* port FreeType, except to compile the library with a non ANSI compiler */ |
||||
/* */ |
||||
/* Note however that if some specific modifications are needed, we */ |
||||
/* advise you to place a modified copy in your build directory. */ |
||||
/* */ |
||||
/* The build directory is usually "freetype/config/<system>", and */ |
||||
/* contains system-specific files that are always included first when */ |
||||
/* building the library.. */ |
||||
/* */ |
||||
/* This ANSI version should stay in "freetype/config" */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
#ifndef FTCONFIG_H |
||||
#define FTCONFIG_H |
||||
|
||||
/* Include the header file containing all developer build options */ |
||||
#include <freetype/config/ftoption.h> |
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* PLATFORM-SPECIFIC CONFIGURATION MACROS */ |
||||
/* */ |
||||
/* These macros can be toggled to suit a specific system. The current */ |
||||
/* ones are defaults used to compile FreeType in an ANSI C environment */ |
||||
/* (16bit compilers are also supported). Copy this file to your own */ |
||||
/* `freetype/arch/<system>' directory, and edit it to port the engine. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
|
||||
/* Define to empty if the keyword does not work. */ |
||||
/* #undef const */ |
||||
|
||||
/* Define if you have the ANSI C header files. */ |
||||
#define STDC_HEADERS 1 |
||||
|
||||
/* We use <limits.h> values to know the sizes of the types. */ |
||||
#include <limits.h> |
||||
|
||||
/* The number of bytes in an `int' type. */ |
||||
#if UINT_MAX == 0xFFFFFFFF |
||||
#define SIZEOF_INT 4 |
||||
#elif UINT_MAX == 0xFFFF |
||||
#define SIZEOF_INT 2 |
||||
#elif UINT_MAX > 0xFFFFFFFF && UINT_MAX == 0xFFFFFFFFFFFFFFFF |
||||
#define SIZEOF_INT 8 |
||||
#else |
||||
#error "Unsupported number of bytes in `int' type!" |
||||
#endif |
||||
|
||||
/* The number of bytes in a `long' type. */ |
||||
#if ULONG_MAX == 0xFFFFFFFF |
||||
#define SIZEOF_LONG 4 |
||||
#elif ULONG_MAX > 0xFFFFFFFF && ULONG_MAX == 0xFFFFFFFFFFFFFFFF |
||||
#define SIZEOF_LONG 8 |
||||
#else |
||||
#error "Unsupported number of bytes in `long' type!" |
||||
#endif |
||||
|
||||
/* Define if you have the memcpy function. */ |
||||
#define HAVE_MEMCPY 1 |
||||
|
||||
/* Define if you have the <fcntl.h> header file. */ |
||||
#define HAVE_FCNTL_H 0 |
||||
|
||||
/* Define if you have the <unistd.h> header file. */ |
||||
#define HAVE_UNISTD_H 0 |
||||
|
||||
|
||||
/* Preferred alignment of data */ |
||||
#define FT_ALIGNMENT 8 |
||||
|
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* AUTOMATIC CONFIGURATION MACROS */ |
||||
/* */ |
||||
/* These macros are computed from the ones defined above. Don't touch */ |
||||
/* their definition, unless you know precisely what you're doing. No */ |
||||
/* porter should need to mess with them. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* IntN types */ |
||||
/* */ |
||||
/* Used to guarantee the size of some specific integers. */ |
||||
/* */ |
||||
typedef signed short FT_Int16; |
||||
typedef unsigned short FT_Word16; |
||||
|
||||
#if SIZEOF_INT == 4 |
||||
|
||||
typedef signed int FT_Int32; |
||||
typedef unsigned int FT_Word32; |
||||
|
||||
#elif SIZEOF_LONG == 4 |
||||
|
||||
typedef signed long FT_Int32; |
||||
typedef unsigned long FT_Word32; |
||||
|
||||
#else |
||||
#error "no 32bit type found - please check your configuration files" |
||||
#endif |
||||
|
||||
#if SIZEOF_LONG == 8 |
||||
|
||||
/* LONG64 must be defined when a 64-bit type is available */ |
||||
#define LONG64 |
||||
#define INT64 long |
||||
|
||||
#else |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* many compilers provide the non-ANSI 'long long' 64-bit type. You can */ |
||||
/* activate it by defining the FTCALC_USE_LONG_LONG macro in `ftoption.h'*/ |
||||
/* Note that this will produce many -ansi warnings during library */ |
||||
/* compilation, and that in many cases, the generated code will not be */ |
||||
/* smaller or faster !! */ |
||||
/* */ |
||||
#ifdef FTCALC_USE_LONG_LONG |
||||
|
||||
#define LONG64 |
||||
#define INT64 long long |
||||
|
||||
#endif /* FTCALC_USE_LONG_LONG */ |
||||
#endif |
||||
|
||||
|
||||
#ifdef FT_MAKE_OPTION_SINGLE_OBJECT |
||||
#define LOCAL_DEF static |
||||
#define LOCAL_FUNC static |
||||
#else |
||||
#define LOCAL_DEF extern |
||||
#define LOCAL_FUNC /* nothing */ |
||||
#endif |
||||
|
||||
#ifdef FT_MAKE_OPTION_SINGLE_LIBRARY_OBJECT |
||||
#define BASE_DEF LOCAL_DEF |
||||
#define BASE_FUNC LOCAL_FUNC |
||||
#else |
||||
#define BASE_DEF extern |
||||
#define BASE_FUNC /* nothing */ |
||||
#endif |
||||
|
||||
#ifndef EXPORT_DEF |
||||
#define EXPORT_DEF extern |
||||
#endif |
||||
|
||||
#ifndef EXPORT_FUNC |
||||
#define EXPORT_FUNC /* nothing */ |
||||
#endif |
||||
|
||||
#endif /* FTCONFIG_H */ |
||||
|
||||
|
||||
/* END */ |
@ -0,0 +1,115 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* fterrors.h */ |
||||
/* */ |
||||
/* FreeType error codes (specification). */ |
||||
/* */ |
||||
/* Copyright 1996-2000 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used */ |
||||
/* modified and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/* This file is used to define the FreeType error enumeration constants */ |
||||
/* It can also be used to create an error message table easily with */ |
||||
/* something like: */ |
||||
/* */ |
||||
/* { */ |
||||
/* */ |
||||
/* #undef FTERRORS_H */ |
||||
/* #define FT_ERRORDEF( e, v, s ) { e, s ], */ |
||||
/* #define FT_ERROR_START_LIST { */ |
||||
/* #define FT_ERROR_END_LIST { 0, 0 } }; */ |
||||
/* */ |
||||
/* const struct { int err_code; const char* err_msg } ft_errors[] = */ |
||||
/* #include <freetype/fterrors.h> */ |
||||
/* } */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
#ifndef FTERRORS_H |
||||
#define FTERRORS_H |
||||
|
||||
#ifndef FT_ERRORDEF |
||||
#define FT_ERRORDEF( e, v, s ) e = v, |
||||
#define FT_ERROR_START_LIST enum { |
||||
#define FT_ERROR_END_LIST FT_Err_Max }; |
||||
#endif /* FT_ERRORDEF */ |
||||
|
||||
#ifdef FT_ERROR_START_LIST |
||||
FT_ERROR_START_LIST |
||||
#endif |
||||
|
||||
FT_ERRORDEF( FT_Err_Ok, 0x0000, "no error" ) |
||||
FT_ERRORDEF( FT_Err_Cannot_Open_Resource, 0x0001, "can't open stream" ) |
||||
FT_ERRORDEF( FT_Err_Unknown_File_Format, 0x0002, "unknown file format" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_File_Format, 0x0003, "broken file" ) |
||||
|
||||
FT_ERRORDEF( FT_Err_Invalid_Argument, 0x0010, "invalid argument" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Handle, 0x0011, "invalid object handle" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Glyph_Index, 0x0012, "invalid glyph index" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Character_Code, 0x0013, "invalid character code" ) |
||||
|
||||
FT_ERRORDEF( FT_Err_Unimplemented_Feature, 0x0020, "unimplemented feature" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Glyph_Format, 0x0021, "invalid glyph image format" ) |
||||
|
||||
FT_ERRORDEF( FT_Err_Invalid_Library_Handle, 0x0030, "invalid library handle" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Driver_Handle, 0x0031, "invalid module handle" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Face_Handle, 0x0032, "invalid face handle" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Size_Handle, 0x0033, "invalid size handle" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Slot_Handle, 0x0034, "invalid glyph slot handle" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_CharMap_Handle, 0x0035, "invalid charmap handle" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Outline, 0x0036, "invalid outline" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Dimensions, 0x0037, "invalid dimensions" ) |
||||
|
||||
FT_ERRORDEF( FT_Err_Unavailable_Outline, 0x0040, "unavailable outline" ) |
||||
FT_ERRORDEF( FT_Err_Unavailable_Bitmap, 0x0041, "unavailable bitmap" ) |
||||
FT_ERRORDEF( FT_Err_File_Is_Not_Collection, 0x0042, "file is not a font collection" ) |
||||
FT_ERRORDEF( FT_Err_Too_Many_Drivers, 0x0043, "too many modules" ) |
||||
FT_ERRORDEF( FT_Err_Too_Many_Glyph_Formats, 0x0044, "too many glyph formats" ) |
||||
FT_ERRORDEF( FT_Err_Too_Many_Extensions, 0x0045, "too many extensions" ) |
||||
|
||||
FT_ERRORDEF( FT_Err_Out_Of_Memory, 0x0050, "out of memory" ) |
||||
FT_ERRORDEF( FT_Err_Unlisted_Object, 0x0051, "unlisted object" ) |
||||
|
||||
FT_ERRORDEF( FT_Err_Invalid_Stream_Handle, 0x0060, "invalid stream handle" ) |
||||
FT_ERRORDEF( FT_Err_Cannot_Open_Stream, 0x0061, "cannot open stream" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Stream_Seek, 0x0062, "invalid stream seek" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Stream_Skip, 0x0063, "invalid stream skip" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Stream_Read, 0x0064, "invalid stream read" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Stream_Operation, 0x0065, "invalid stream operation" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Frame_Operation, 0x0066, "invalid frame operation" ) |
||||
FT_ERRORDEF( FT_Err_Nested_Frame_Access, 0x0067, "nested frame access" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Frame_Read, 0x0068, "invalid frame read" ) |
||||
|
||||
FT_ERRORDEF( FT_Err_Too_Many_Points, 0x0070, "too many points in glyph" ) |
||||
FT_ERRORDEF( FT_Err_Too_Many_Contours, 0x0071, "too many contours in glyph" ) |
||||
FT_ERRORDEF( FT_Err_Invalid_Composite, 0x0072, "invalid composite glyph" ) |
||||
FT_ERRORDEF( FT_Err_Too_Many_Hints, 0x0073, "too many hints in glyph" ) |
||||
FT_ERRORDEF( FT_Err_Too_Many_Edges, 0x0074, "too many edges in glyph" ) |
||||
FT_ERRORDEF( FT_Err_Too_Many_Strokes, 0x0075, "too many strokes in glyph" ) |
||||
|
||||
/* range 0x400 - 0x4FF is reserved for TrueType specific stuff */ |
||||
|
||||
/* range 0x500 - 0x5FF is reserved for TrueDoc specific stuff */ |
||||
|
||||
/* range 0x600 - 0x6FF is reserved for Type1 specific stuff */ |
||||
|
||||
FT_ERRORDEF( FT_Err_Raster_Uninitialized, 0x0080, "raster uninitialized" ) |
||||
FT_ERRORDEF( FT_Err_Raster_Corrupted, 0x0081, "raster corrupted !!" ) |
||||
FT_ERRORDEF( FT_Err_Raster_Overflow, 0x0082, "raster overflow !!" ) |
||||
|
||||
#ifdef FT_ERROR_END_LIST |
||||
FT_ERROR_END_LIST |
||||
#endif |
||||
|
||||
#undef FT_ERROR_START_LIST |
||||
#undef FT_ERROR_END_LIST |
||||
#undef FT_ERRORDEF |
||||
|
||||
#endif /* FTERRORS_H */ |
||||
|
||||
/* END */ |
@ -1,7 +1,7 @@ |
||||
#ifndef FTGRAYS_H |
||||
#define FTGRAYS_H |
||||
|
||||
#include <ftimage.h> |
||||
#include <freetype/ftimage.h> |
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
@ -1,6 +1,6 @@ |
||||
#ifndef FTOUTLN_H |
||||
#define FTOUTLN_H |
||||
|
||||
#include <ftobjs.h> |
||||
#include <freetype/internal/ftobjs.h> |
||||
|
||||
#endif /* FTOUTLN_H */ |
@ -1,7 +1,7 @@ |
||||
#ifndef FTSTREAM_H |
||||
#define FTSTREAM_H |
||||
|
||||
#include <ftobjs.h> |
||||
#include <freetype/internal/ftobjs.h> |
||||
|
||||
/* format of an 8-bit frame_op value = [ xxxxx | e | s ] */ |
||||
/* where s is set to 1 when the value is signed.. */ |
@ -1,82 +0,0 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* fterrors.h */ |
||||
/* */ |
||||
/* FreeType error codes (specification). */ |
||||
/* */ |
||||
/* Copyright 1996-1999 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used */ |
||||
/* modified and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
#define FT_Err_Ok 0x000 |
||||
|
||||
#define FT_Err_Cannot_Open_Resource 0x001 |
||||
#define FT_Err_Unknown_File_Format 0x002 |
||||
#define FT_Err_Invalid_File_Format 0x002 |
||||
|
||||
#define FT_Err_Invalid_Argument 0x003 |
||||
#define FT_Err_Invalid_Handle 0x004 |
||||
#define FT_Err_Invalid_Glyph_Index 0x00A |
||||
#define FT_Err_Invalid_Character_Code 0x00B |
||||
|
||||
#define FT_Err_Unimplemented_Feature 0x010 |
||||
#define FT_Err_Invalid_Glyph_Format 0x00D |
||||
|
||||
#define FT_Err_Invalid_Library_Handle 0x004 |
||||
#define FT_Err_Invalid_Driver_Handle 0x005 |
||||
#define FT_Err_Invalid_Face_Handle 0x006 |
||||
#define FT_Err_Invalid_Size_Handle 0x007 |
||||
#define FT_Err_Invalid_Slot_Handle 0x008 |
||||
#define FT_Err_Invalid_CharMap_Handle 0x009 |
||||
#define FT_Err_Invalid_Outline 0x00B |
||||
#define FT_Err_Invalid_Dimensions 0x00C |
||||
|
||||
#define FT_Err_Unavailable_Outline 0x011 |
||||
#define FT_Err_Unavailable_Bitmap 0x012 |
||||
#define FT_Err_Unavailable_Pixmap 0x013 |
||||
#define FT_Err_File_Is_Not_Collection 0x014 |
||||
#define FT_Err_Too_Many_Drivers 0x015 |
||||
#define FT_Err_Too_Many_Glyph_Formats 0x016 |
||||
#define FT_Err_Too_Many_Extensions 0x017 |
||||
|
||||
#define FT_Err_Out_Of_Memory 0x100 |
||||
#define FT_Err_Unlisted_Object 0x101 |
||||
|
||||
#define FT_Err_Invalid_Resource_Handle 0x200 |
||||
#define FT_Err_Invalid_Stream_Handle 0x201 |
||||
#define FT_Err_Cannot_Open_Stream 0x202 |
||||
#define FT_Err_Invalid_Stream_Seek 0x203 |
||||
#define FT_Err_Invalid_Stream_Skip 0x204 |
||||
#define FT_Err_Invalid_Stream_Read 0x205 |
||||
#define FT_Err_Invalid_Stream_Operation 0x206 |
||||
#define FT_Err_Invalid_Frame_Operation 0x207 |
||||
#define FT_Err_Nested_Frame_Access 0x208 |
||||
#define FT_Err_Invalid_Frame_Read 0x209 |
||||
|
||||
#define FT_Err_Too_Many_Points 0x300 |
||||
#define FT_Err_Too_Many_Contours 0x301 |
||||
#define FT_Err_Invalid_Composite 0x302 |
||||
#define FT_Err_Too_Many_Hints 0x303 |
||||
#define FT_Err_Too_Many_Edges 0x304 |
||||
#define FT_Err_Too_Many_Strokes 0x305 |
||||
|
||||
/* range 0x400 - 0x4FF is reserved for TrueType specific stuff */ |
||||
|
||||
/* range 0x500 - 0x5FF is reserved for TrueDoc specific stuff */ |
||||
|
||||
/* range 0x600 - 0x6FF is reserved for Type1 specific stuff */ |
||||
|
||||
#define FT_Err_Raster_Uninitialized 0xF00 |
||||
#define FT_Err_Raster_Corrupted 0xF01 |
||||
#define FT_Err_Raster_Overflow 0xF02 |
||||
|
||||
|
||||
/* END */ |
@ -1,6 +0,0 @@ |
||||
WARNING: |
||||
|
||||
The files in these subdirectories are shared by several font drivers. |
||||
|
||||
All C source files are included by at least one of the drivers, and |
||||
thus should _never_ be compiled directly. |
@ -1,27 +0,0 @@ |
||||
#
|
||||
# FreeType 2 shared files configuration rules
|
||||
#
|
||||
|
||||
|
||||
# Copyright 1996-2000 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used modified
|
||||
# and distributed under the terms of the FreeType project license,
|
||||
# LICENSE.TXT. By continuing to use, modify, or distribute this file you
|
||||
# indicate that you have read the license and understand and accept it
|
||||
# fully.
|
||||
|
||||
|
||||
ifndef SHARED_RULES |
||||
SHARED_RULES := 1
|
||||
|
||||
SHARED := $(SRC_)shared
|
||||
SHARED_ := $(SHARED)$(SEP)
|
||||
|
||||
SHARED_H := $(wildcard $(SHARED_)*.h)
|
||||
SHARED_SRC := $(wildcard $(SHARED_)*.c)
|
||||
|
||||
endif |
||||
|
||||
# EOF
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue