[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] ewaldhew-wip eb2cde5 3/7: change t1_make_subfont
From: |
Hew Yih Shiuan Ewald |
Subject: |
[freetype2] ewaldhew-wip eb2cde5 3/7: change t1_make_subfont |
Date: |
Wed, 19 Jul 2017 05:20:57 -0400 (EDT) |
branch: ewaldhew-wip
commit eb2cde59d3e9e39f3f2d01ed8d4fd8fd9130244e
Author: Ewald Hew <address@hidden>
Commit: Ewald Hew <address@hidden>
change t1_make_subfont
---
include/freetype/internal/psaux.h | 4 ++--
src/psaux/psobjs.c | 18 ++++++++----------
src/psaux/psobjs.h | 3 ++-
src/type1/t1gload.c | 2 +-
4 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/include/freetype/internal/psaux.h
b/include/freetype/internal/psaux.h
index 05fdb98..11a00a4 100644
--- a/include/freetype/internal/psaux.h
+++ b/include/freetype/internal/psaux.h
@@ -1338,10 +1338,10 @@ FT_BEGIN_HEADER
PS_Decoder* ps_decoder );
void
- (*t1_make_subfont)( T1_Face face,
+ (*t1_make_subfont)( FT_Face face,
+ PS_Private priv,
CFF_SubFont subfont );
-
T1_CMap_Classes t1_cmap_classes;
/* fields after this comment line were added after version 2.1.10 */
diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c
index fd6a0bd..1beaf2b 100644
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -2336,10 +2336,10 @@
FT_LOCAL_DEF( void )
- t1_make_subfont( T1_Face face,
+ t1_make_subfont( FT_Face face,
+ PS_Private priv,
CFF_SubFont subfont )
{
- PS_Private priv = &face->type1.private_dict;
CFF_Private cpriv = &subfont->private_dict;
FT_UInt n, count;
@@ -2386,20 +2386,18 @@
/* Initialize the random number generator. */
- if ( face->root.internal->random_seed != -1 )
+ if ( face->internal->random_seed != -1 )
{
/* . If we have a face-specific seed, use it. */
/* If non-zero, update it to a positive value. */
- subfont->random = (FT_UInt32)face->root.internal->random_seed;
- if ( face->root.internal->random_seed )
+ subfont->random = (FT_UInt32)face->internal->random_seed;
+ if ( face->internal->random_seed )
{
do
{
- face->root.internal->random_seed =
- (FT_Int32)((PSAux_Service)face->psaux)->cff_random(
- (FT_UInt32)face->root.internal->random_seed );
-
- } while ( face->root.internal->random_seed < 0 );
+ face->internal->random_seed = (FT_Int32)cff_random(
+ (FT_UInt32)face->internal->random_seed );
+ } while ( face->internal->random_seed < 0 );
}
}
if ( !subfont->random )
diff --git a/src/psaux/psobjs.h b/src/psaux/psobjs.h
index 2fed988..aed19de 100644
--- a/src/psaux/psobjs.h
+++ b/src/psaux/psobjs.h
@@ -285,7 +285,8 @@ FT_BEGIN_HEADER
/*************************************************************************/
FT_LOCAL( void )
- t1_make_subfont( T1_Face face,
+ t1_make_subfont( FT_Face face,
+ PS_Private priv,
CFF_SubFont subfont );
FT_LOCAL( void )
diff --git a/src/type1/t1gload.c b/src/type1/t1gload.c
index 89dbd71..1320409 100644
--- a/src/type1/t1gload.c
+++ b/src/type1/t1gload.c
@@ -98,7 +98,7 @@
psaux->ps_decoder_init( decoder, TRUE, &psdecoder );
- psaux->t1_make_subfont( face, &subfont );
+ psaux->t1_make_subfont( FT_FACE( face ), &face->type1.private_dict,
&subfont );
psdecoder.current_subfont = &subfont;
error = decoder_funcs->parse_charstrings( &psdecoder,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] ewaldhew-wip eb2cde5 3/7: change t1_make_subfont,
Hew Yih Shiuan Ewald <=