summaryrefslogtreecommitdiff
path: root/pango/pangox-private.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-05-28 00:38:05 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-05-28 00:38:05 +0000
commit1a23b2c124df6830bc8a8027bd8b38ccc2c75531 (patch)
tree36998ab8a3d8d1211d5eec8069a8d84c98a96041 /pango/pangox-private.h
parent62244f7210302bf7608c6130185c17d3d2e714e0 (diff)
downloadpango-1a23b2c124df6830bc8a8027bd8b38ccc2c75531.tar.gz
Add libgobject.
Sat May 27 20:36:56 2000 Owen Taylor <otaylor@redhat.com> * pango/Makefile.am configure.in: Add libgobject. * pango/pango-fontmap.[ch]: GObject'ify PangoFontMap. (Pango now requires GLib-1.3 to compile) * pango/pangox-fontmap.c pango/pangox-private.h: Break the fontmap code in libpangox out into a separate file. Tue May 23 10:32:25 2000 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_set_text): Allow -1 for the length.
Diffstat (limited to 'pango/pangox-private.h')
-rw-r--r--pango/pangox-private.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/pango/pangox-private.h b/pango/pangox-private.h
new file mode 100644
index 00000000..345213d5
--- /dev/null
+++ b/pango/pangox-private.h
@@ -0,0 +1,71 @@
+/* Pango
+ * pangox-private.h:
+ *
+ * Copyright (C) 1999 Red Hat Software
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __PANGOX_PRIVATE_H__
+#define __PANGOX_PRIVATE_H__
+
+#include "modules.h"
+#include "pangox.h"
+#include "pangox-private.h"
+
+typedef struct _PangoXFont PangoXFont;
+typedef struct _PangoXFontEntry PangoXFontEntry;
+typedef struct _PangoXSubfontInfo PangoXSubfontInfo;
+
+struct _PangoXFont
+{
+ PangoFont font;
+ Display *display;
+
+ char **fonts;
+ int n_fonts;
+ int size;
+
+ /* hash table mapping from charset-name to array of PangoXSubfont ids,
+ * of length n_fonts
+ */
+ GHashTable *subfonts_by_charset;
+
+ PangoXSubfontInfo **subfonts;
+
+ int n_subfonts;
+ int max_subfonts;
+
+ GSList *metrics_by_lang;
+
+ PangoXFontEntry *entry; /* Used to remove cached fonts */
+};
+
+PangoFont * pango_x_load_font_with_size (Display *display,
+ char *spec,
+ int size);
+PangoMap * pango_x_get_shaper_map (const char *lang);
+char * pango_x_make_matching_xlfd (PangoFontMap *fontmap,
+ char *xlfd,
+ const char *charset,
+ int size);
+PangoCoverage *pango_x_font_entry_get_coverage (PangoXFontEntry *entry,
+ PangoFont *font,
+ const char *lang);
+void pango_x_font_entry_remove (PangoXFontEntry *entry,
+ PangoFont *font);
+
+#endif /* __PANGOX_PRIVATE_H__ */