Make glyph_name' parameter to
FT_Get_Name_Index' a `const'.
* include/freetype/freetype.h (FT_Get_Name_Index), include/freetype/internal/ftobjs.h (FT_Face_GetGlyphNameIndexFunc), include/freetype/internal/services/svgldict.h (FT_GlyphDict_NameIndexFunc), src/base/ftobjs.c (FT_Get_Name_Index), src/cff/cffdrivr.c (cff_get_name_index), src/sfnt/sfdriver.c (sfnt_get_name_index), src/type1/t1driver.c (t1_get_name_index), src/type42/t42drivr.c (t42_get_name_index): Add `const' to second argument.
This commit is contained in:
parent
6986ddac1e
commit
3ad1c93ac1
13
ChangeLog
13
ChangeLog
@ -1,3 +1,16 @@
|
||||
2019-04-06 Antony Lee <anntzer.lee@gmail.com>
|
||||
|
||||
Make `glyph_name' parameter to `FT_Get_Name_Index' a `const'.
|
||||
|
||||
* include/freetype/freetype.h (FT_Get_Name_Index),
|
||||
include/freetype/internal/ftobjs.h (FT_Face_GetGlyphNameIndexFunc),
|
||||
include/freetype/internal/services/svgldict.h
|
||||
(FT_GlyphDict_NameIndexFunc), src/base/ftobjs.c (FT_Get_Name_Index),
|
||||
src/cff/cffdrivr.c (cff_get_name_index), src/sfnt/sfdriver.c
|
||||
(sfnt_get_name_index), src/type1/t1driver.c (t1_get_name_index),
|
||||
src/type42/t42drivr.c (t42_get_name_index): Add `const' to second
|
||||
argument.
|
||||
|
||||
2019-03-31 Armin Hasitzka <prince.cherusker@gmail.com>
|
||||
|
||||
[cff] Fix boundary checks.
|
||||
|
@ -3932,8 +3932,8 @@ FT_BEGIN_HEADER
|
||||
* The glyph index. 0~means 'undefined character code'.
|
||||
*/
|
||||
FT_EXPORT( FT_UInt )
|
||||
FT_Get_Name_Index( FT_Face face,
|
||||
FT_String* glyph_name );
|
||||
FT_Get_Name_Index( FT_Face face,
|
||||
const FT_String* glyph_name );
|
||||
|
||||
|
||||
/**************************************************************************
|
||||
|
@ -941,8 +941,8 @@ FT_BEGIN_HEADER
|
||||
FT_UInt buffer_max );
|
||||
|
||||
typedef FT_UInt
|
||||
(*FT_Face_GetGlyphNameIndexFunc)( FT_Face face,
|
||||
FT_String* glyph_name );
|
||||
(*FT_Face_GetGlyphNameIndexFunc)( FT_Face face,
|
||||
const FT_String* glyph_name );
|
||||
|
||||
|
||||
#ifndef FT_CONFIG_OPTION_NO_DEFAULT_SYSTEM
|
||||
|
@ -41,8 +41,8 @@ FT_BEGIN_HEADER
|
||||
FT_UInt buffer_max );
|
||||
|
||||
typedef FT_UInt
|
||||
(*FT_GlyphDict_NameIndexFunc)( FT_Face face,
|
||||
FT_String* glyph_name );
|
||||
(*FT_GlyphDict_NameIndexFunc)( FT_Face face,
|
||||
const FT_String* glyph_name );
|
||||
|
||||
|
||||
FT_DEFINE_SERVICE( GlyphDict )
|
||||
|
@ -4059,8 +4059,8 @@
|
||||
/* documentation is in freetype.h */
|
||||
|
||||
FT_EXPORT_DEF( FT_UInt )
|
||||
FT_Get_Name_Index( FT_Face face,
|
||||
FT_String* glyph_name )
|
||||
FT_Get_Name_Index( FT_Face face,
|
||||
const FT_String* glyph_name )
|
||||
{
|
||||
FT_UInt result = 0;
|
||||
|
||||
|
@ -381,8 +381,8 @@
|
||||
|
||||
|
||||
static FT_UInt
|
||||
cff_get_name_index( CFF_Face face,
|
||||
FT_String* glyph_name )
|
||||
cff_get_name_index( CFF_Face face,
|
||||
const FT_String* glyph_name )
|
||||
{
|
||||
CFF_Font cff;
|
||||
CFF_Charset charset;
|
||||
|
@ -182,8 +182,8 @@
|
||||
|
||||
|
||||
static FT_UInt
|
||||
sfnt_get_name_index( FT_Face face,
|
||||
FT_String* glyph_name )
|
||||
sfnt_get_name_index( FT_Face face,
|
||||
const FT_String* glyph_name )
|
||||
{
|
||||
TT_Face ttface = (TT_Face)face;
|
||||
|
||||
|
@ -70,8 +70,8 @@
|
||||
|
||||
|
||||
static FT_UInt
|
||||
t1_get_name_index( T1_Face face,
|
||||
FT_String* glyph_name )
|
||||
t1_get_name_index( T1_Face face,
|
||||
const FT_String* glyph_name )
|
||||
{
|
||||
FT_Int i;
|
||||
|
||||
|
@ -69,8 +69,8 @@
|
||||
|
||||
|
||||
static FT_UInt
|
||||
t42_get_name_index( T42_Face face,
|
||||
FT_String* glyph_name )
|
||||
t42_get_name_index( T42_Face face,
|
||||
const FT_String* glyph_name )
|
||||
{
|
||||
FT_Int i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user