2003-04-21 17:30:27 +04:00
|
|
|
Debugging within the FreeType sources
|
|
|
|
=====================================
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
I. Configuration macros
|
|
|
|
-----------------------
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
There are several ways to enable debugging features in a FreeType 2
|
|
|
|
builds. This is controlled through the definition of special macros
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
located in the file `ftoptions.h'. The macros are:
|
2002-07-09 03:02:32 +04:00
|
|
|
|
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
FT_DEBUG_LEVEL_ERROR
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
#define this macro if you want to compile the FT_ERROR macro calls
|
2003-04-21 17:30:27 +04:00
|
|
|
to print error messages during program execution. This will not
|
|
|
|
stop the program. Very useful to spot invalid fonts during
|
|
|
|
development and to code workarounds for them.
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
FT_DEBUG_LEVEL_TRACE
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
#define this macro if you want to compile both macros FT_ERROR and
|
|
|
|
FT_TRACE. This also includes the variants FT_TRACE0, FT_TRACE1,
|
2004-09-04 10:55:32 +04:00
|
|
|
FT_TRACE2, ..., FT_TRACE7.
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
The trace macros are used to send debugging messages when an
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
appropriate `debug level' is configured at runtime through the
|
2002-07-26 13:09:10 +04:00
|
|
|
FT2_DEBUG environment variable (more on this later).
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
FT_DEBUG_MEMORY
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
If this macro is #defined, the FreeType engine is linked with a
|
2002-07-26 13:09:10 +04:00
|
|
|
small but effective debugging memory manager that tracks all
|
|
|
|
allocations and frees that are performed within the font engine.
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
When the FT2_DEBUG_MEMORY environment variable is defined at
|
|
|
|
runtime, a call to FT_Done_FreeType will dump memory statistics,
|
|
|
|
including the list of leaked memory blocks with the source locations
|
2003-04-21 17:30:27 +04:00
|
|
|
where these were allocated. It is always a very good idea to define
|
2002-07-26 13:09:10 +04:00
|
|
|
this in development builds. This works with _any_ program linked to
|
|
|
|
FreeType, but requires a big deal of memory (the debugging memory
|
|
|
|
manager never frees the blocks to the heap in order to detect double
|
|
|
|
frees).
|
2002-07-09 03:02:32 +04:00
|
|
|
|
|
|
|
When FT2_DEBUG_MEMORY isn't defined at runtime, the debugging memory
|
2003-04-21 17:30:27 +04:00
|
|
|
manager is ignored, and performance is unaffected.
|
2002-07-09 03:02:32 +04:00
|
|
|
|
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
II. Debugging macros
|
|
|
|
--------------------
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
Several macros can be used within the FreeType sources to help debugging
|
|
|
|
its code:
|
2002-07-09 03:02:32 +04:00
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
1. FT_ERROR(( ... ))
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
This macro is used to send debug messages that indicate relatively
|
|
|
|
serious errors (like broken font files), but will not stop the
|
|
|
|
execution of the running program. Its code is compiled only when
|
|
|
|
either FT_DEBUG_LEVEL_ERROR or FT_DEBUG_LEVEL_TRACE are defined in
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
`ftoption.h'.
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
Note that you have to use a printf-like signature, but with double
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
parentheses, like in
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
FT_ERROR(( "your %s is not %s\n", "foo", "bar" ));
|
2002-07-09 03:02:32 +04:00
|
|
|
|
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
2. FT_ASSERT( condition )
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
This macro is used to check strong assertions at runtime. If its
|
|
|
|
condition isn't TRUE, the program will abort with a panic message.
|
|
|
|
Its code is compiled when either FT_DEBUG_LEVEL_ERROR or
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
FT_DEBUG_LEVEL_TRACE are defined. You don't need double parentheses
|
|
|
|
here. For example
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
FT_ASSERT( ptr != NULL );
|
2002-07-09 03:02:32 +04:00
|
|
|
|
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
3. FT_TRACE( level, (message...) )
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
The FT_TRACE macro is used to send general-purpose debugging
|
|
|
|
messages during program execution. This macro uses an *implicit*
|
|
|
|
macro named FT_COMPONENT used to name the current FreeType component
|
|
|
|
being run.
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
The developer should always define FT_COMPONENT as appropriate, for
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
example as in
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
#undef FT_COMPONENT
|
|
|
|
#define FT_COMPONENT trace_io
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
The value of the FT_COMPONENT macro is an enumeration named
|
|
|
|
trace_XXXX where XXXX is one of the component names defined in the
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
internal file `freetype/internal/fttrace.h'.
|
2002-07-09 03:02:32 +04:00
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
Each such component is assigned a `debug level', ranging from 0
|
|
|
|
to 7, through the use of the FT2_DEBUG environment variable
|
2003-04-21 17:30:27 +04:00
|
|
|
(described below) when a program linked with FreeType starts.
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
When FT_TRACE is called, its level is compared to the one of the
|
|
|
|
corresponding component. Messages with trace levels *higher* than
|
|
|
|
the corresponding component level are filtered and never printed.
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
This means that trace messages with level 0 are always printed,
|
|
|
|
those with level 2 are only printed when the component level is *at
|
|
|
|
least* 2.
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
The second parameter to FT_TRACE must contain parentheses and
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
correspond to a printf-like call, as in
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
FT_TRACE( 2, ( "your %s is not %s\n", "foo", "bar" ) )
|
2002-07-09 03:02:32 +04:00
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
The shortcut macros FT_TRACE0, FT_TRACE1, FT_TRACE2, ..., FT_TRACE7
|
2002-07-26 13:09:10 +04:00
|
|
|
can be used with constant level indices, and are much cleaner to
|
|
|
|
use, as in
|
2002-07-09 03:02:32 +04:00
|
|
|
|
|
|
|
FT_TRACE2(( "your %s is not %s\n", "foo", "bar" ));
|
|
|
|
|
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
III. Environment variables
|
|
|
|
--------------------------
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
The following environment variables control debugging output and
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
behaviour of FreeType at runtime.
|
|
|
|
|
2002-07-09 03:02:32 +04:00
|
|
|
|
|
|
|
FT2_DEBUG
|
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
This variable is only used when FreeType is built with
|
|
|
|
FT_DEBUG_LEVEL_TRACE defined. It contains a list of component level
|
|
|
|
definitions, following this format:
|
|
|
|
|
|
|
|
component1:level1 component2:level2 component3:level3 ...
|
2002-07-09 03:02:32 +04:00
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
where `componentX' is the name of a tracing component, as defined in
|
|
|
|
`fttrace.h', but without the `trace_' prefix. `levelX' is the
|
2002-07-09 03:02:32 +04:00
|
|
|
corresponding level to use at runtime.
|
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
`any' is a special component name that will be interpreted as
|
|
|
|
`any/all components'. For example, the following definitions
|
2002-07-09 03:02:32 +04:00
|
|
|
|
|
|
|
set FT2_DEBUG=any:2 memory:5 io:4 (on Windows)
|
2003-04-21 17:30:27 +04:00
|
|
|
export FT2_DEBUG="any:2 memory:5 io:4" (on Linux with bash)
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
both stipulate that all components should have level 2, except for
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
the memory and io components which will be set to trace levels 5 and
|
|
|
|
4, respectively.
|
|
|
|
|
2002-07-09 03:02:32 +04:00
|
|
|
|
|
|
|
FT2_DEBUG_MEMORY
|
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
This environment variable, when defined, tells FreeType to use a
|
2003-04-21 17:30:27 +04:00
|
|
|
debugging memory manager that will track leaking memory blocks as
|
2002-07-26 13:09:10 +04:00
|
|
|
well as other common errors like double frees. It is also capable
|
2003-04-21 17:30:27 +04:00
|
|
|
of reporting _where_ the leaking blocks were allocated, which
|
2002-07-26 13:09:10 +04:00
|
|
|
considerably saves time when debugging new additions to the library.
|
2002-07-09 03:02:32 +04:00
|
|
|
|
2002-07-26 13:09:10 +04:00
|
|
|
This code is only compiled when FreeType is built with the
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
FT_DEBUG_MEMORY macro #defined in `ftoption.h' though, it will be
|
2002-07-26 13:09:10 +04:00
|
|
|
ignored in other builds.
|
2002-07-09 03:02:32 +04:00
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
|
2003-03-14 00:07:51 +03:00
|
|
|
FT2_ALLOC_TOTAL_MAX
|
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
This variable is ignored if FT2_DEBUG_MEMORY is not defined. It
|
|
|
|
allows you to specify a maximum heap size for all memory allocations
|
|
|
|
performed by FreeType. This is very useful to test the robustness
|
|
|
|
of the font engine and programs that use it in tight memory
|
|
|
|
conditions.
|
2003-03-14 00:07:51 +03:00
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
If it is undefined, or if its value is not strictly positive, then
|
|
|
|
no allocation bounds are checked at runtime.
|
2003-03-14 00:07:51 +03:00
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
|
2003-03-14 00:07:51 +03:00
|
|
|
FT2_ALLOC_COUNT_MAX
|
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
This variable is ignored if FT2_DEBUG_MEMORY is not defined. It
|
|
|
|
allows you to specify a maximum number of memory allocations
|
|
|
|
performed by FreeType before returning the error
|
|
|
|
FT_Err_Out_Of_Memory. This is useful for debugging and testing the
|
|
|
|
engine's robustness.
|
2003-03-14 00:07:51 +03:00
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
If it is undefined, or if its value is not strictly positive, then
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
no allocation bounds are checked at runtime.
|
2003-04-21 17:30:27 +04:00
|
|
|
|
2005-06-05 03:00:25 +04:00
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
Copyright 2002, 2003, 2004, 2005 by
|
2005-06-05 03:00:25 +04:00
|
|
|
David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
|
|
|
* include/freetype/freetype.h, include/freetype/ftchapters.h: Add
a preliminary section with some explanations about user allocation.
* src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
Don't abort if there are no data types, functions, etc., in a
section.
Print synopsis only if we have a data type, function, etc.
* docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
2005-08-30 04:22:46 +04:00
|
|
|
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
|
2005-06-05 03:00:25 +04:00
|
|
|
accept it fully.
|
|
|
|
|
2003-03-14 00:07:51 +03:00
|
|
|
|
2003-04-21 17:30:27 +04:00
|
|
|
--- end of DEBUG ---
|