summaryrefslogtreecommitdiff
path: root/src/psaux/psft.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/psaux/psft.c')
-rw-r--r--src/psaux/psft.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/psaux/psft.c b/src/psaux/psft.c
index a05f1f28f..34ac0b691 100644
--- a/src/psaux/psft.c
+++ b/src/psaux/psft.c
@@ -309,8 +309,11 @@
FT_Error error = FT_Err_Ok;
CF2_Font font;
+ FT_Bool is_t1 = decoder->builder.is_t1;
- FT_ASSERT( decoder && decoder->cff );
+
+ FT_ASSERT( decoder &&
+ ( is_t1 || decoder->cff ) );
memory = decoder->builder.memory;
@@ -330,7 +333,9 @@
font = (CF2_Font)decoder->cff->cf2_instance.data;
font->memory = memory;
- font->cffload = (FT_Service_CFFLoad)decoder->cff->cffload;
+
+ if ( !is_t1 )
+ font->cffload = (FT_Service_CFFLoad)decoder->cff->cffload;
/* initialize a client outline, to be shared by each glyph rendered */
cf2_outline_init( &font->outline, font->memory, &font->error );
@@ -381,6 +386,7 @@
/* copy isCFF2 boolean from TT_Face to CF2_Font */
font->isCFF2 = builder->face->is_cff2;
+ font->isT1 = is_t1;
font->renderingFlags = 0;
if ( hinted )