diff options
author | Darin Adler <darin@src.gnome.org> | 2001-07-12 16:34:40 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2001-07-12 16:34:40 +0000 |
commit | 5bf4e956f5fecf77e2988294a4f4d390f89a51e9 (patch) | |
tree | 60c42ed36328e3281db8a7642cebbb23d0ffdddc /pango/pangoxft-font.c | |
parent | 977dbeb2e823baa4940dbd8cfc054deed3017548 (diff) | |
download | pango-5bf4e956f5fecf77e2988294a4f4d390f89a51e9.tar.gz |
Remove stray semicolon.
* modules/arabic/arabic-x.c: (arabic_engine_shape): Remove stray
semicolon.
* modules/arabic/arconv.h:
* modules/arabic/arconv.c: (shape), (doublelig), (arabic_reshape):
Use long* instead of int* for parameter to match what's passed in.
* modules/indic/bengali-x.c: Add missing <string.h> include.
(pango_indic_make_ligs): Use local variable that was added but not
ever used.
(pango_indic_engine_shape): Remove unused locals.
* modules/indic/devanagari-x.c: Add missing <string.h> include.
(pango_indic_engine_shape): Remove unused local.
* modules/indic/gujarati-x.c: Add missing <string.h> include.
(pango_indic_engine_shape): Remove unused local
* modules/tamil/tamil-x.c: (tamil_engine_shape): Initialize a
variable to quiet the compiler's unused warning.
* pango/.cvsignore: Ignore more generated files.
* pango/opentype/ftxgpos.c: (Get_Anchor): Add code to set up the
ap variable. The old code would just use the uninitialized value.
* pango/opentype/ftxopen.c: (Load_Coverage): Remove unused local.
* pango/opentype/pango-ot-ruleset.c: (pango_ot_ruleset_shape):
Remove unused local.
* pango/pango-attributes.c: (pango_attr_list_get_type),
(pango_color_get_type): Add needed function type casts (just
warnings under gcc, but could be errors in other compilers).
* pango/pangoxft-font.c: (pango_xft_font_get_metrics),
(pango_xft_font_get_coverage), (pango_xft_get_shaper_map),
(pango_xft_font_find_shaper): Switch from lang char* to
PangoLanguage*. The code was still compiling, but would not have
worked.
Diffstat (limited to 'pango/pangoxft-font.c')
-rw-r--r-- | pango/pangoxft-font.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/pango/pangoxft-font.c b/pango/pangoxft-font.c index 243aaa09..96edd72c 100644 --- a/pango/pangoxft-font.c +++ b/pango/pangoxft-font.c @@ -46,16 +46,16 @@ static void pango_xft_font_finalize (GObject *object); static PangoFontDescription *pango_xft_font_describe (PangoFont *font); static PangoCoverage * pango_xft_font_get_coverage (PangoFont *font, - const char *lang); + PangoLanguage *language); static PangoEngineShape * pango_xft_font_find_shaper (PangoFont *font, - const char *lang, + PangoLanguage *language, guint32 ch); static void pango_xft_font_get_glyph_extents (PangoFont *font, PangoGlyph glyph, PangoRectangle *ink_rect, PangoRectangle *logical_rect); static void pango_xft_font_get_metrics (PangoFont *font, - const gchar *lang, + PangoLanguage *language, PangoFontMetrics *metrics); @@ -282,7 +282,7 @@ pango_xft_render (XftDraw *draw, static void pango_xft_font_get_metrics (PangoFont *font, - const gchar *lang, + PangoLanguage *language, PangoFontMetrics *metrics) { PangoXftFont *xfont = (PangoXftFont *)font; @@ -291,8 +291,6 @@ pango_xft_font_get_metrics (PangoFont *font, metrics->descent = PANGO_SCALE * xfont->xft_font->descent; metrics->approximate_digit_width = PANGO_SCALE * xfont->xft_font->max_advance_width; metrics->approximate_char_width = PANGO_SCALE * xfont->xft_font->max_advance_width; - - return; } static void @@ -335,8 +333,8 @@ pango_xft_font_describe (PangoFont *font) } static PangoCoverage * -pango_xft_font_get_coverage (PangoFont *font, - const char *lang) +pango_xft_font_get_coverage (PangoFont *font, + PangoLanguage *language) { PangoXftFont *xfont = (PangoXftFont *)font; FT_Face face; @@ -428,7 +426,7 @@ pango_xft_font_get_glyph_extents (PangoFont *font, } static PangoMap * -pango_xft_get_shaper_map (const char *lang) +pango_xft_get_shaper_map (PangoLanguage *language) { static guint engine_type_id = 0; static guint render_type_id = 0; @@ -439,17 +437,17 @@ pango_xft_get_shaper_map (const char *lang) render_type_id = g_quark_from_static_string (PANGO_RENDER_TYPE_XFT); } - return pango_find_map (lang, engine_type_id, render_type_id); + return pango_find_map (language, engine_type_id, render_type_id); } static PangoEngineShape * -pango_xft_font_find_shaper (PangoFont *font, - const gchar *lang, - guint32 ch) +pango_xft_font_find_shaper (PangoFont *font, + PangoLanguage *language, + guint32 ch) { PangoMap *shape_map = NULL; - shape_map = pango_xft_get_shaper_map (lang); + shape_map = pango_xft_get_shaper_map (language); return (PangoEngineShape *)pango_map_get_engine (shape_map, ch); } |