summaryrefslogtreecommitdiff
path: root/font-viewer/ftstream-vfs.h
diff options
context:
space:
mode:
authorraveit <[email protected]>2015-08-08 20:59:06 +0200
committerinfirit <[email protected]>2015-08-08 20:59:57 +0200
commit11a458806bf0775b663c164dfc1403f1f3947784 (patch)
tree9b67aeaf2f61b91d72d96e0d67261a000b5c2fb4 /font-viewer/ftstream-vfs.h
parent0c8fd57afb370b8f9ecc2b1fc41c568dbba27a37 (diff)
downloadmate-control-center-11a458806bf0775b663c164dfc1403f1f3947784.tar.bz2
mate-control-center-11a458806bf0775b663c164dfc1403f1f3947784.tar.xz
font-viewer: Use cairo for font rendering
Taken from gnome-font-viewer based on initial patch by Rodrigo Moya and updated by Cosimo Cecchi <[email protected]> commit: 51110f87d6f134f8481031f13fdc3bc3759991bb
Diffstat (limited to 'font-viewer/ftstream-vfs.h')
-rw-r--r--font-viewer/ftstream-vfs.h35
1 files changed, 35 insertions, 0 deletions
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 <[email protected]>
+ *
+ * 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 <ft2build.h>
+#include FT_FREETYPE_H
+#include <glib.h>
+
+FT_Error FT_New_Face_From_URI (FT_Library library,
+ const gchar* uri,
+ FT_Long face_index,
+ FT_Face *aface);
+
+#endif /* __FTSTREAM_VFS_H__ */