* include/freetype/freetype.h, include/freetype/ftimage.h,
include/freetype/ftstroker.h, include/freetype/ftsysio.h, include/freetype/ftsysmem.h, include/freetype/ttnameid.h: updating the in-source documentation * src/tools/docmaker/tohtml.py: updating the HTML formatter in the DocMaker tool * src/tools/docmaker.py: removing obsolete file
This commit is contained in:
parent
25bf13fe3e
commit
6035828d83
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
2002-09-17 David Turner <david@freetype.org>
|
||||
|
||||
* include/freetype/freetype.h, include/freetype/ftimage.h,
|
||||
include/freetype/ftstroker.h, include/freetype/ftsysio.h,
|
||||
include/freetype/ftsysmem.h, include/freetype/ttnameid.h:
|
||||
updating the in-source documentation
|
||||
|
||||
* src/tools/docmaker/tohtml.py: updating the HTML formatter in the
|
||||
DocMaker tool
|
||||
|
||||
* src/tools/docmaker.py: removing obsolete file
|
||||
|
||||
2002-09-17 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
More 16bit fixes.
|
||||
|
|
|
@ -639,8 +639,6 @@ FT_BEGIN_HEADER
|
|||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* FreeType base face object */
|
||||
/* */
|
||||
/* <Struct> */
|
||||
/* FT_FaceRec */
|
||||
/* */
|
||||
|
@ -1177,8 +1175,6 @@ FT_BEGIN_HEADER
|
|||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* FreeType base size class */
|
||||
/* */
|
||||
/* <Struct> */
|
||||
/* FT_SizeRec */
|
||||
/* */
|
||||
|
@ -1236,8 +1232,6 @@ FT_BEGIN_HEADER
|
|||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* FreeType Glyph Slot base class */
|
||||
/* */
|
||||
/* <Struct> */
|
||||
/* FT_GlyphSlotRec */
|
||||
/* */
|
||||
|
@ -2069,7 +2063,7 @@ FT_BEGIN_HEADER
|
|||
* this does not prevent you from rendering outlines to bitmaps
|
||||
* with @FT_LOAD_RENDER however.
|
||||
*
|
||||
* FT_LOAD_VERTICAL_LAYOUT:
|
||||
* FT_LOAD_VERTICAL_LAYOUT ::
|
||||
* indicates that the glyph image should be prepared for vertical
|
||||
* text layout. This basically means that 'face.glyph.advance' will
|
||||
* correspond to the vertical advance height (instead of the default
|
||||
|
@ -2146,59 +2140,24 @@ FT_BEGIN_HEADER
|
|||
#define FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH 0x200
|
||||
#define FT_LOAD_NO_RECURSE 0x400
|
||||
#define FT_LOAD_IGNORE_TRANSFORM 0x800
|
||||
#define FT_LOAD_MONOCHROME 0x1000
|
||||
#define FT_LOAD_LINEAR_DESIGN 0x2000
|
||||
#define FT_LOAD_MONOCHROME 0x1000
|
||||
#define FT_LOAD_LINEAR_DESIGN 0x2000
|
||||
|
||||
/* temporary hack! */
|
||||
#define FT_LOAD_SBITS_ONLY 0x4000
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Constant> */
|
||||
/* FT_LOAD_NO_AUTOHINT */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* A bit field constant, used with @FT_Load_Glyph to indicate that */
|
||||
/* the auto-hinter should never be run. This can be important for */
|
||||
/* certain fonts where un-hinted output is better than auto-hinted */
|
||||
/* one. */
|
||||
/* */
|
||||
/* Note that this will _not_ prevent a native hinter to be run */
|
||||
/* when available (i.e. for Postscript fonts, or for TrueType ones */
|
||||
/* when the bytecode interpreter was compiled in). */
|
||||
/* */
|
||||
/* If you want to completely disable hinting, use @FT_LOAD_NO_HINTING */
|
||||
/* instead. */
|
||||
/* */
|
||||
/* The @FT_LOAD_FORCE_AUTOHINT flag will not work if this flag is */
|
||||
/* set. */
|
||||
/* */
|
||||
#define FT_LOAD_NO_AUTOHINT 0x8000U
|
||||
#define FT_LOAD_SBITS_ONLY 0x4000
|
||||
#define FT_LOAD_NO_AUTOHINT 0x8000U
|
||||
|
||||
/* */
|
||||
|
||||
#define FT_LOAD_TARGET_( x ) ( (FT_Int32)( (x) & 7 ) << 16 )
|
||||
#define FT_LOAD_TARGET_MODE( x ) ( (FT_Render_Mode)( ( (x) >> 16 ) & 7 ) )
|
||||
|
||||
#define FT_LOAD_TARGET_NORMAL FT_LOAD_TARGET_( FT_RENDER_MODE_NORMAL )
|
||||
#define FT_LOAD_TARGET_MONO FT_LOAD_TARGET_( FT_RENDER_MODE_MONO )
|
||||
#define FT_LOAD_TARGET_LCD FT_LOAD_TARGET_( FT_RENDER_MODE_LCD )
|
||||
#define FT_LOAD_TARGET_LCD_V FT_LOAD_TARGET_( FT_RENDER_MODE_LCD_V )
|
||||
#define FT_LOAD_TARGET_NORMAL FT_LOAD_TARGET_( FT_RENDER_MODE_NORMAL )
|
||||
#define FT_LOAD_TARGET_MONO FT_LOAD_TARGET_( FT_RENDER_MODE_MONO )
|
||||
#define FT_LOAD_TARGET_LCD FT_LOAD_TARGET_( FT_RENDER_MODE_LCD )
|
||||
#define FT_LOAD_TARGET_LCD_V FT_LOAD_TARGET_( FT_RENDER_MODE_LCD_V )
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Constant> */
|
||||
/* FT_LOAD_DEFAULT */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* A bit-field constant, used with @FT_Load_Glyph to indicate that */
|
||||
/* the function should try to load the glyph normally, i.e., */
|
||||
/* embedded bitmaps are favored over outlines, vectors are always */
|
||||
/* scaled and grid-fitted. */
|
||||
/* */
|
||||
#define FT_LOAD_DEFAULT 0x0
|
||||
#define FT_LOAD_DEFAULT 0x0
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
|
@ -2243,7 +2202,7 @@ FT_BEGIN_HEADER
|
|||
/* conversion performed on the outline, as well as specific */
|
||||
/* hinting optimizations. */
|
||||
/* */
|
||||
/* <Fields> */
|
||||
/* <Values> */
|
||||
/* FT_RENDER_MODE_NORMAL :: */
|
||||
/* This is the default render mode; it corresponds to 8-bit */
|
||||
/* anti-aliased bitmaps, using 256 levels of opacity. */
|
||||
|
@ -2333,7 +2292,7 @@ FT_BEGIN_HEADER
|
|||
/* An enumeration used to specify which kerning values to return in */
|
||||
/* @FT_Get_Kerning. */
|
||||
/* */
|
||||
/* <Fields> */
|
||||
/* <Values> */
|
||||
/* FT_KERNING_DEFAULT :: Return scaled and grid-fitted kerning */
|
||||
/* distances (value is 0). */
|
||||
/* */
|
||||
|
@ -2882,67 +2841,6 @@ FT_BEGIN_HEADER
|
|||
FT_Matrix* matrix );
|
||||
|
||||
|
||||
/*@***********************************************************************/
|
||||
/* */
|
||||
/* <Function> */
|
||||
/* FT_Set_Hint_Flags */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* A function used to set a number of flags that are used to control */
|
||||
/* the hinting process when glyphs are loaded. */
|
||||
/* */
|
||||
/* <InOut> */
|
||||
/* face :: A handle to the source face object. */
|
||||
/* */
|
||||
/* <Input> */
|
||||
/* flags :: A set of bit flags that control the hinting process. */
|
||||
/* See the FT_HINT_XXX constants for details. */
|
||||
/* */
|
||||
/* <Note> */
|
||||
/* The interpretation of the flags depends on the hinter module in */
|
||||
/* use. Not all modules will support all flags. */
|
||||
/* */
|
||||
FT_EXPORT( void )
|
||||
FT_Set_Hint_Flags( FT_Face face,
|
||||
FT_ULong hint_flags );
|
||||
|
||||
|
||||
/*@***********************************************************************/
|
||||
/* */
|
||||
/* <Constant> */
|
||||
/* FT_HINT_NO_INTEGER_STEM */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* A bit-field constant, used with @FT_Set_Hint_Flags to to suppress */
|
||||
/* snapping of stem widths to integer values. */
|
||||
/* */
|
||||
#define FT_HINT_NO_INTEGER_STEM 1
|
||||
|
||||
|
||||
/*@***********************************************************************/
|
||||
/* */
|
||||
/* <Constant> */
|
||||
/* FT_HINT_NO_HSTEM_ALIGN */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* A bit-field constant, used with @FT_Set_Hint_Flags to to suppress */
|
||||
/* alignment of horizontal stems with the pixel grid. */
|
||||
/* */
|
||||
#define FT_HINT_NO_HSTEM_ALIGN 2
|
||||
|
||||
|
||||
/*@***********************************************************************/
|
||||
/* */
|
||||
/* <Constant> */
|
||||
/* FT_HINT_NO_VSTEM_ALIGN */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* A bit-field constant, used with @FT_Set_Hint_Flags to to suppress */
|
||||
/* alignment of vertical stems with the pixel grid. */
|
||||
/* */
|
||||
#define FT_HINT_NO_VSTEM_ALIGN 4
|
||||
|
||||
|
||||
/* */
|
||||
|
||||
|
||||
|
|
|
@ -117,7 +117,10 @@ FT_BEGIN_HEADER
|
|||
/* given bitmap. Note that additional formats may be added in the */
|
||||
/* future. */
|
||||
/* */
|
||||
/* <Fields> */
|
||||
/* <Values> */
|
||||
/* FT_PIXEL_MODE_NONE :: */
|
||||
/* Value 0 is reserved. */
|
||||
/* */
|
||||
/* FT_PIXEL_MODE_MONO :: */
|
||||
/* A monochrome bitmap, using 1 bit per pixel. Note that pixels */
|
||||
/* are stored in most-significant order (MSB), which means that */
|
||||
|
@ -360,7 +363,9 @@ FT_BEGIN_HEADER
|
|||
/* A simple type used to enumerates the flags in an outline's */
|
||||
/* `outline_flags' field. */
|
||||
/* */
|
||||
/* <Fields> */
|
||||
/* <Values> */
|
||||
/* FT_OUTLINE_NONE :: Value 0 is reserved. */
|
||||
/* */
|
||||
/* FT_OUTLINE_OWNER :: If set, this flag indicates that the */
|
||||
/* outline's field arrays (i.e. */
|
||||
/* `points', `flags' & `contours') are */
|
||||
|
@ -422,88 +427,30 @@ FT_BEGIN_HEADER
|
|||
} FT_Outline_Flags;
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* ft_outline_none */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* This constant is deprecated. Please use @FT_OUTLINE_NONE */
|
||||
/* instead. */
|
||||
/* */
|
||||
#define ft_outline_none FT_OUTLINE_NONE
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* ft_outline_owner */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* This constant is deprecated. Please use @FT_OUTLINE_OWNER */
|
||||
/* instead. */
|
||||
/* */
|
||||
#define ft_outline_owner FT_OUTLINE_OWNER
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* ft_outline_even_odd_fill */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* This constant is deprecated. Please use @FT_OUTLINE_EVEN_ODD_FILL */
|
||||
/* instead. */
|
||||
/* */
|
||||
#define ft_outline_even_odd_fill FT_OUTLINE_EVEN_ODD_FILL
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* ft_outline_reverse_fill */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* This constant is deprecated. Please use @FT_OUTLINE_REVERSE_FILL */
|
||||
/* instead. */
|
||||
/* */
|
||||
#define ft_outline_reverse_fill FT_OUTLINE_REVERSE_FILL
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* ft_outline_ignore_dropouts */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* This constant is deprecated. Please use */
|
||||
/* @FT_OUTLINE_IGNORE_DROPOUTS instead. */
|
||||
/* */
|
||||
/*************************************************************************
|
||||
*
|
||||
* @enum: ft_outline_xxx
|
||||
*
|
||||
* @description:
|
||||
* these constants are deprecated. Please use the corresponding
|
||||
* @FT_OUTLINE_XXX values
|
||||
*
|
||||
* @values:
|
||||
* ft_outline_none :: see @FT_OUTLINE_NONE
|
||||
* ft_outline_owner :: see @FT_OUTLINE_OWNER
|
||||
* ft_outline_even_odd_fill :: see @FT_OUTLINE_EVEN_ODD_FILL
|
||||
* ft_outline_reverse_fill :: see @FT_OUTLINE_REVERSE_FILL
|
||||
* ft_outline_ignore_dropouts :: see @FT_OUTLINE_IGNORE_DROPOUTS
|
||||
* ft_outline_high_precision :: see @FT_OUTLINE_HIGH_PRECISION
|
||||
* ft_outline_single_pass :: see @FT_OUTLINE_SINGLE_PASS
|
||||
*/
|
||||
#define ft_outline_none FT_OUTLINE_NONE
|
||||
#define ft_outline_owner FT_OUTLINE_OWNER
|
||||
#define ft_outline_even_odd_fill FT_OUTLINE_EVEN_ODD_FILL
|
||||
#define ft_outline_reverse_fill FT_OUTLINE_REVERSE_FILL
|
||||
#define ft_outline_ignore_dropouts FT_OUTLINE_IGNORE_DROPOUTS
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* ft_outline_high_precision */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* This constant is deprecated. Please use */
|
||||
/* @FT_OUTLINE_HIGH_PRECISION instead. */
|
||||
/* */
|
||||
#define ft_outline_high_precision FT_OUTLINE_HIGH_PRECISION
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Const> */
|
||||
/* ft_outline_single_pass */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* This constant is deprecated. Please use @FT_OUTLINE_SINGLE_PASS */
|
||||
/* instead. */
|
||||
/* */
|
||||
#define ft_outline_single_pass FT_OUTLINE_SINGLE_PASS
|
||||
#define ft_outline_high_precision FT_OUTLINE_HIGH_PRECISION
|
||||
#define ft_outline_single_pass FT_OUTLINE_SINGLE_PASS
|
||||
|
||||
/* */
|
||||
|
||||
|
@ -823,7 +770,7 @@ FT_BEGIN_HEADER
|
|||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Section> */
|
||||
/* Raster */
|
||||
/* raster */
|
||||
/* */
|
||||
/* <Title> */
|
||||
/* Scanline converter */
|
||||
|
@ -995,7 +942,7 @@ FT_BEGIN_HEADER
|
|||
/* An enumeration to list the bit flags as used in the `flags' field */
|
||||
/* of a FT_Raster_Params structure. */
|
||||
/* */
|
||||
/* <Fields> */
|
||||
/* <Values> */
|
||||
/* FT_RASTER_FLAG_DEFAULT :: This value is 0. */
|
||||
/* */
|
||||
/* FT_RASTER_FLAG_AA :: This flag is set to indicate that an */
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
FT_BEGIN_HEADER
|
||||
|
||||
/**************************************************************
|
||||
/*@*************************************************************
|
||||
*
|
||||
* @type: FT_Stroker
|
||||
*
|
||||
|
@ -16,7 +16,7 @@ FT_BEGIN_HEADER
|
|||
typedef struct FT_StrokerRec_* FT_Stroker;
|
||||
|
||||
|
||||
/**************************************************************
|
||||
/*@*************************************************************
|
||||
*
|
||||
* @enum: FT_Stroker_LineJoin
|
||||
*
|
||||
|
@ -48,7 +48,7 @@ FT_BEGIN_HEADER
|
|||
} FT_Stroker_LineJoin;
|
||||
|
||||
|
||||
/**************************************************************
|
||||
/*@*************************************************************
|
||||
*
|
||||
* @enum: FT_Stroker_LineCap
|
||||
*
|
||||
|
@ -65,7 +65,7 @@ FT_BEGIN_HEADER
|
|||
* the end of lines is rendered as a half-circle around the
|
||||
* last point
|
||||
*
|
||||
* FT_STROKER_LINEJOIN_MITER ::
|
||||
* FT_STROKER_LINECAP_SQUARE ::
|
||||
* the end of lines is rendered as a square around the
|
||||
* last point
|
||||
*/
|
||||
|
@ -77,6 +77,7 @@ FT_BEGIN_HEADER
|
|||
|
||||
} FT_Stroker_LineCap;
|
||||
|
||||
/* */
|
||||
|
||||
FT_EXPORT( FT_Error )
|
||||
FT_Stroker_New( FT_Memory memory,
|
||||
|
|
|
@ -1,6 +1,16 @@
|
|||
#ifndef __FT_SYSTEM_IO_H__
|
||||
#define __FT_SYSTEM_IO_H__
|
||||
|
||||
/************************************************************************/
|
||||
/************************************************************************/
|
||||
/***** *****/
|
||||
/***** NOTE: THE CONTENT OF THIS FILE IS NOT CURRENTLY USED *****/
|
||||
/***** IN NORMAL BUILDS. CONSIDER IT EXPERIMENTAL *****/
|
||||
/***** *****/
|
||||
/************************************************************************/
|
||||
/************************************************************************/
|
||||
|
||||
|
||||
/********************************************************************
|
||||
*
|
||||
* designing custom streams is a bit different now
|
||||
|
@ -35,7 +45,7 @@
|
|||
|
||||
FT_BEGIN_HEADER
|
||||
|
||||
/********************************************************************
|
||||
/*@*******************************************************************
|
||||
*
|
||||
* @type: FT_Stream
|
||||
*
|
||||
|
@ -45,7 +55,7 @@ FT_BEGIN_HEADER
|
|||
typedef struct FT_StreamRec_* FT_Stream;
|
||||
|
||||
|
||||
/********************************************************************
|
||||
/*@*******************************************************************
|
||||
*
|
||||
* @type: FT_Stream_Class
|
||||
*
|
||||
|
@ -56,7 +66,7 @@ FT_BEGIN_HEADER
|
|||
typedef const struct FT_Stream_ClassRec_* FT_Stream_Class;
|
||||
|
||||
|
||||
/********************************************************************
|
||||
/*@*******************************************************************
|
||||
*
|
||||
* @functype: FT_Stream_ReadFunc
|
||||
*
|
||||
|
@ -76,7 +86,7 @@ FT_BEGIN_HEADER
|
|||
FT_ULong size );
|
||||
|
||||
|
||||
/********************************************************************
|
||||
/*@*******************************************************************
|
||||
*
|
||||
* @functype: FT_Stream_SeekFunc
|
||||
*
|
||||
|
@ -94,7 +104,7 @@ FT_BEGIN_HEADER
|
|||
FT_ULong pos );
|
||||
|
||||
|
||||
/********************************************************************
|
||||
/*@*******************************************************************
|
||||
*
|
||||
* @struct: FT_Stream_ClassRec
|
||||
*
|
||||
|
@ -120,7 +130,7 @@ FT_BEGIN_HEADER
|
|||
#define FT_STREAM_CLASS__READ(x) FT_STREAM_CLASS(x)->stream_read
|
||||
#define FT_STREAM_CLASS__SEEK(x) FT_STREAM_CLASS(x)->stream_seek;
|
||||
|
||||
/********************************************************************
|
||||
/*@*******************************************************************
|
||||
*
|
||||
* @struct: FT_StreamRec
|
||||
*
|
||||
|
|
|
@ -5,7 +5,17 @@
|
|||
|
||||
FT_BEGIN_HEADER
|
||||
|
||||
/***********************************************************************
|
||||
/************************************************************************/
|
||||
/************************************************************************/
|
||||
/***** *****/
|
||||
/***** NOTE: THE CONTENT OF THIS FILE IS NOT CURRENTLY USED *****/
|
||||
/***** IN NORMAL BUILDS. CONSIDER IT EXPERIMENTAL *****/
|
||||
/***** *****/
|
||||
/************************************************************************/
|
||||
/************************************************************************/
|
||||
|
||||
|
||||
/*@**********************************************************************
|
||||
*
|
||||
* @type: FT_Memory
|
||||
*
|
||||
|
@ -20,7 +30,7 @@ FT_BEGIN_HEADER
|
|||
typedef struct FT_MemoryRec_* FT_Memory;
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
/*@**********************************************************************
|
||||
*
|
||||
* @functype: FT_Memory_AllocFunc
|
||||
*
|
||||
|
@ -39,7 +49,7 @@ FT_BEGIN_HEADER
|
|||
FT_Pointer mem_data );
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
/*@**********************************************************************
|
||||
*
|
||||
* @functype: FT_Memory_FreeFunc
|
||||
*
|
||||
|
@ -56,7 +66,7 @@ FT_BEGIN_HEADER
|
|||
FT_Pointer mem_data );
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
/*@**********************************************************************
|
||||
*
|
||||
* @functype: FT_Memory_ReallocFunc
|
||||
*
|
||||
|
@ -76,7 +86,7 @@ FT_BEGIN_HEADER
|
|||
FT_Pointer mem_data );
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
/*@**********************************************************************
|
||||
*
|
||||
* @functype: FT_Memory_CreateFunc
|
||||
*
|
||||
|
@ -100,7 +110,7 @@ FT_BEGIN_HEADER
|
|||
FT_Pointer *amem_data );
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
/*@**********************************************************************
|
||||
*
|
||||
* @functype: FT_Memory_DestroyFunc
|
||||
*
|
||||
|
@ -115,7 +125,7 @@ FT_BEGIN_HEADER
|
|||
FT_Pointer mem_data );
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
/*@**********************************************************************
|
||||
*
|
||||
* @struct: FT_Memory_FuncsRec
|
||||
*
|
||||
|
@ -141,7 +151,7 @@ FT_BEGIN_HEADER
|
|||
} FT_Memory_FuncsRec, *FT_Memory_Funcs;
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
/*@**********************************************************************
|
||||
*
|
||||
* @type: FT_Memory_Funcs
|
||||
*
|
||||
|
@ -152,7 +162,7 @@ FT_BEGIN_HEADER
|
|||
typedef const FT_Memory_FuncsRec* FT_Memory_Funcs;
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
/*@**********************************************************************
|
||||
*
|
||||
* @function: ft_memory_new
|
||||
*
|
||||
|
@ -172,7 +182,7 @@ FT_BEGIN_HEADER
|
|||
FT_Pointer mem_init_data );
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
/*@**********************************************************************
|
||||
*
|
||||
* @function: ft_memory_destroy
|
||||
*
|
||||
|
|
|
@ -230,7 +230,7 @@ FT_BEGIN_HEADER
|
|||
* @TT_PLATFORM_MICROSOFT charmaps and name entries.
|
||||
*
|
||||
* @values:
|
||||
* TT_MS_ID_SYMBOLS_CS ::
|
||||
* TT_MS_ID_SYMBOL_CS ::
|
||||
* Corresponds to symbol encodings. see @FT_ENCODING_MS_SYMBOL.
|
||||
*
|
||||
* TT_MS_ID_UNICODE_CS ::
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# compute arctangent table for CORDIC computations in fttrigon.c
|
||||
import sys, math
|
||||
|
||||
units = 180*65536 # don't change !!
|
||||
units = 64*65536.0 # don't change !!
|
||||
scale = units/math.pi
|
||||
shrink = 1.0
|
||||
comma = ""
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -122,13 +122,13 @@ def dump_html_code( lines, prefix = "" ):
|
|||
|
||||
|
||||
class HtmlFormatter(Formatter):
|
||||
|
||||
|
||||
def __init__( self, processor, project_title, file_prefix ):
|
||||
|
||||
|
||||
Formatter.__init__( self, processor )
|
||||
|
||||
|
||||
global html_header_1, html_header_2, html_header_3, html_footer
|
||||
|
||||
|
||||
if file_prefix:
|
||||
file_prefix = file_prefix + "-"
|
||||
else:
|
||||
|
@ -138,13 +138,13 @@ class HtmlFormatter(Formatter):
|
|||
self.file_prefix = file_prefix
|
||||
self.html_header = html_header_1 + project_title + html_header_2 + \
|
||||
project_title + html_header_3
|
||||
|
||||
|
||||
self.html_footer = "<p><center><font size=""-2"">generated on " + \
|
||||
time.asctime( time.localtime( time.time() ) ) + \
|
||||
"</font></p></center>" + html_footer
|
||||
|
||||
|
||||
self.columns = 3
|
||||
|
||||
|
||||
def make_section_url( self, section ):
|
||||
return self.file_prefix + section.name + ".html"
|
||||
|
||||
|
@ -183,7 +183,7 @@ class HtmlFormatter(Formatter):
|
|||
if m:
|
||||
name = m.group(1)
|
||||
return '<i>'+name+'</i>'
|
||||
|
||||
|
||||
m = re_bold.match( word )
|
||||
if m:
|
||||
name = m.group(1)
|
||||
|
@ -199,7 +199,7 @@ class HtmlFormatter(Formatter):
|
|||
line = self.make_html_word( words[0] )
|
||||
for word in words[1:]:
|
||||
line = line + " " + self.make_html_word( word )
|
||||
|
||||
|
||||
return "<p>" + line + "</p>"
|
||||
|
||||
|
||||
|
@ -233,7 +233,7 @@ class HtmlFormatter(Formatter):
|
|||
print "<table valign=top><tr><td><b>"+field.name+"</b></td><td>"
|
||||
|
||||
print self.make_html_items( field.items )
|
||||
|
||||
|
||||
if field.name:
|
||||
print "</td></tr></table>"
|
||||
|
||||
|
@ -246,15 +246,15 @@ class HtmlFormatter(Formatter):
|
|||
name = m.group(2)
|
||||
prefix = html_quote( m.group(1) )
|
||||
length = len( m.group(0) )
|
||||
|
||||
|
||||
if name == block_name:
|
||||
# this is the current block name, if any
|
||||
result = result + prefix + '<b>' + name + '</b>'
|
||||
|
||||
|
||||
elif re_source_keywords.match(name):
|
||||
# this is a C keyword
|
||||
result = result + prefix + keyword_prefix + name + keyword_suffix
|
||||
|
||||
|
||||
elif self.identifiers.has_key(name):
|
||||
# this is a known identifier
|
||||
block = self.identifiers[name]
|
||||
|
@ -267,19 +267,38 @@ class HtmlFormatter(Formatter):
|
|||
else:
|
||||
result = result + html_quote(line)
|
||||
line = []
|
||||
|
||||
|
||||
return result
|
||||
|
||||
|
||||
def print_html_field_list( self, fields ):
|
||||
print "<table valign=top cellpadding=3>"
|
||||
|
||||
# compute the maximum length of each field name
|
||||
# if it is
|
||||
#
|
||||
max = 0
|
||||
for field in fields:
|
||||
print "<tr><td><b>" + field.name + "</b></td><td>"
|
||||
l = len( field.name )
|
||||
if l > max:
|
||||
max = l
|
||||
|
||||
head = "<tr valign=top><td><b>"
|
||||
inter = "</b></td><td>"
|
||||
foot = "</td></tr>"
|
||||
if max > 18:
|
||||
head = "<tr><td colspan=2><b>"
|
||||
inter = "</b></td></tr><tr><td width=5%></td><td>"
|
||||
foot = "<p></td></tr>"
|
||||
|
||||
for field in fields:
|
||||
print head + field.name + inter
|
||||
self.print_html_items( field.items )
|
||||
print "</td></tr>"
|
||||
print foot
|
||||
|
||||
print "</table>"
|
||||
|
||||
|
||||
|
||||
|
||||
def print_html_markup( self, markup ):
|
||||
table_fields = []
|
||||
for field in markup.fields:
|
||||
|
@ -289,21 +308,21 @@ class HtmlFormatter(Formatter):
|
|||
# all of them as a single table
|
||||
#
|
||||
table_fields.append( field )
|
||||
|
||||
|
||||
else:
|
||||
if table_fields:
|
||||
self.print_html_field_list( table_fields )
|
||||
table_fields = []
|
||||
|
||||
|
||||
self.print_html_items( field.items )
|
||||
|
||||
|
||||
if table_fields:
|
||||
self.print_html_field_list( table_fields )
|
||||
|
||||
#
|
||||
# Formatting the index
|
||||
#
|
||||
|
||||
|
||||
def index_enter( self ):
|
||||
print self.html_header
|
||||
self.index_items = {}
|
||||
|
@ -314,12 +333,12 @@ class HtmlFormatter(Formatter):
|
|||
self.index_items[ name ] = url
|
||||
|
||||
def index_exit( self ):
|
||||
|
||||
|
||||
# block_index already contains the sorted list of index names
|
||||
count = len( self.block_index )
|
||||
rows = (count + self.columns - 1)/self.columns
|
||||
|
||||
print "<center><table border=0 cellpadding=0 cellspacing=0>"
|
||||
|
||||
print "<center><table border=0 cellpadding=0 cellspacing=2>"
|
||||
for r in range(rows):
|
||||
line = "<tr>"
|
||||
for c in range(self.columns):
|
||||
|
@ -338,7 +357,7 @@ class HtmlFormatter(Formatter):
|
|||
self.index_items = {}
|
||||
|
||||
def index_dump( self, index_filename = None ):
|
||||
|
||||
|
||||
if index_filename == None:
|
||||
index_filename = self.file_prefix + "index.html"
|
||||
|
||||
|
@ -346,7 +365,7 @@ class HtmlFormatter(Formatter):
|
|||
|
||||
#
|
||||
# Formatting the table of content
|
||||
#
|
||||
#
|
||||
def toc_enter( self ):
|
||||
print self.html_header
|
||||
print "<center><h1>Table of Contents</h1></center>"
|
||||
|
@ -359,7 +378,7 @@ class HtmlFormatter(Formatter):
|
|||
print "<tr valign=top><td>"
|
||||
print '<a href="' + self.make_section_url( section ) + '">' + \
|
||||
section.title + '</a></td><td>'
|
||||
|
||||
|
||||
print self.make_html_para( section.abstract )
|
||||
|
||||
def toc_section_exit( self, section ):
|
||||
|
@ -379,7 +398,7 @@ class HtmlFormatter(Formatter):
|
|||
def toc_dump( self, toc_filename = None, index_filename = None ):
|
||||
if toc_filename == None:
|
||||
toc_filename = self.file_prefix + "toc.html"
|
||||
|
||||
|
||||
if index_filename == None:
|
||||
index_filename = self.file_prefix + "index.html"
|
||||
|
||||
|
@ -397,14 +416,14 @@ class HtmlFormatter(Formatter):
|
|||
|
||||
# print section synopsys
|
||||
print section_synopsis_header
|
||||
print "<center><table cellspacing=5 cellpadding=0 border=0>"
|
||||
|
||||
maxwidth = 0
|
||||
print "<center><table cellspacing=5 cellpadding=2 border=0>"
|
||||
|
||||
maxwidth = 1
|
||||
for b in section.blocks.values():
|
||||
if len(b.name) > maxwidth:
|
||||
maxwidth = len(b.name)
|
||||
|
||||
width = 130 # XXX magic number
|
||||
width = 70 # XXX magic number
|
||||
columns = width / maxwidth
|
||||
if columns < 1:
|
||||
columns = 1
|
||||
|
@ -423,7 +442,7 @@ class HtmlFormatter(Formatter):
|
|||
line = line + '</td>'
|
||||
line = line + "</tr>"
|
||||
print line
|
||||
|
||||
|
||||
print "</table></center><br><br>"
|
||||
print section_synopsis_footer
|
||||
|
||||
|
@ -439,7 +458,7 @@ class HtmlFormatter(Formatter):
|
|||
print '<a name="' + block.name + '">'
|
||||
print "<h4>" + block.name + "</h4>"
|
||||
print "</a>"
|
||||
|
||||
|
||||
# dump the block C source lines now
|
||||
if block.code:
|
||||
print source_header
|
||||
|
@ -453,9 +472,9 @@ class HtmlFormatter(Formatter):
|
|||
print description_header
|
||||
else:
|
||||
print marker_header + markup.tag + marker_inter
|
||||
|
||||
|
||||
self.print_html_markup( markup )
|
||||
|
||||
|
||||
def markup_exit( self, markup, block ):
|
||||
if markup.tag == "description":
|
||||
print description_footer
|
||||
|
@ -465,7 +484,7 @@ class HtmlFormatter(Formatter):
|
|||
def block_exit( self, block ):
|
||||
print block_footer
|
||||
|
||||
|
||||
|
||||
def section_exit( self, section ):
|
||||
print html_footer
|
||||
|
||||
|
|
Loading…
Reference in New Issue