Skip to content

Commit 985a3e2

Browse files
committed
reenable fontfile
1 parent f53959b commit 985a3e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libvips/create/text.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
#include <cairo.h>
8585
#include <pango/pango.h>
8686
#include <pango/pangocairo.h>
87+
#include <fontconfig/fontconfig.h>
8788

8889
#include "pcreate.h"
8990

@@ -371,7 +372,6 @@ vips_text_build( VipsObject *object )
371372
text->context = pango_font_map_create_context(
372373
PANGO_FONT_MAP( vips_text_fontmap ) );
373374

374-
/*
375375
if( text->fontfile &&
376376
!g_hash_table_lookup( vips_text_fontfiles, text->fontfile ) ) {
377377
if( !FcConfigAppFontAddFile( NULL,
@@ -386,7 +386,6 @@ vips_text_build( VipsObject *object )
386386
text->fontfile,
387387
g_strdup( text->fontfile ) );
388388
}
389-
*/
390389

391390
/* If our caller set height and not dpi, we adjust dpi until
392391
* we get a fit.

0 commit comments

Comments
 (0)