summaryrefslogtreecommitdiff
path: root/pango/glyphstring.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-01-15 06:12:19 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-01-15 06:12:19 +0000
commit08be81c00f4fce735979e6a684eeade00c1ce328 (patch)
tree5fc105b5c494741d01e484fbb43fb737cb777ccd /pango/glyphstring.c
parenta26b023b2859fed3e178a92e3d93c71672644e7d (diff)
downloadpango-08be81c00f4fce735979e6a684eeade00c1ce328.tar.gz
Eliminate PangoCFont; For X, encode charset into upper 16 bits of 32 bit
Sat Jan 15 01:06:45 2000 Owen Taylor <otaylor@redhat.com> * libpango/pangox.c libpango/pangox.h libpango/fonts.c libpango/glyphstring.c modules/basic/basic.c: Eliminate PangoCFont; For X, encode charset into upper 16 bits of 32 bit glyph IDs. Revise X core <=> module interfaces to support this change. Remove support for X_XLFD_FONT_RANGES, which has been disavowed by its proponents, in favor of checking metrics to figure out if the relevant characters are there. Rework operation of basic module to be faster and simple. * modules/Makefile.am: temporarily comment out Tamil and Hangul modules until I finish mucking with the X font interfaces.
Diffstat (limited to 'pango/glyphstring.c')
-rw-r--r--pango/glyphstring.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/pango/glyphstring.c b/pango/glyphstring.c
index d965ceb8..82d7d440 100644
--- a/pango/glyphstring.c
+++ b/pango/glyphstring.c
@@ -83,21 +83,6 @@ pango_glyph_string_set_size (PangoGlyphString *string, gint new_len)
void
pango_glyph_string_free (PangoGlyphString *string)
{
- int i;
- PangoCFont *last_cfont = NULL;
-
- for (i=0; i<string->num_glyphs; i++)
- {
- if (last_cfont && string->glyphs[i].font != last_cfont)
- {
- pango_cfont_unref (last_cfont);
- last_cfont = string->glyphs[i].font;
- }
- }
-
- if (last_cfont)
- pango_cfont_unref (last_cfont);
-
g_free (string->glyphs);
g_free (string->geometry);
g_free (string->attrs);