get rid of the local file optimisation. It didn't make a noticable
2002-12-10 James Henstridge <james@daa.com.au> * src/ftstream-vfs.c (FT_New_Face_From_URI): get rid of the local file optimisation. It didn't make a noticable difference for the large Asian fonts. * src/thumbnailer.c (main): set the charmap for the font before rendering the glyphs. This fixes rendering of some fonts jdub sent me.
This commit is contained in:
parent
a9a963aec7
commit
c2897e2653
3 changed files with 58 additions and 16 deletions
|
@ -27,7 +27,6 @@ vfs_stream_close(FT_Stream stream)
|
|||
{
|
||||
GnomeVFSHandle *handle = (GnomeVFSHandle *)stream->descriptor.pointer;
|
||||
|
||||
g_message("closing vfs stream");
|
||||
if (!handle)
|
||||
return;
|
||||
gnome_vfs_close(handle);
|
||||
|
@ -87,18 +86,10 @@ FT_New_Face_From_URI(FT_Library library,
|
|||
FT_Long face_index,
|
||||
FT_Face *aface)
|
||||
{
|
||||
gchar *local_file;
|
||||
FT_Open_Args args;
|
||||
FT_Stream stream;
|
||||
FT_Error error;
|
||||
|
||||
local_file = gnome_vfs_get_local_path_from_uri(uri);
|
||||
if (local_file) {
|
||||
error = FT_New_Face(library, local_file, face_index, aface);
|
||||
g_free(local_file);
|
||||
return error;
|
||||
}
|
||||
|
||||
if ((stream = calloc(1, sizeof(*stream))) == NULL)
|
||||
return FT_Err_Out_Of_Memory;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue