From 11a458806bf0775b663c164dfc1403f1f3947784 Mon Sep 17 00:00:00 2001 From: raveit Date: Sat, 8 Aug 2015 20:59:06 +0200 Subject: font-viewer: Use cairo for font rendering Taken from gnome-font-viewer based on initial patch by Rodrigo Moya and updated by Cosimo Cecchi commit: 51110f87d6f134f8481031f13fdc3bc3759991bb --- font-viewer/ftstream-vfs.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 font-viewer/ftstream-vfs.h (limited to 'font-viewer/ftstream-vfs.h') diff --git a/font-viewer/ftstream-vfs.h b/font-viewer/ftstream-vfs.h new file mode 100644 index 00000000..c550cafd --- /dev/null +++ b/font-viewer/ftstream-vfs.h @@ -0,0 +1,35 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ + +/* + * ftstream-vfs: a FreeType/GIO stream bridge + * + * 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 + */ + +#ifndef __FTSTREAM_VFS_H__ +#define __FTSTREAM_VFS_H__ + +#include +#include FT_FREETYPE_H +#include + +FT_Error FT_New_Face_From_URI (FT_Library library, + const gchar* uri, + FT_Long face_index, + FT_Face *aface); + +#endif /* __FTSTREAM_VFS_H__ */ -- cgit v1.2.1