22befeef82
This eliminates explicit casting by switching to unsigned fields. The revisions mostly impact the handling of CID fonts. * include/freetype/fttypes.h (FT_Data): Change to unsigned `length`. * include/freetype/t1tables.h (CID_FaceDictRec): Ditto for `sd_bytes`. (CID_FaceInfoRec): Ditto for `gd_bytes` and `gd_bytes`. * include/freetype/internal/tttypes.h (TT_LoaderRec): Ditto for `byte_len`. * src/cid/cidgload.c (cid_load_glyph): Updated. * src/cid/cidload.h (cid_get_offset): Update argument. * src/cid/cidload.c (cid_get_offset, cid_read_subrs, cid_face_open): Updated. * src/cff/cffgload.c (cff_get_glyph_data, cff_free_glyph_data): Updated. * src/psaux/psft.c (cf2_getT1SeacComponent): Updated. * src/truetype/ttgload.c (TT_Process_Composite_Glyph, load_truetype_glyph): Updated.
53 lines
1.1 KiB
C
53 lines
1.1 KiB
C
/****************************************************************************
|
|
*
|
|
* cidload.h
|
|
*
|
|
* CID-keyed Type1 font loader (specification).
|
|
*
|
|
* Copyright (C) 1996-2021 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 CIDLOAD_H_
|
|
#define CIDLOAD_H_
|
|
|
|
|
|
#include <freetype/internal/ftstream.h>
|
|
#include "cidparse.h"
|
|
|
|
|
|
FT_BEGIN_HEADER
|
|
|
|
|
|
typedef struct CID_Loader_
|
|
{
|
|
CID_Parser parser; /* parser used to read the stream */
|
|
FT_Int num_chars; /* number of characters in encoding */
|
|
|
|
} CID_Loader;
|
|
|
|
|
|
FT_LOCAL( FT_ULong )
|
|
cid_get_offset( FT_Byte** start,
|
|
FT_UInt offsize );
|
|
|
|
FT_LOCAL( FT_Error )
|
|
cid_face_open( CID_Face face,
|
|
FT_Int face_index );
|
|
|
|
|
|
FT_END_HEADER
|
|
|
|
#endif /* CIDLOAD_H_ */
|
|
|
|
|
|
/* END */
|