2002-02-22 19:28:11 +01:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
2002-03-31 20:48:24 +02:00
|
|
|
/* ttcmap0.h */
|
2002-02-22 19:28:11 +01:00
|
|
|
/* */
|
2002-03-31 20:48:24 +02:00
|
|
|
/* TrueType new character mapping table (cmap) support (specification). */
|
2002-02-22 19:28:11 +01:00
|
|
|
/* */
|
2002-03-31 20:48:24 +02:00
|
|
|
/* Copyright 2002 by */
|
2002-02-22 19:28:11 +01:00
|
|
|
/* 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. */
|
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
|
2002-03-22 16:02:38 +01:00
|
|
|
#ifndef __TTCMAP0_H__
|
|
|
|
#define __TTCMAP0_H__
|
2002-02-22 19:28:11 +01:00
|
|
|
|
|
|
|
|
|
|
|
#include <ft2build.h>
|
|
|
|
#include FT_INTERNAL_TRUETYPE_TYPES_H
|
|
|
|
#include FT_INTERNAL_OBJECTS_H
|
|
|
|
|
|
|
|
|
|
|
|
FT_BEGIN_HEADER
|
|
|
|
|
2002-03-31 20:48:24 +02:00
|
|
|
typedef struct TT_CMapRec_
|
2002-03-01 03:26:22 +01:00
|
|
|
{
|
|
|
|
FT_CMapRec cmap;
|
2002-03-31 20:48:24 +02:00
|
|
|
FT_Byte* data; /* pointer to in-memory cmap table */
|
2002-03-01 03:26:22 +01:00
|
|
|
|
|
|
|
} TT_CMapRec, *TT_CMap;
|
|
|
|
|
2002-03-31 20:48:24 +02:00
|
|
|
typedef const struct TT_CMap_ClassRec_* TT_CMap_Class;
|
2002-03-01 03:26:22 +01:00
|
|
|
|
|
|
|
|
2002-03-31 20:48:24 +02:00
|
|
|
typedef FT_Error
|
|
|
|
(*TT_CMap_ValidateFunc)( FT_Byte* data,
|
|
|
|
FT_Validator valid );
|
|
|
|
|
|
|
|
typedef struct TT_CMap_ClassRec_
|
2002-03-01 03:26:22 +01:00
|
|
|
{
|
|
|
|
FT_CMap_ClassRec clazz;
|
|
|
|
FT_UInt format;
|
|
|
|
TT_CMap_ValidateFunc validate;
|
|
|
|
|
|
|
|
} TT_CMap_ClassRec;
|
|
|
|
|
2002-03-31 20:48:24 +02:00
|
|
|
|
|
|
|
typedef struct TT_ValidatorRec_
|
2002-03-22 16:02:38 +01:00
|
|
|
{
|
2002-03-22 18:09:52 +01:00
|
|
|
FT_ValidatorRec validator;
|
|
|
|
FT_UInt num_glyphs;
|
* include/freetype/config/ftoption.h, include/freetype/internal/tttypes.h,
src/base/ftobjs.c, src/bdf/bdfdrivr.c, src/cff/cffobjs.c,
src/pcf/pcfdrivr.c, src/sfnt/sfobjs.c, src/sfnt/ttcmap0.c,
src/sfnt/ttcmap0.h, src/sfnt/ttload.c, src/type1/t1objs.c,
src/type42/t42objs.c, src/winfonts/winfnt.c: code cleanup,
FT_CONFIG_OPTION_USE_CMAPS is now the default
2002-07-17 23:52:20 +02:00
|
|
|
|
2002-03-22 16:02:38 +01:00
|
|
|
} TT_ValidatorRec, *TT_Validator;
|
|
|
|
|
2002-03-31 20:48:24 +02:00
|
|
|
|
|
|
|
#define TT_VALIDATOR( x ) ((TT_Validator)( x ))
|
|
|
|
#define TT_VALID_GLYPH_COUNT( x ) TT_VALIDATOR( x )->num_glyphs
|
2002-03-22 16:02:38 +01:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
|
|
|
|
FT_LOCAL( FT_Error )
|
* massive re-formatting changes to many, many source files. I don't
want to list them all here. The operations performed were all logical
transformations of the sources:
- trying to convert all enums and constants to CAPITALIZED_STYLE, with
#define definitions like
#define my_old_constants MY_NEW_CONSTANT
- big, big update of the documentation comments
* include/freetype/freetype.h, src/base/ftobjs.c, src/smooth/ftsmooth.c,
include/freetype/ftimage.h: adding support for LCD-optimized rendering
though the new constants/enums:
FT_RENDER_MODE_LCD, FT_RENDER_MODE_LCD_V
FT_PIXEL_MODE_LCD, FT_PIXEL_MODE_LCD_V
this is still work in progress, don't expect everything to work correctly
though most of the features have been implemented.
* adding new FT_LOAD_XXX flags, used to specify both hinting and rendering
targets:
FT_LOAD_TARGET_NORMAL :: anti-aliased hinting & rendering
FT_LOAD_TARGET_MONO :: monochrome bitmaps
FT_LOAD_TARGET_LCD :: horizontal RGB/BGR decimated hinting & rendering
FT_LOAD_TARGET_LCD_V :: vertical RGB/BGR decimated hinting & rendering
note that FT_LOAD_TARGET_NORMAL is 0, which means that the default
behaviour of the font engine is _unchanged_.
2002-08-27 22:20:29 +02:00
|
|
|
tt_face_build_cmaps( TT_Face face );
|
2002-02-22 19:28:11 +01:00
|
|
|
|
|
|
|
|
|
|
|
FT_END_HEADER
|
|
|
|
|
2002-03-22 16:02:38 +01:00
|
|
|
#endif /* __TTCMAP0_H__ */
|
2002-02-22 19:28:11 +01:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|