[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] ewaldhew-wip 0c8dfb5 5/6: fixes for compilation
From: |
Hew Yih Shiuan Ewald |
Subject: |
[freetype2] ewaldhew-wip 0c8dfb5 5/6: fixes for compilation |
Date: |
Tue, 27 Jun 2017 06:21:47 -0400 (EDT) |
branch: ewaldhew-wip
commit 0c8dfb5f310e0c368cc89572343b954dc82b2a31
Author: Ewald Hew <address@hidden>
Commit: Ewald Hew <address@hidden>
fixes for compilation
---
include/freetype/internal/psaux.h | 3 ---
src/psaux/psintrp.c | 17 +++++++++--------
2 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/include/freetype/internal/psaux.h
b/include/freetype/internal/psaux.h
index 743d989..87a33d7 100644
--- a/include/freetype/internal/psaux.h
+++ b/include/freetype/internal/psaux.h
@@ -1000,7 +1000,6 @@ FT_BEGIN_HEADER
typedef void
(*CFF_Builder_Close_Contour_Func)( CFF_Builder* builder );
- /* static */
typedef FT_Error
(*CFF_Builder_Add_Contour_Func)( CFF_Builder* builder );
@@ -1008,7 +1007,6 @@ FT_BEGIN_HEADER
typedef struct CFF_Builder_FuncsRec_
{
- /* static */
void
(*init)( CFF_Builder* builder,
TT_Face face,
@@ -1016,7 +1014,6 @@ FT_BEGIN_HEADER
CFF_GlyphSlot glyph,
FT_Bool hinting );
- /* static */
void
(*done)( CFF_Builder* builder );
diff --git a/src/psaux/psintrp.c b/src/psaux/psintrp.c
index fd51517..bff56bc 100644
--- a/src/psaux/psintrp.c
+++ b/src/psaux/psintrp.c
@@ -491,7 +491,7 @@
/* Stuff for Type 1 */
FT_Int known_othersubr_result_cnt = 0;
- FT_Bool large_int;
+ FT_Bool large_int = FALSE;
#define PS_STORAGE_SIZE 3
CF2_F16Dot16 results[PS_STORAGE_SIZE]; /* for othersubr results */
FT_Int result_cnt = 0;
@@ -777,7 +777,7 @@
FT_ASSERT( ( cf2_stack_count( opStack ) == 2 ) );
hint_pos = ADD_INT32( cf2_stack_getReal( opStack, 0 ),
- font->decoder->builder->left_bearing.y );
+ font->decoder->builder.left_bearing.y );
cf2_stack_setReal( opStack, 0, hint_pos );
}
@@ -817,7 +817,7 @@
FT_ASSERT( ( cf2_stack_count( opStack ) == 2 ) );
hint_pos = ADD_INT32( cf2_stack_getReal( opStack, 0 ),
- font->decoder->builder->left_bearing.x );
+ font->decoder->builder.left_bearing.x );
cf2_stack_setReal( opStack, 0, hint_pos );
}
@@ -996,10 +996,10 @@
/* set up the new CFF region and pointer */
subrNum = cf2_stack_popInt( opStack );
- if ( font->isT1 && decoder->subrs_hash )
+ if ( font->isT1 && decoder->locals_hash )
{
size_t* val = ft_hash_num_lookup( subrNum,
- decoder->subrs_hash );
+ decoder->locals_hash );
if ( val )
subrNum = *val;
@@ -1209,8 +1209,8 @@
FT_ASSERT( ( cf2_stack_count( opStack ) == 6 ) );
- lsb = ( op2 == cf2_escVSTEM3 ?
font->decoder->builder->left_bearing.x
- :
font->decoder->builder->left_bearing.y );
+ lsb = ( op2 == cf2_escVSTEM3 ?
font->decoder->builder.left_bearing.x
+ :
font->decoder->builder.left_bearing.y );
v0 = cf2_stack_getReal( opStack, 0 );
v1 = cf2_stack_getReal( opStack, 2 );
@@ -1295,9 +1295,10 @@
FT_Pos adx = cf2_stack_popFixed ( opStack );
FT_Pos asb = cf2_stack_popFixed ( opStack );
+ /* TODO(ewaldhew):
lastError = t1operator_seac( decoder,
asb, adx, ady,
- bchar, achar );
+ bchar, achar ); */
goto exit;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] ewaldhew-wip 0c8dfb5 5/6: fixes for compilation,
Hew Yih Shiuan Ewald <=