handle multiline text. (add_face_info): add some extra information found

2002-12-09  James Henstridge  <james@daa.com.au>

    * src/font-view.c (add_row): handle multiline text.
    (add_face_info): add some extra information found in SFNT or Type1
    fonts.
    (create_text_pixmap): change the font output.

2002-12-06  James Henstridge  <james@daa.com.au>

    * src/ftstream-vfs.c (FT_New_Face_From_URI): if the URI looks
    local, bypass gnome-vfs to open the face (small optimisation).

    * src/font-view.c (create_text_pixmap): only display the font at
    its fixed sizes if it is not scalable.  Before we were ignoring
    the outlines on fonts such as Lucida Console, which includes both
    outlines and bitmaps for small sizes.
This commit is contained in:
James Henstridge 2002-12-09 14:30:07 +00:00 committed by James Henstridge
parent 99c6596712
commit a9a963aec7
3 changed files with 141 additions and 21 deletions

View file

@ -87,10 +87,18 @@ 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;