Jan-Åke Larsson
2006-05-16 06:34:02 UTC
Somehow this went off-list:
-------- Original Message --------
Subject: Re: [Dvipng] Possible problem with dvipng version 1.8/FT fonts
Date: Fri, 12 May 2006 15:25:55 +0200
--- dvipng/ft.c 2005/09/30 13:54:55 1.20
+++ dvipng/ft.c 2006/03/27 14:55:40 1.21
@@ -44,7 +44,7 @@
glyph_i = FT_Get_Char_Index( currentfont->face, c );
if (FT_Load_Glyph( currentfont->face, /* handle to face object */
glyph_i, /* glyph index */
- FT_LOAD_RENDER | FT_LOAD_NO_HINTING ))
+ FT_LOAD_RENDER | FT_LOAD_TARGET_LIGHT ))
/* load flags */
Fatal("cannot load FT char %d",c);
ptr->xOffset = -currentfont->face->glyph->bitmap_left*shrinkfactor;
If you want to test this, reverse that change and try again.
/JÅ
-------- Original Message --------
Subject: Re: [Dvipng] Possible problem with dvipng version 1.8/FT fonts
Date: Fri, 12 May 2006 15:25:55 +0200
There may be a problem with loading FT fonts in version 1.8 of dvipng. I
get the following error when running version 1.8
dvipng: Fatal error, cannot load FT char 78
(char 78 is evidently the first character in my dvi file 'N')
This is caused by the call to FT_Load_Glyp in ft.c
Version 1.7 compiles and runs successfully on my system.
How odd. The only thing that has changed isget the following error when running version 1.8
dvipng: Fatal error, cannot load FT char 78
(char 78 is evidently the first character in my dvi file 'N')
This is caused by the call to FT_Load_Glyp in ft.c
Version 1.7 compiles and runs successfully on my system.
--- dvipng/ft.c 2005/09/30 13:54:55 1.20
+++ dvipng/ft.c 2006/03/27 14:55:40 1.21
@@ -44,7 +44,7 @@
glyph_i = FT_Get_Char_Index( currentfont->face, c );
if (FT_Load_Glyph( currentfont->face, /* handle to face object */
glyph_i, /* glyph index */
- FT_LOAD_RENDER | FT_LOAD_NO_HINTING ))
+ FT_LOAD_RENDER | FT_LOAD_TARGET_LIGHT ))
/* load flags */
Fatal("cannot load FT char %d",c);
ptr->xOffset = -currentfont->face->glyph->bitmap_left*shrinkfactor;
If you want to test this, reverse that change and try again.
/JÅ