summaryrefslogtreecommitdiff
path: root/pango/pangox.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-01-17 23:32:16 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-01-17 23:32:16 +0000
commit4f4abbdc8fc0cd0547b0df81eb6f7bb3c77dee7e (patch)
tree23842ce1acae401fd7d3891bdc84384651eb60a3 /pango/pangox.h
parent620fb9ffc8ce07446ab341630e37900d7c9c102b (diff)
downloadpango-4f4abbdc8fc0cd0547b0df81eb6f7bb3c77dee7e.tar.gz
back away from the strict charset model to having subfonts arbitrarily
Mon Jan 17 18:29:39 2000 Owen Taylor <otaylor@redhat.com> * libpango/pangox.[ch] modules/basic/basic.c: back away from the strict charset model to having subfonts arbitrarily indexed. The charset-index model didn't allow proper fallbacks. Add a function pango_x_list_subfonts() function that lists subfonts in the proper order for a given list of charsets. (segfaults currently, will fix pronto)
Diffstat (limited to 'pango/pangox.h')
-rw-r--r--pango/pangox.h74
1 files changed, 36 insertions, 38 deletions
diff --git a/pango/pangox.h b/pango/pangox.h
index 63930256..8847b363 100644
--- a/pango/pangox.h
+++ b/pango/pangox.h
@@ -35,51 +35,49 @@ extern "C" {
/* Calls for applications
*/
-PangoFont * pango_x_load_font (Display *display,
- char *spec);
-void pango_x_render (Display *display,
- Drawable d,
- GC gc,
- PangoFont *font,
- PangoGlyphString *glyphs,
- int x,
- int y);
-void pango_x_extents (PangoFont *font,
- PangoGlyphString *glyphs,
- int *lbearing,
- int *rbearing,
- int *width,
- int *ascent,
- int *descent,
- int *logical_ascent,
- int *logical_descent);
-void pango_x_glyph_extents (PangoFont *font,
- PangoGlyph glyph,
- int *lbearing,
- int *rbearing,
- int *width,
- int *ascent,
- int *descent,
- int *logical_ascent,
- int *logical_descent);
+PangoFont *pango_x_load_font (Display *display,
+ gchar *spec);
+void pango_x_render (Display *display,
+ Drawable d,
+ GC gc,
+ PangoFont *font,
+ PangoGlyphString *glyphs,
+ gint x,
+ gint y);
+void pango_x_extents (PangoFont *font,
+ PangoGlyphString *glyphs,
+ gint *lbearing,
+ gint *rbearing,
+ gint *width,
+ gint *ascent,
+ gint *descent,
+ gint *logical_ascent,
+ gint *logical_descent);
+void pango_x_glyph_extents (PangoFont *font,
+ PangoGlyph glyph,
+ gint *lbearing,
+ gint *rbearing,
+ gint *width,
+ gint *ascent,
+ gint *descent,
+ gint *logical_ascent,
+ gint *logical_descent);
/* API for rendering modules
*/
-typedef guint16 PangoXSubfontID;
+typedef guint16 PangoXSubfont;
-#define PANGO_X_MAKE_GLYPH(subfont,index) (subfont<<16 | index)
+#define PANGO_X_MAKE_GLYPH(charset,index) (charset<<16 | index)
#define PANGO_X_GLYPH_SUBFONT(glyph) (glyph>>16)
#define PANGO_X_GLYPH_INDEX(glyph) (glyph & 0xffff)
-void pango_x_list_charsets (PangoFont *font,
- char **charsets,
- int n_charsets,
- int charsets);
-
-PangoXCharset pango_x_find_charset (PangoFont *font,
- char *charset);
-gboolean pango_x_has_glyph (PangoFont *font,
- PangoGlyph glyph);
+int pango_x_list_subfonts (PangoFont *font,
+ char **charsets,
+ int n_charsets,
+ PangoXSubfont **subfont_ids,
+ int **subfont_charsets);
+gboolean pango_x_has_glyph (PangoFont *font,
+ PangoGlyph glyph);
#ifdef __cplusplus
}