start of simple font viewer program. Doesn't correctl display the text yet
2002-12-04 James Henstridge <james@daa.com.au> * src/font-view.c (main): start of simple font viewer program. Doesn't correctl display the text yet though :( * src/ftstream-vfs.c (FT_New_Face_From_URI): rename function to match naming scheme used elsewhere.
This commit is contained in:
parent
a5d6209b4f
commit
2f4b9395dc
5 changed files with 134 additions and 12 deletions
|
@ -11,10 +11,10 @@
|
|||
#define FONT_SIZE 64
|
||||
#define PAD_PIXELS 4
|
||||
|
||||
FT_Error FT_New_URI_Face(FT_Library library,
|
||||
const gchar *uri,
|
||||
FT_Long face_index,
|
||||
FT_Face *aface);
|
||||
FT_Error FT_New_Face_From_URI(FT_Library library,
|
||||
const gchar *uri,
|
||||
FT_Long face_index,
|
||||
FT_Face *aface);
|
||||
|
||||
static void
|
||||
draw_bitmap(GdkPixbuf *pixbuf, FT_Bitmap *bitmap, gint off_x, gint off_y)
|
||||
|
@ -196,7 +196,7 @@ main(int argc, char **argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
error = FT_New_URI_Face(library, argv[1], 0, &face);
|
||||
error = FT_New_Face_From_URI(library, argv[1], 0, &face);
|
||||
if (error) {
|
||||
g_printerr("could not load face '%s'\n", argv[1]);
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue