Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FreeType
FreeType
Commits
774a0719
Commit
774a0719
authored
May 06, 2004
by
Yamato, Masatake (大和正武)
Browse files
*/*.[ch]: Rename FTL_Glyphs_Array to FTL_GlyphArray.
parent
77c95c64
Changes
16
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
774a0719
2004-05-06 Masatake YAMATO <jet@gyve.org>
* */*.[ch]: Rename FTL_Glyphs_Array to
FTL_GlyphArray.
2004-05-03 Masatake YAMATO <jet@gyve.org>
* src/gxlayout/gxdemo.c (set_trace_level): Move loca variation
...
...
include/freetype/ftlayout.h
View file @
774a0719
...
...
@@ -70,13 +70,13 @@ FT_BEGIN_HEADER
/*************************************************************************/
/* */
/* <Type> */
/* FTL_Glyph
s_
Array */
/* FTL_GlyphArray */
/* */
/* <Description> */
/* Data type represents glyphs array used in glyph substitution. */
/* See @FTL_GlyphRec for more detail. */
/* */
typedef
struct
FTL_Glyph
s_
ArrayRec_
*
FTL_Glyph
s_
Array
;
typedef
struct
FTL_GlyphArrayRec_
*
FTL_GlyphArray
;
/*************************************************************************/
/* */
...
...
@@ -181,7 +181,7 @@ FT_BEGIN_HEADER
/* allocated :: The allocation size of glyphs. The client should not */
/* refer this field. */
/* */
typedef
struct
FTL_Glyph
s_
ArrayRec_
typedef
struct
FTL_GlyphArrayRec_
{
FT_Memory
memory
;
FTL_Glyph
glyphs
;
...
...
@@ -189,7 +189,7 @@ FT_BEGIN_HEADER
FT_ULong
reserved1
;
FT_ULong
length
;
FT_ULong
allocated
;
}
FTL_Glyph
s_
ArrayRec
;
}
FTL_GlyphArrayRec
;
/*************************************************************************/
...
...
@@ -376,7 +376,7 @@ FT_BEGIN_HEADER
/* */
FT_EXPORT
(
FT_Error
)
FTL_New_Glyphs_Array
(
FT_Memory
memory
,
FTL_Glyph
s_
Array
*
garray
);
FTL_GlyphArray
*
garray
);
/*************************************************************************/
/* */
...
...
@@ -396,7 +396,7 @@ FT_BEGIN_HEADER
/* FreeType error code. 0 means success. */
/* */
FT_EXPORT
(
FT_Error
)
FTL_Set_Glyphs_Array_Length
(
FTL_Glyph
s_
Array
garray
,
FTL_Set_Glyphs_Array_Length
(
FTL_GlyphArray
garray
,
FT_ULong
new_length
);
/*************************************************************************/
...
...
@@ -417,8 +417,8 @@ FT_BEGIN_HEADER
/* FreeType error code. 0 means success. */
/* */
FT_EXPORT
(
FT_Error
)
FTL_Copy_Glyphs_Array
(
FTL_Glyph
s_
Array
in
,
FTL_Glyph
s_
Array
out
);
FTL_Copy_Glyphs_Array
(
FTL_GlyphArray
in
,
FTL_GlyphArray
out
);
/*************************************************************************/
/* */
...
...
@@ -435,7 +435,7 @@ FT_BEGIN_HEADER
/* FreeType error code. 0 means success. */
/* */
FT_EXPORT
(
FT_Error
)
FTL_Done_Glyphs_Array
(
FTL_Glyph
s_
Array
garray
);
FTL_Done_Glyphs_Array
(
FTL_GlyphArray
garray
);
/*************************************************************************/
...
...
@@ -460,8 +460,8 @@ FT_BEGIN_HEADER
/* */
FT_EXPORT
(
FT_Error
)
FTL_Substitute_Glyphs
(
FT_Face
face
,
FTL_Glyph
s_
Array
in
,
FTL_Glyph
s_
Array
out
);
FTL_GlyphArray
in
,
FTL_GlyphArray
out
);
/*************************************************************************/
/* */
...
...
include/freetype/internal/services/svlayout.h
View file @
774a0719
...
...
@@ -58,8 +58,8 @@ FT_BEGIN_HEADER
typedef
FT_Error
(
*
FTL_Substitute_Glyphs_Func
)
(
FT_Face
face
,
FTL_FeaturesRequest
request
,
FTL_Glyph
s_
Array
in
,
FTL_Glyph
s_
Array
out
);
FTL_GlyphArray
in
,
FTL_GlyphArray
out
);
FT_DEFINE_SERVICE
(
Layout
)
{
...
...
src/base/ftlayout.c
View file @
774a0719
...
...
@@ -407,10 +407,10 @@
FT_EXPORT_DEF
(
FT_Error
)
FTL_New_Glyphs_Array
(
FT_Memory
memory
,
FTL_Glyph
s_
Array
*
garray
)
FTL_GlyphArray
*
garray
)
{
FT_Error
error
;
FTL_Glyph
s_
Array
agarray
;
FTL_GlyphArray
agarray
;
if
(
FT_NEW
(
agarray
)
)
return
error
;
...
...
@@ -425,7 +425,7 @@
}
FT_EXPORT_DEF
(
FT_Error
)
FTL_Set_Glyphs_Array_Length
(
FTL_Glyph
s_
Array
garray
,
FTL_Set_Glyphs_Array_Length
(
FTL_GlyphArray
garray
,
FT_ULong
new_length
)
{
FT_Error
error
;
...
...
@@ -442,8 +442,8 @@
}
FT_EXPORT_DEF
(
FT_Error
)
FTL_Copy_Glyphs_Array
(
FTL_Glyph
s_
Array
in
,
FTL_Glyph
s_
Array
out
)
FTL_Copy_Glyphs_Array
(
FTL_GlyphArray
in
,
FTL_GlyphArray
out
)
{
FT_Error
error
;
FT_ULong
i
;
...
...
@@ -457,7 +457,7 @@
}
FT_EXPORT_DEF
(
FT_Error
)
FTL_Done_Glyphs_Array
(
FTL_Glyph
s_
Array
garray
)
FTL_Done_Glyphs_Array
(
FTL_GlyphArray
garray
)
{
FT_Memory
memory
=
garray
->
memory
;
FT_FREE
(
garray
->
glyphs
);
...
...
@@ -468,8 +468,8 @@
FT_EXPORT_DEF
(
FT_Error
)
FTL_Substitute_Glyphs
(
FT_Face
face
,
FTL_Glyph
s_
Array
in
,
FTL_Glyph
s_
Array
out
)
FTL_GlyphArray
in
,
FTL_GlyphArray
out
)
{
FT_Error
error
;
FT_Service_Layout
service
;
...
...
src/gxlayout/fi.c
View file @
774a0719
...
...
@@ -95,7 +95,7 @@ try_lig( FT_Face face, char c1, char c2 )
{
FT_Error
error
=
FT_Err_Ok
;
FTL_EngineType
engine_type
;
FTL_Glyph
s_
Array
in
,
out
;
FTL_GlyphArray
in
,
out
;
FTL_FeaturesRequest
request
;
/* Get the engine type */
...
...
src/gxlayout/gxaccess.c
View file @
774a0719
...
...
@@ -214,8 +214,8 @@ gx_chain_calc_selector ( GX_MetamorphosisChain chain, GXL_FeaturesRequest reques
FT_LOCAL_DEF
(
FT_Error
)
gx_mort_substitute_glyph
(
GX_Mort
mort
,
GXL_FeaturesRequest
request
,
FTL_Glyph
s_
Array
in
,
FTL_Glyph
s_
Array
out
)
FTL_GlyphArray
in
,
FTL_GlyphArray
out
)
{
FT_Error
error
=
GX_Err_Ok
;
GX_MetamorphosisChain
chain
;
...
...
@@ -393,8 +393,8 @@ gx_xchain_calc_selector ( GX_XMetamorphosisChain chain, GXL_FeaturesRequest requ
FT_LOCAL_DEF
(
FT_Error
)
gx_morx_substitute_glyph
(
GX_Morx
morx
,
GXL_FeaturesRequest
request
,
FTL_Glyph
s_
Array
in
,
FTL_Glyph
s_
Array
out
)
FTL_GlyphArray
in
,
FTL_GlyphArray
out
)
{
FT_Error
error
=
GX_Err_Ok
;
GX_XMetamorphosisChain
xchain
;
...
...
@@ -668,7 +668,7 @@ gx_kern_get_fmt3( GX_KerningSubtableFormat3Body fmt3,
FT_LOCAL_DEF
(
FT_Error
)
gx_kern_get_contextual_kerning
(
GX_Kern
kern
,
FTL_Glyph
s_
Array
garray
,
FTL_GlyphArray
garray
,
FTL_Direction
dir
,
GXL_Initial_State
initial_state
,
FT_Vector
*
kerning
)
...
...
src/gxlayout/gxaccess.h
View file @
774a0719
...
...
@@ -58,8 +58,8 @@ FT_BEGIN_HEADER
FT_LOCAL
(
FT_Error
)
gx_mort_substitute_glyph
(
GX_Mort
mort
,
GXL_FeaturesRequest
request
,
FTL_Glyph
s_
Array
in
,
FTL_Glyph
s_
Array
out
);
FTL_GlyphArray
in
,
FTL_GlyphArray
out
);
/* morx */
typedef
FT_Error
(
*
GX_Morx_Feature_Func
)(
GX_XMetamorphosisFeatureTable
feat_Subtbl
,
...
...
@@ -75,8 +75,8 @@ FT_BEGIN_HEADER
FT_LOCAL
(
FT_Error
)
gx_morx_substitute_glyph
(
GX_Morx
morx
,
GXL_FeaturesRequest
request
,
FTL_Glyph
s_
Array
in
,
FTL_Glyph
s_
Array
out
);
FTL_GlyphArray
in
,
FTL_GlyphArray
out
);
/* kern */
FT_LOCAL
(
FT_Error
)
gx_kern_get_pair_kerning
(
GX_Kern
kern
,
...
...
@@ -86,7 +86,7 @@ FT_BEGIN_HEADER
FT_Vector
*
kerning
);
FT_LOCAL
(
FT_Error
)
gx_kern_get_contextual_kerning
(
GX_Kern
kern
,
FTL_Glyph
s_
Array
garray
,
FTL_GlyphArray
garray
,
FTL_Direction
dir
,
GXL_Initial_State
initial_state
,
FT_Vector
*
kerning
);
...
...
src/gxlayout/gxdemo.c
View file @
774a0719
...
...
@@ -749,7 +749,7 @@ check_toggled( GtkToggleButton * toggle, gpointer setting )
void
run_layout_engine
(
GtkButton
*
button
,
gpointer
request
)
{
FTL_Glyph
s_
Array
in
,
out
;
FTL_GlyphArray
in
,
out
;
FT_Face
face
=
((
FTL_FeaturesRequest
)
request
)
->
font
->
face
;
FT_Memory
memory
=
face
->
driver
->
root
.
memory
;
...
...
src/gxlayout/gxlayout.c
View file @
774a0719
...
...
@@ -738,8 +738,8 @@ gxl_feature_initialize_for_morx ( GXL_Feature feature,
FT_LOCAL_DEF
(
FT_Error
)
gxl_substitute_glyphs
(
FT_Face
face
,
FTL_FeaturesRequest
request
,
FTL_Glyph
s_
Array
in
,
FTL_Glyph
s_
Array
out
)
FTL_GlyphArray
in
,
FTL_GlyphArray
out
)
{
FT_Error
error
;
GXL_Font
font
;
...
...
src/gxlayout/gxltypes.h
View file @
774a0719
...
...
@@ -108,8 +108,8 @@ FT_BEGIN_HEADER
FT_LOCAL
(
FT_Error
)
gxl_substitute_glyphs
(
FT_Face
face
,
FTL_FeaturesRequest
request
,
FTL_Glyph
s_
Array
in
,
FTL_Glyph
s_
Array
out
);
FTL_GlyphArray
in
,
FTL_GlyphArray
out
);
FT_END_HEADER
...
...
src/gxlayout/gxvm.c
View file @
774a0719
...
...
@@ -229,9 +229,9 @@ ligstack_ligatured_pop(LigatureStack stack)
static
FT_Error
glist_init
(
FT_Memory
memory
,
GlyphsList
glist
,
FTL_Glyph
s_
Array
garray
);
FTL_GlyphArray
garray
);
static
FT_Error
glist_store
(
GlyphsList
glist
,
FTL_Glyph
s_
Array
garray
);
FTL_GlyphArray
garray
);
static
void
glist_finalize
(
GlyphsList
glist
);
/*
...
...
@@ -262,7 +262,7 @@ ligstack_ligatured_pop(LigatureStack stack)
InsertionGlyphs
insertion
);
static
FT_Error
glist_init
(
FT_Memory
memory
,
GlyphsList
glist
,
FTL_Glyph
s_
Array
garray
)
glist_init
(
FT_Memory
memory
,
GlyphsList
glist
,
FTL_GlyphArray
garray
)
{
FT_Error
error
;
FT_ULong
i
;
...
...
@@ -289,7 +289,7 @@ ligstack_ligatured_pop(LigatureStack stack)
}
static
FT_Error
glist_store
(
GlyphsList
glist
,
FTL_Glyph
s_
Array
garray
)
glist_store
(
GlyphsList
glist
,
FTL_GlyphArray
garray
)
{
FT_Error
error
;
FT_ULong
length
=
0
,
i
;
...
...
@@ -475,7 +475,7 @@ ligstack_ligatured_pop(LigatureStack stack)
*************************************************************************/
FT_LOCAL_DEF
(
FT_Error
)
gx_noncontextual_subst
(
GX_MetamorphosisNoncontextualBody
body
,
FTL_Glyph
s_
Array
garray
)
FTL_GlyphArray
garray
)
{
FT_ULong
i
;
GX_LookupTable
lookup_table
=
&
body
->
lookup_table
;
...
...
@@ -519,7 +519,7 @@ static FT_UShort contextual_lookup_glyph( GX_MetamorphosisContextualBody body,
FT_LOCAL_DEF
(
FT_Error
)
gx_contextual_subst
(
GX_MetamorphosisContextualBody
body
,
GXL_Initial_State
initial_state
,
FTL_Glyph
s_
Array
garray
)
FTL_GlyphArray
garray
)
{
FT_ULong
glength
=
garray
->
length
;
FTL_Glyph
glyphs
=
garray
->
glyphs
;
...
...
@@ -631,7 +631,7 @@ static FT_UShort ligature_get_ligature ( GX_MetamorphosisLigatureBody body,
FT_LOCAL_DEF
(
FT_Error
)
gx_ligature_subst
(
GX_MetamorphosisLigatureBody
body
,
GXL_Initial_State
initial_state
,
FTL_Glyph
s_
Array
garray
)
FTL_GlyphArray
garray
)
{
FT_ULong
glength
=
garray
->
length
;
FTL_Glyph
glyphs
=
garray
->
glyphs
;
...
...
@@ -791,7 +791,7 @@ insertion_insert ( GX_MetamorphosisInsertionList insertion,
FT_LOCAL_DEF
(
FT_Error
)
gx_insertion_subst
(
GX_MetamorphosisInsertionBody
body
,
GXL_Initial_State
initial_state
,
FTL_Glyph
s_
Array
garray
)
FTL_GlyphArray
garray
)
{
FT_Error
error
;
FT_Memory
memory
=
garray
->
memory
;
...
...
@@ -904,11 +904,11 @@ insertion_insert ( GX_MetamorphosisInsertionList insertion,
static
void
rearrangement_rearrange
(
GX_MetamorphosisRearrangementVerb
verb
,
FT_ULong
first_glyph
,
FT_ULong
last_glyph
,
FTL_Glyph
s_
Array
garray
);
FTL_GlyphArray
garray
);
FT_LOCAL
(
FT_Error
)
gx_rearrangement_subst
(
GX_MetamorphosisRearrangementBody
body
,
GXL_Initial_State
initial_state
,
FTL_Glyph
s_
Array
garray
)
FTL_GlyphArray
garray
)
{
FT_ULong
glength
=
garray
->
length
;
FTL_Glyph
glyphs
=
garray
->
glyphs
;
...
...
@@ -979,7 +979,7 @@ static void
rearrangement_rearrange
(
GX_MetamorphosisRearrangementVerb
verb
,
FT_ULong
first_glyph
,
FT_ULong
last_glyph
,
FTL_Glyph
s_
Array
garray
)
FTL_GlyphArray
garray
)
{
FTL_Glyph
glyphs
=
garray
->
glyphs
;
FT_ULong
glength
=
garray
->
length
;
...
...
@@ -1207,7 +1207,7 @@ static FT_UShort xcontextual_lookup_glyph( GX_XMetamorphosisContextualBody body,
FT_LOCAL_DEF
(
FT_Error
)
gx_xcontextual_subst
(
GX_XMetamorphosisContextualBody
body
,
GXL_Initial_State
initial_state
,
FTL_Glyph
s_
Array
garray
)
FTL_GlyphArray
garray
)
{
FT_ULong
glength
=
garray
->
length
;
...
...
@@ -1321,7 +1321,7 @@ static FT_UShort xligature_get_ligature ( GX_XMetamorphosisLigatureBody body,
FT_LOCAL_DEF
(
FT_Error
)
gx_xligature_subst
(
GX_XMetamorphosisLigatureBody
body
,
GXL_Initial_State
initial_state
,
FTL_Glyph
s_
Array
garray
)
FTL_GlyphArray
garray
)
{
FT_ULong
glength
=
garray
->
length
;
FTL_Glyph
glyphs
=
garray
->
glyphs
;
...
...
@@ -1470,7 +1470,7 @@ xligature_get_ligature ( GX_XMetamorphosisLigatureBody body,
FT_LOCAL_DEF
(
FT_Error
)
gx_xinsertion_subst
(
GX_XMetamorphosisInsertionBody
body
,
GXL_Initial_State
initial_state
,
FTL_Glyph
s_
Array
garray
)
FTL_GlyphArray
garray
)
{
FT_Error
error
;
FT_Memory
memory
=
garray
->
memory
;
...
...
@@ -1562,7 +1562,7 @@ gx_xinsertion_subst( GX_XMetamorphosisInsertionBody body,
FT_LOCAL
(
FT_Error
)
gx_xrearrangement_subst
(
GX_XMetamorphosisRearrangementBody
body
,
GXL_Initial_State
initial_state
,
FTL_Glyph
s_
Array
garray
)
FTL_GlyphArray
garray
)
{
FT_ULong
glength
=
garray
->
length
;
...
...
@@ -1674,7 +1674,7 @@ kernstack_init( KerningStack stack )
FT_LOCAL_DEF
(
FT_Error
)
gx_contextual_kerning_calc
(
GX_KerningSubtableFormat1Body
kern_fmt1
,
FTL_Glyph
s_
Array
garray
,
FTL_GlyphArray
garray
,
FTL_Direction
dir
,
FT_Bool
cross_stream
,
GXL_Initial_State
initial_state
,
...
...
src/gxlayout/gxvm.h
View file @
774a0719
...
...
@@ -35,26 +35,26 @@ FT_BEGIN_HEADER
FT_LOCAL
(
FT_Error
)
gx_rearrangement_subst
(
GX_MetamorphosisRearrangementBody
body
,
GXL_Initial_State
initial_state
,
FTL_Glyph
s_
Array
garray
);
FTL_GlyphArray
garray
);
FT_LOCAL
(
FT_Error
)
gx_contextual_subst
(
GX_MetamorphosisContextualBody
body
,
GXL_Initial_State
initial_state
,
FTL_Glyph
s_
Array
garray
);
FTL_GlyphArray
garray
);
FT_LOCAL
(
FT_Error
)
gx_ligature_subst
(
GX_MetamorphosisLigatureBody
body
,
GXL_Initial_State
initial_state
,
FTL_Glyph
s_
Array
garray
);
FTL_GlyphArray
garray
);
FT_LOCAL
(
FT_Error
)
gx_noncontextual_subst
(
GX_MetamorphosisNoncontextualBody
body
,
FTL_Glyph
s_
Array
garray
);
FTL_GlyphArray
garray
);
FT_LOCAL
(
FT_Error
)
gx_insertion_subst
(
GX_MetamorphosisInsertionBody
body
,
GXL_Initial_State
initial_state
,
FTL_Glyph
s_
Array
garray
);
FTL_GlyphArray
garray
);
/*
* Morx
...
...
@@ -63,29 +63,29 @@ gx_insertion_subst( GX_MetamorphosisInsertionBody body,
FT_LOCAL
(
FT_Error
)
gx_xcontextual_subst
(
GX_XMetamorphosisContextualBody
body
,
GXL_Initial_State
initial_state
,
FTL_Glyph
s_
Array
garray
);
FTL_GlyphArray
garray
);
FT_LOCAL
(
FT_Error
)
gx_xligature_subst
(
GX_XMetamorphosisLigatureBody
body
,
GXL_Initial_State
initial_state
,
FTL_Glyph
s_
Array
garray
);
FTL_GlyphArray
garray
);
FT_LOCAL
(
FT_Error
)
gx_xinsertion_subst
(
GX_XMetamorphosisInsertionBody
body
,
GXL_Initial_State
initial_state
,
FTL_Glyph
s_
Array
garray
);
FTL_GlyphArray
garray
);
FT_LOCAL
(
FT_Error
)
gx_xrearrangement_subst
(
GX_XMetamorphosisRearrangementBody
body
,
GXL_Initial_State
initial_state
,
FTL_Glyph
s_
Array
garray
);
FTL_GlyphArray
garray
);
/*
* Kern
*/
FT_LOCAL
(
FT_Error
)
gx_contextual_kerning_calc
(
GX_KerningSubtableFormat1Body
kern_fmt1
,
FTL_Glyph
s_
Array
garray
,
FTL_GlyphArray
garray
,
FTL_Direction
dir
,
FT_Bool
cross_stream
,
GXL_Initial_State
initial_state
,
...
...
src/otlayout/ot-types.h
View file @
774a0719
...
...
@@ -30,7 +30,7 @@ extern "C" {
typedef
struct
_OTInfo
OTInfo
;
typedef
struct
_OTRuleset
OTRuleset
;
typedef
FTL_Glyph
s_
ArrayRec
OTGlyphString
;
typedef
FTL_GlyphArrayRec
OTGlyphString
;
#ifdef __cplusplus
}
#endif
/* __cplusplus */
...
...
src/otlayout/otdemo.c
View file @
774a0719
...
...
@@ -144,7 +144,7 @@ doit(FT_Face face)
FTL_FeaturesRequest
request
;
FT_UInt
script_index
,
feature_index
;
FT_Memory
memory
=
face
->
stream
->
memory
;
FTL_Glyph
s_
Array
in
,
out
;
FTL_GlyphArray
in
,
out
;
FT_Int
i
;
if
(
FTL_New_FeaturesRequest
(
face
,
&
request
)
)
{
...
...
src/otlayout/otlayout.c
View file @
774a0719
...
...
@@ -120,8 +120,8 @@
FT_LOCAL
(
FT_Error
)
otl_substitute_glyphs
(
FT_Face
face
,
FTL_FeaturesRequest
request
,
FTL_Glyph
s_
Array
in
,
FTL_Glyph
s_
Array
out
)
FTL_GlyphArray
in
,
FTL_GlyphArray
out
)
{
FT_Error
error
=
FT_Err_Ok
;
if
((
error
=
FTL_Copy_Glyphs_Array
(
in
,
out
)
))
...
...
src/otlayout/otltypes.h
View file @
774a0719
...
...
@@ -67,8 +67,8 @@ FT_BEGIN_HEADER
FT_LOCAL
(
FT_Error
)
otl_substitute_glyphs
(
FT_Face
face
,
FTL_FeaturesRequest
request
,
FTL_Glyph
s_
Array
in
,
FTL_Glyph
s_
Array
out
);
FTL_GlyphArray
in
,
FTL_GlyphArray
out
);
FT_END_HEADER
#endif
/* Not def: __OTLTYPES_H__ */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment