diff options
author | Owen Taylor <otaylor@src.gnome.org> | 2000-06-08 18:48:32 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2000-06-08 18:48:32 +0000 |
commit | 1e916c95bb218660ed34e9d712969462d9d9c161 (patch) | |
tree | 61eb5424ddc5f16b9524d0278893797d1e6079ba | |
parent | 40bf30500165bd6a5116dc5214890781eb156a8c (diff) | |
download | pango-1e916c95bb218660ed34e9d712969462d9d9c161.tar.gz |
*** empty log message ***
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLog.pre-1-0 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-1-2 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-1-4 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-1-6 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-1-8 | 7 | ||||
-rw-r--r-- | docs/Makefile.am | 17 | ||||
-rw-r--r-- | docs/pango-sections.txt | 31 | ||||
-rw-r--r-- | docs/tmpl/fonts.sgml | 170 | ||||
-rw-r--r-- | docs/tmpl/pango-unused.sgml | 75 | ||||
-rw-r--r-- | docs/tmpl/x-fonts.sgml | 78 | ||||
-rw-r--r-- | pango/Makefile.am | 1 | ||||
-rw-r--r-- | pango/itemize.c | 4 | ||||
-rw-r--r-- | pango/modules.c | 16 | ||||
-rw-r--r-- | pango/modules.h | 16 | ||||
-rw-r--r-- | pango/pango-context.c | 7 | ||||
-rw-r--r-- | pango/pango-font.h | 8 | ||||
-rw-r--r-- | pango/pango-types.h | 6 | ||||
-rw-r--r-- | pango/pangox-fontmap.c | 4 | ||||
-rw-r--r-- | pango/pangox-private.h | 2 | ||||
-rw-r--r-- | pango/pangox.c | 4 |
22 files changed, 363 insertions, 125 deletions
@@ -1,4 +1,11 @@ +Thu Jun 8 14:43:35 2000 Owen Taylor <otaylor@redhat.com> + + * pango/pango-modules.h: pango/Makefile.am: Add a new + header pango-modules.h to export a few parts of the + modules API needed by code for new types of fonts. + 2000-06-08 Elliot Lee <sopwith@redhat.com> + * pango-config.in: Include X_LIBS in libraries for 'pangox' target. 2000-06-07 Havoc Pennington <hp@redhat.com> diff --git a/ChangeLog.pre-1-0 b/ChangeLog.pre-1-0 index 7ec5a0b8..36ee8a82 100644 --- a/ChangeLog.pre-1-0 +++ b/ChangeLog.pre-1-0 @@ -1,4 +1,11 @@ +Thu Jun 8 14:43:35 2000 Owen Taylor <otaylor@redhat.com> + + * pango/pango-modules.h: pango/Makefile.am: Add a new + header pango-modules.h to export a few parts of the + modules API needed by code for new types of fonts. + 2000-06-08 Elliot Lee <sopwith@redhat.com> + * pango-config.in: Include X_LIBS in libraries for 'pangox' target. 2000-06-07 Havoc Pennington <hp@redhat.com> diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index 7ec5a0b8..36ee8a82 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,4 +1,11 @@ +Thu Jun 8 14:43:35 2000 Owen Taylor <otaylor@redhat.com> + + * pango/pango-modules.h: pango/Makefile.am: Add a new + header pango-modules.h to export a few parts of the + modules API needed by code for new types of fonts. + 2000-06-08 Elliot Lee <sopwith@redhat.com> + * pango-config.in: Include X_LIBS in libraries for 'pangox' target. 2000-06-07 Havoc Pennington <hp@redhat.com> diff --git a/ChangeLog.pre-1-2 b/ChangeLog.pre-1-2 index 7ec5a0b8..36ee8a82 100644 --- a/ChangeLog.pre-1-2 +++ b/ChangeLog.pre-1-2 @@ -1,4 +1,11 @@ +Thu Jun 8 14:43:35 2000 Owen Taylor <otaylor@redhat.com> + + * pango/pango-modules.h: pango/Makefile.am: Add a new + header pango-modules.h to export a few parts of the + modules API needed by code for new types of fonts. + 2000-06-08 Elliot Lee <sopwith@redhat.com> + * pango-config.in: Include X_LIBS in libraries for 'pangox' target. 2000-06-07 Havoc Pennington <hp@redhat.com> diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4 index 7ec5a0b8..36ee8a82 100644 --- a/ChangeLog.pre-1-4 +++ b/ChangeLog.pre-1-4 @@ -1,4 +1,11 @@ +Thu Jun 8 14:43:35 2000 Owen Taylor <otaylor@redhat.com> + + * pango/pango-modules.h: pango/Makefile.am: Add a new + header pango-modules.h to export a few parts of the + modules API needed by code for new types of fonts. + 2000-06-08 Elliot Lee <sopwith@redhat.com> + * pango-config.in: Include X_LIBS in libraries for 'pangox' target. 2000-06-07 Havoc Pennington <hp@redhat.com> diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index 7ec5a0b8..36ee8a82 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,4 +1,11 @@ +Thu Jun 8 14:43:35 2000 Owen Taylor <otaylor@redhat.com> + + * pango/pango-modules.h: pango/Makefile.am: Add a new + header pango-modules.h to export a few parts of the + modules API needed by code for new types of fonts. + 2000-06-08 Elliot Lee <sopwith@redhat.com> + * pango-config.in: Include X_LIBS in libraries for 'pangox' target. 2000-06-07 Havoc Pennington <hp@redhat.com> diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index 7ec5a0b8..36ee8a82 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,4 +1,11 @@ +Thu Jun 8 14:43:35 2000 Owen Taylor <otaylor@redhat.com> + + * pango/pango-modules.h: pango/Makefile.am: Add a new + header pango-modules.h to export a few parts of the + modules API needed by code for new types of fonts. + 2000-06-08 Elliot Lee <sopwith@redhat.com> + * pango-config.in: Include X_LIBS in libraries for 'pangox' target. 2000-06-07 Havoc Pennington <hp@redhat.com> diff --git a/docs/Makefile.am b/docs/Makefile.am index 5a3e6d4c..39aa9a03 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -1,5 +1,19 @@ ## Process this file with automake to create Makefile.in. +pangoheaders = \ + ../pango/pango.h \ + ../pango/pango-attributes.h \ + ../pango/pango-context.h \ + ../pango/pango-coverage.h \ + ../pango/pango-engine.h \ + ../pango/pango-font.h \ + ../pango/pango-fontmap.h \ + ../pango/pango-glyph.h \ + ../pango/pango-item.h \ + ../pango/pango-layout.h \ + ../pango/pango-types.h \ + ../pango/pangox.h + if HAVE_GTK_DOC # The name of the module. @@ -8,11 +22,10 @@ DOC_MODULE=pango # The top-level SGML file. DOC_MAIN_SGML_FILE=pango-docs.sgml -INCLUDE_DIR=../pango SOURCE_DIR=../pango scan: - gtkdoc-scan --module=$(DOC_MODULE) $(INCLUDE_DIR)/pango*.h + gtkdoc-scan --module=$(DOC_MODULE) $(pangoheaders) templates: scan gtkdoc-mktmpl --module=$(DOC_MODULE) diff --git a/docs/pango-sections.txt b/docs/pango-sections.txt index d7a1b673..458ef2a6 100644 --- a/docs/pango-sections.txt +++ b/docs/pango-sections.txt @@ -94,26 +94,32 @@ pango_font_description_to_string PangoFont PangoFontClass PangoFontMetrics -pango_font_init -pango_font_ref -pango_font_unref pango_font_find_shaper pango_font_describe pango_font_get_coverage pango_font_get_glyph_extents pango_font_get_metrics -pango_font_get_data -pango_font_set_data +PANGO_TYPE_FONT +PANGO_FONT +PANGO_IS_FONT +PANGO_FONT_CLASS +PANGO_IS_FONT_CLASS +PANGO_FONT_GET_CLASS +pango_font_get_type <SUBSECTION> PangoFontMap PangoFontMapClass -pango_font_map_init -pango_font_map_ref -pango_font_map_unref pango_font_map_load_font pango_font_map_list_families pango_font_map_free_families pango_font_map_list_fonts +PANGO_TYPE_FONT_MAP +PANGO_FONT_MAP +PANGO_IS_FONT_MAP +PANGO_FONT_MAP_CLASS +PANGO_IS_FONT_MAP_CLASS +PANGO_FONT_MAP_GET_CLASS +pango_font_map_get_type </SECTION> <SECTION> @@ -250,4 +256,13 @@ pango_x_load_font pango_x_get_unknown_glyph pango_x_has_glyph pango_x_list_subfonts +pango_x_font_map_for_display +pango_x_shutdown_display +pango_x_font_map_get_font_cache +pango_x_font_subfont_xlfd +PangoXFontCache +pango_x_font_cache_new +pango_x_font_cache_free +pango_x_font_cache_load +pango_x_font_cache_unload </SECTION> diff --git a/docs/tmpl/fonts.sgml b/docs/tmpl/fonts.sgml index dd6ce068..762be79e 100644 --- a/docs/tmpl/fonts.sgml +++ b/docs/tmpl/fonts.sgml @@ -36,12 +36,11 @@ the characteristics of a font to load. <!-- ##### ENUM PangoStyle ##### --> <para> -An enumeration specifying the various slant styles possible for a font. </para> -@PANGO_STYLE_NORMAL: the font is upright. -@PANGO_STYLE_OBLIQUE: the font is slanted, but in a roman style. -@PANGO_STYLE_ITALIC: the font is slanted in an italic style. +@PANGO_STYLE_NORMAL: +@PANGO_STYLE_OBLIQUE: +@PANGO_STYLE_ITALIC: <!-- ##### ENUM PangoWeight ##### --> <para> @@ -148,10 +147,7 @@ The #PangoFont structure contains one member which the implementation fills in: </para> -@klass: a pointer to the <firstterm>class structure</firstterm> - for this font. People using a #PangoFont should - not directly access this member; they should use the - appropriate wrapper functions. +@parent_instance: <!-- ##### STRUCT PangoFontClass ##### --> <para> @@ -171,7 +167,7 @@ It contains the following members: </tbody></tgroup></informaltable> </para> -@destroy: a function to free the font structure and associated resources. +@parent_class: @describe: a function to describe the characteristics of a font. See pango_font_describe(). @get_coverage: A function to get a coverage map for the font. @@ -199,30 +195,6 @@ a font. It contains the following members: as @ascent + @descent. Individual characters may have extents exceeding this value. -<!-- ##### FUNCTION pango_font_init ##### --> -<para> - -</para> - -@font: - - -<!-- ##### FUNCTION pango_font_ref ##### --> -<para> - -</para> - -@font: - - -<!-- ##### FUNCTION pango_font_unref ##### --> -<para> - -</para> - -@font: - - <!-- ##### FUNCTION pango_font_find_shaper ##### --> <para> @@ -276,25 +248,59 @@ a font. It contains the following members: @metrics: -<!-- ##### FUNCTION pango_font_get_data ##### --> +<!-- ##### MACRO PANGO_TYPE_FONT ##### --> <para> </para> -@font: -@key: -@Returns: -<!-- ##### FUNCTION pango_font_set_data ##### --> +<!-- ##### MACRO PANGO_FONT ##### --> <para> </para> -@font: -@key: -@data: -@destroy_func: +@object: + + +<!-- ##### MACRO PANGO_IS_FONT ##### --> +<para> + +</para> + +@object: + + +<!-- ##### MACRO PANGO_FONT_CLASS ##### --> +<para> + +</para> + +@klass: + + +<!-- ##### MACRO PANGO_IS_FONT_CLASS ##### --> +<para> + +</para> + +@klass: + + +<!-- ##### MACRO PANGO_FONT_GET_CLASS ##### --> +<para> + +</para> + +@obj: + + +<!-- ##### FUNCTION pango_font_get_type ##### --> +<para> + +</para> + +@Returns: <!-- ##### STRUCT PangoFontMap ##### --> @@ -312,10 +318,7 @@ pango_font_map_init() on the structure. The #PangoFont structure contains one member which the implementation fills in: </para> -@klass: a pointer to the <firstterm>class structure</firstterm> - for this font map. People using a #PangoFontMap should - not directly access this member; they should use the - appropriate wrapper functions. +@parent_instance: <!-- ##### STRUCT PangoFontMapClass ##### --> <para> @@ -323,76 +326,107 @@ The #PangoFontMapClass structure holds the virtual functions for a particular #PangoFontMap implementation. </para> -@destroy: a function to free the font map structure and associated resources. +@parent_class: @load_font: a function to load a font with a given description. See pango_font_map_load_font() @list_fonts: A function to list available fonts. See pango_font_map_list_fonts() @list_families: A function to list available font families. See pango_font_map_list_families(). -<!-- ##### FUNCTION pango_font_map_init ##### --> +<!-- ##### FUNCTION pango_font_map_load_font ##### --> <para> </para> @fontmap: +@desc: +@Returns: +<!-- # Unused Parameters # --> +@size: -<!-- ##### FUNCTION pango_font_map_ref ##### --> +<!-- ##### FUNCTION pango_font_map_list_families ##### --> <para> </para> @fontmap: +@families: +@n_families: -<!-- ##### FUNCTION pango_font_map_unref ##### --> +<!-- ##### FUNCTION pango_font_map_free_families ##### --> <para> </para> -@fontmap: +@families: +@n_families: -<!-- ##### FUNCTION pango_font_map_load_font ##### --> +<!-- ##### FUNCTION pango_font_map_list_fonts ##### --> <para> </para> @fontmap: -@desc: -@Returns: -<!-- # Unused Parameters # --> -@size: +@family: +@descs: +@n_descs: -<!-- ##### FUNCTION pango_font_map_list_families ##### --> +<!-- ##### MACRO PANGO_TYPE_FONT_MAP ##### --> <para> </para> -@fontmap: -@families: -@n_families: -<!-- ##### FUNCTION pango_font_map_free_families ##### --> +<!-- ##### MACRO PANGO_FONT_MAP ##### --> <para> </para> -@families: -@n_families: +@object: -<!-- ##### FUNCTION pango_font_map_list_fonts ##### --> +<!-- ##### MACRO PANGO_IS_FONT_MAP ##### --> <para> </para> -@fontmap: -@family: -@descs: -@n_descs: +@object: + + +<!-- ##### MACRO PANGO_FONT_MAP_CLASS ##### --> +<para> + +</para> + +@klass: + + +<!-- ##### MACRO PANGO_IS_FONT_MAP_CLASS ##### --> +<para> + +</para> + +@klass: + + +<!-- ##### MACRO PANGO_FONT_MAP_GET_CLASS ##### --> +<para> + +</para> + +@obj: + + +<!-- ##### FUNCTION pango_font_map_get_type ##### --> +<para> + +</para> + +@Returns: diff --git a/docs/tmpl/pango-unused.sgml b/docs/tmpl/pango-unused.sgml index a2882e7d..d55e95f5 100644 --- a/docs/tmpl/pango-unused.sgml +++ b/docs/tmpl/pango-unused.sgml @@ -2,6 +2,13 @@ ======= +<!-- ##### FUNCTION pango_font_ref ##### --> +<para> + +</para> + +@font: + <!-- ##### FUNCTION pango_x_to_cp ##### --> ======= @@ -49,6 +56,29 @@ that may be accessed by derived classes: @font: +<!-- ##### FUNCTION pango_font_map_unref ##### --> +<para> + +</para> + +@fontmap: + +<!-- ##### FUNCTION pango_font_unref ##### --> +<para> + +</para> + +@font: + +<!-- ##### FUNCTION pango_font_get_data ##### --> +<para> + +</para> + +@font: +@key: +@Returns: + <!-- ##### FUNCTION pango_x_xlfd_get_ranges ##### --> ======= @@ -68,6 +98,13 @@ that may be accessed by derived classes: @trailing: @x_pos: >>>>>>> 1.8 +<!-- ##### TYPEDEF PangoGlyphIndex ##### --> +<para> +The #PangoGlyphIndex type is an integral type used to store glyph +indices. +</para> + + <!-- ##### FUNCTION pango_x_glyph_extents ##### --> <para> @@ -83,13 +120,6 @@ that may be accessed by derived classes: @logical_ascent: @logical_descent: -<!-- ##### TYPEDEF PangoGlyphIndex ##### --> -<para> -The #PangoGlyphIndex type is an integral type used to store glyph -indices. -</para> - - <!-- ##### FUNCTION pango_attribute_register_type ##### --> <para> @@ -204,6 +234,13 @@ X Rendering @char_pos: @trailing: +<!-- ##### FUNCTION pango_font_init ##### --> +<para> + +</para> + +@font: + <!-- ##### FUNCTION pango_x_list_cfonts ##### --> <para> @@ -224,6 +261,16 @@ X Rendering @xlfd: @Returns: +<!-- ##### FUNCTION pango_font_set_data ##### --> +<para> + +</para> + +@font: +@key: +@data: +@destroy_func: + <!-- ##### FUNCTION g_glyph_string_set_size ##### --> <para> @@ -241,6 +288,13 @@ X Rendering @charset: @Returns: +<!-- ##### FUNCTION pango_font_map_init ##### --> +<para> + +</para> + +@fontmap: + <!-- ##### STRUCT PangoXCFont ##### --> <para> The PangoXCFont represents a component of a @@ -305,6 +359,13 @@ the X Window system. @Returns: +<!-- ##### FUNCTION pango_font_map_ref ##### --> +<para> + +</para> + +@fontmap: + <!-- ##### SECTION ./tmpl/pango-x.sgml:Long_Description ##### --> <para> diff --git a/docs/tmpl/x-fonts.sgml b/docs/tmpl/x-fonts.sgml index 2f19e077..ecbc147f 100644 --- a/docs/tmpl/x-fonts.sgml +++ b/docs/tmpl/x-fonts.sgml @@ -93,3 +93,81 @@ glyph index. @Returns: +<!-- ##### FUNCTION pango_x_font_map_for_display ##### --> +<para> + +</para> + +@display: +@Returns: + + +<!-- ##### FUNCTION pango_x_shutdown_display ##### --> +<para> + +</para> + +@display: + + +<!-- ##### FUNCTION pango_x_font_map_get_font_cache ##### --> +<para> + +</para> + +@font_map: +@Returns: + + +<!-- ##### FUNCTION pango_x_font_subfont_xlfd ##### --> +<para> + +</para> + +@font: +@subfont_id: +@Returns: + + +<!-- ##### STRUCT PangoXFontCache ##### --> +<para> + +</para> + + +<!-- ##### FUNCTION pango_x_font_cache_new ##### --> +<para> + +</para> + +@display: +@Returns: + + +<!-- ##### FUNCTION pango_x_font_cache_free ##### --> +<para> + +</para> + +@cache: + + +<!-- ##### FUNCTION pango_x_font_cache_load ##### --> +<para> + +</para> + +@cache: +@xlfd: +@Returns: + + +<!-- ##### FUNCTION pango_x_font_cache_unload ##### --> +<para> + +</para> + +@cache: +@fs: + + diff --git a/pango/Makefile.am b/pango/Makefile.am index 076e183e..168f014e 100644 --- a/pango/Makefile.am +++ b/pango/Makefile.am @@ -52,6 +52,7 @@ pangoinclude_HEADERS = \ pango-glyph.h \ pango-item.h \ pango-layout.h \ + pango-modules.h \ pango-types.h \ pangox.h diff --git a/pango/itemize.c b/pango/itemize.c index 27e2c81a..ed877fc0 100644 --- a/pango/itemize.c +++ b/pango/itemize.c @@ -204,9 +204,9 @@ add_engines (PangoContext *context, (last_lang == 0 || lang == 0 || strcmp (lang, last_lang) != 0)) { - lang_map = _pango_find_map (lang, PANGO_ENGINE_TYPE_LANG, + lang_map = pango_find_map (lang, PANGO_ENGINE_TYPE_LANG, PANGO_RENDER_TYPE_NONE); - shape_map = _pango_find_map (lang, PANGO_ENGINE_TYPE_SHAPE, + shape_map = pango_find_map (lang, PANGO_ENGINE_TYPE_SHAPE, context->render_type); last_lang = lang; } diff --git a/pango/modules.c b/pango/modules.c index db173e88..c109c3ef 100644 --- a/pango/modules.c +++ b/pango/modules.c @@ -24,8 +24,8 @@ #include <string.h> #include <gmodule.h> -#include <pango/pango.h> +#include "pango-modules.h" #include "modules.h" #include "utils.h" @@ -71,9 +71,9 @@ static void build_map (PangoMapInfo *info); static void init_modules (void); PangoMap * -_pango_find_map (const char *lang, - guint engine_type_id, - guint render_type_id) +pango_find_map (const char *lang, + guint engine_type_id, + guint render_type_id) { GList *tmp_list = maps; PangoMapInfo *map_info = NULL; @@ -461,16 +461,16 @@ build_map (PangoMapInfo *info) } PangoMapEntry * -_pango_map_get_entry (PangoMap *map, - guint32 wc) +pango_map_get_entry (PangoMap *map, + guint32 wc) { PangoSubmap *submap = &map->submaps[wc / 256]; return submap->is_leaf ? &submap->d.entry : &submap->d.leaves[wc % 256]; } PangoEngine * -_pango_map_get_engine (PangoMap *map, - guint32 wc) +pango_map_get_engine (PangoMap *map, + guint32 wc) { PangoSubmap *submap = &map->submaps[wc / 256]; PangoMapEntry *entry = submap->is_leaf ? &submap->d.entry : &submap->d.leaves[wc % 256]; diff --git a/pango/modules.h b/pango/modules.h index 3b0ca0e6..2ddc4999 100644 --- a/pango/modules.h +++ b/pango/modules.h @@ -25,15 +25,7 @@ #define __MODULES_H__ typedef struct _PangoIncludedModule PangoIncludedModule; -typedef struct _PangoMap PangoMap; -typedef struct _PangoMapEntry PangoMapEntry; - -struct _PangoMapEntry -{ - PangoEngineInfo *info; - gboolean is_exact; -}; struct _PangoIncludedModule { void (*list) (PangoEngineInfo **engines, int *n_engines); @@ -41,14 +33,6 @@ struct _PangoIncludedModule void (*unload) (PangoEngine *engine); }; -PangoMap * _pango_find_map (const char *lang, - guint engine_type_id, - guint render_type_id); -PangoMapEntry *_pango_map_get_entry (PangoMap *map, - guint32 wc); -PangoEngine * _pango_map_get_engine (PangoMap *map, - guint32 wc); - extern PangoIncludedModule _pango_included_modules[]; #endif /* __MODULES_H__ */ diff --git a/pango/pango-context.c b/pango/pango-context.c index 04325402..cc672383 100644 --- a/pango/pango-context.c +++ b/pango/pango-context.c @@ -23,8 +23,9 @@ #include <fribidi/fribidi.h> #include <unicode.h> #include "iconv.h" + #include "utils.h" -#include "modules.h" +#include "pango-modules.h" struct _PangoContext { @@ -732,7 +733,7 @@ add_engines (PangoContext *context, render_type_id = g_quark_from_static_string (PANGO_RENDER_TYPE_NONE); } - lang_map = _pango_find_map (next_lang, + lang_map = pango_find_map (next_lang, engine_type_id, render_type_id); } @@ -780,7 +781,7 @@ add_engines (PangoContext *context, pos = unicode_get_utf8 (pos, &wc); - lang_engines[i] = (PangoEngineLang *)_pango_map_get_engine (lang_map, wc); + lang_engines[i] = (PangoEngineLang *)pango_map_get_engine (lang_map, wc); fonts[i] = get_font (current_fonts, current_coverages, n_families, wc); /* FIXME: handle reference counting properly on the shapers */ diff --git a/pango/pango-font.h b/pango/pango-font.h index eefae335..2ea64df9 100644 --- a/pango/pango-font.h +++ b/pango/pango-font.h @@ -34,6 +34,14 @@ extern "C" { typedef struct _PangoFontDescription PangoFontDescription; typedef struct _PangoFontMetrics PangoFontMetrics; +/** + * PangoStyle: + * @PANGO_STYLE_NORMAL: the font is upright. + * @PANGO_STYLE_OBLIQUE: the font is slanted, but in a roman style. + * @PANGO_STYLE_ITALIC: the font is slanted in an italic style. + * + * An enumeration specifying the various slant styles possible for a font. + **/ typedef enum { PANGO_STYLE_NORMAL, PANGO_STYLE_OBLIQUE, diff --git a/pango/pango-types.h b/pango/pango-types.h index 8c518cb4..cabdf232 100644 --- a/pango/pango-types.h +++ b/pango/pango-types.h @@ -24,12 +24,6 @@ #include <glib.h> -/* Include this here, since we don't depend on GLib 1.3 yet */ - -#ifndef G_N_ELEMENTS -#define G_N_ELEMENTS(arr) (sizeof(arr) / sizeof((arr)[0])) -#endif - typedef struct _PangoLangRange PangoLangRange; typedef struct _PangoLogAttr PangoLogAttr; diff --git a/pango/pangox-fontmap.c b/pango/pangox-fontmap.c index 4421f4a6..7f20a52a 100644 --- a/pango/pangox-fontmap.c +++ b/pango/pangox-fontmap.c @@ -1403,13 +1403,13 @@ pango_x_font_entry_get_coverage (PangoXFontEntry *entry, for (ch = 0; ch < 65536; ch++) { - map_entry = _pango_map_get_entry (shape_map, ch); + map_entry = pango_map_get_entry (shape_map, ch); if (map_entry->info) { coverage = g_hash_table_lookup (coverage_hash, map_entry->info->id); if (!coverage) { - PangoEngineShape *engine = (PangoEngineShape *)_pango_map_get_engine (shape_map, ch); + PangoEngineShape *engine = (PangoEngineShape *)pango_map_get_engine (shape_map, ch); coverage = engine->get_coverage (font, lang); g_hash_table_insert (coverage_hash, map_entry->info->id, coverage); } diff --git a/pango/pangox-private.h b/pango/pangox-private.h index 7d581178..ec59df50 100644 --- a/pango/pangox-private.h +++ b/pango/pangox-private.h @@ -22,7 +22,7 @@ #ifndef __PANGOX_PRIVATE_H__ #define __PANGOX_PRIVATE_H__ -#include "modules.h" +#include "pango-modules.h" #include "pangox.h" #include "pangox-private.h" diff --git a/pango/pangox.c b/pango/pangox.c index 37ab9c7c..b0da8d7b 100644 --- a/pango/pangox.c +++ b/pango/pangox.c @@ -987,7 +987,7 @@ pango_x_get_shaper_map (const char *lang) render_type_id = g_quark_from_static_string (PANGO_RENDER_TYPE_X); } - return _pango_find_map (lang, engine_type_id, render_type_id); + return pango_find_map (lang, engine_type_id, render_type_id); } static PangoCoverage * @@ -1007,7 +1007,7 @@ pango_x_font_find_shaper (PangoFont *font, PangoMap *shape_map = NULL; shape_map = pango_x_get_shaper_map (lang); - return (PangoEngineShape *)_pango_map_get_engine (shape_map, ch); + return (PangoEngineShape *)pango_map_get_engine (shape_map, ch); } /* Utility functions */ |