diff --git a/font-viewer/Makefile.am b/font-viewer/Makefile.am index a71de6cd5..ca65a276e 100644 --- a/font-viewer/Makefile.am +++ b/font-viewer/Makefile.am @@ -5,10 +5,10 @@ INCLUDES = $(FONT_VIEWER_CFLAGS) $(GNOMECC_CAPPLETS_CFLAGS) -DDIRECTORY_DIR=\"$( bin_PROGRAMS = gnome-thumbnail-font gnome-font-viewer gnome_thumbnail_font_LDADD = $(GNOMECC_CAPPLETS_LIBS) $(FONT_VIEWER_LIBS) -gnome_thumbnail_font_SOURCES = ftstream-vfs.c font-thumbnailer.c totem-resources.c totem-resources.h +gnome_thumbnail_font_SOURCES = ftstream-vfs.c ftstream-vfs.h font-thumbnailer.c totem-resources.c totem-resources.h gnome_font_viewer_LDADD = $(GNOMECC_CAPPLETS_LIBS) $(FONT_VIEWER_LIBS) -gnome_font_viewer_SOURCES = ftstream-vfs.c font-view.c +gnome_font_viewer_SOURCES = ftstream-vfs.c ftstream-vfs.h font-view.c schemasdir = $(GCONF_SCHEMA_FILE_DIR) schemas_DATA = fontilus.schemas diff --git a/font-viewer/ftstream-vfs.c b/font-viewer/ftstream-vfs.c index 4ffe8232d..dbfa7ec5d 100644 --- a/font-viewer/ftstream-vfs.c +++ b/font-viewer/ftstream-vfs.c @@ -27,6 +27,8 @@ #include +#include "ftstream-vfs.h" + static unsigned long vfs_stream_read(FT_Stream stream, unsigned long offset, diff --git a/font-viewer/ftstream-vfs.h b/font-viewer/ftstream-vfs.h new file mode 100644 index 000000000..79fe10d2e --- /dev/null +++ b/font-viewer/ftstream-vfs.h @@ -0,0 +1,28 @@ +/* -*- mode: C; c-basic-offset: 4 -*- + * fontilus - a collection of font utilities for GNOME + * Copyright (C) 2002-2003 James Henstridge + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include +#include FT_FREETYPE_H + +/* load a typeface from a URI */ +FT_Error FT_New_Face_From_URI(FT_Library library, + const gchar* uri, + FT_Long face_index, + FT_Face *aface); +