From e64f585b37184d1bc94058ecca8182d80a07ecb4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 6 Feb 2006 00:31:24 +0000 Subject: 100% symbol coverage in docs. 2006-02-05 Behdad Esfahbod 100% symbol coverage in docs. * pango/pango-utils.c, pango/mini-fribidi/fribidi.c: Move pango_unichar_direction to pango-utils.c and document it. --- ChangeLog | 7 +++++++ docs/pango-sections.txt | 1 + docs/tmpl/glyphs.sgml | 9 +++++++++ docs/tmpl/pango-renderer.sgml | 2 +- pango/mini-fribidi/fribidi.c | 13 ------------- pango/pango-utils.c | 28 +++++++++++++++++++++++++--- 6 files changed, 43 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index e7e00f44..3d35d49f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-02-05 Behdad Esfahbod + + 100% symbol coverage in docs. + + * pango/pango-utils.c, pango/mini-fribidi/fribidi.c: Move + pango_unichar_direction to pango-utils.c and document it. + 2006-01-31 Behdad Esfahbod * pango/fonts.c, pango/glyphstring.c pango/pango-attributes.c diff --git a/docs/pango-sections.txt b/docs/pango-sections.txt index a8989601..058e5506 100644 --- a/docs/pango-sections.txt +++ b/docs/pango-sections.txt @@ -78,6 +78,7 @@ pango_matrix_translate pango_matrix_scale pango_matrix_rotate pango_matrix_concat +pango_matrix_get_font_scale_factor PangoGlyph PangoGlyphInfo PangoGlyphGeometry diff --git a/docs/tmpl/glyphs.sgml b/docs/tmpl/glyphs.sgml index 8dd63aaf..1232cd36 100644 --- a/docs/tmpl/glyphs.sgml +++ b/docs/tmpl/glyphs.sgml @@ -179,6 +179,15 @@ horizontal origin. @new_matrix: + + + + + +@matrix: +@Returns: + + A #PangoGlyph represents a single glyph in the output form of a string. diff --git a/docs/tmpl/pango-renderer.sgml b/docs/tmpl/pango-renderer.sgml index 2b5dd74c..f5f2bd9c 100644 --- a/docs/tmpl/pango-renderer.sgml +++ b/docs/tmpl/pango-renderer.sgml @@ -37,7 +37,7 @@ destinations can be created. - +The #GObject type for #PangoRenderPart. diff --git a/pango/mini-fribidi/fribidi.c b/pango/mini-fribidi/fribidi.c index 75366665..ee7f3888 100644 --- a/pango/mini-fribidi/fribidi.c +++ b/pango/mini-fribidi/fribidi.c @@ -1049,16 +1049,3 @@ pango_log2vis_get_embedding_levels (/* input */ DBG ("Leaving fribidi_log2vis_get_embedding_levels()\n"); return TRUE; } - -PangoDirection -pango_unichar_direction (gunichar ch) -{ - FriBidiCharType fribidi_ch_type = _pango_fribidi_get_type (ch); - - if (!FRIBIDI_IS_LETTER (fribidi_ch_type)) - return PANGO_DIRECTION_NEUTRAL; - else if (FRIBIDI_IS_RTL (fribidi_ch_type)) - return PANGO_DIRECTION_RTL; - else - return PANGO_DIRECTION_LTR; -} diff --git a/pango/pango-utils.c b/pango/pango-utils.c index 5000f489..d2d39891 100644 --- a/pango/pango-utils.c +++ b/pango/pango-utils.c @@ -31,9 +31,7 @@ #include -#ifdef HAVE_FRIBIDI -#include -#endif +#include "mini-fribidi/fribidi_types.h" #ifndef HAVE_FLOCKFILE # define flockfile(f) (void)1 @@ -1772,6 +1770,30 @@ pango_find_base_dir (const gchar *text, return dir; } +/** + * pango_unichar_direction: + * @ch: a Unicode character + * + * Determines the direction of a character; either + * %PANGO_DIRECTION_LTR, %PANGO_DIRECTION_RTL, or + * %PANGO_DIRECTION_NEUTRAL. + * + * Return value: the direction of the character, as used in the + * Unicode bidirectional algorithm. + */ +PangoDirection +pango_unichar_direction (gunichar ch) +{ + FriBidiCharType fribidi_ch_type = _pango_fribidi_get_type (ch); + + if (!FRIBIDI_IS_LETTER (fribidi_ch_type)) + return PANGO_DIRECTION_NEUTRAL; + else if (FRIBIDI_IS_RTL (fribidi_ch_type)) + return PANGO_DIRECTION_RTL; + else + return PANGO_DIRECTION_LTR; +} + /** * pango_is_zero_width: * @ch: a Unicode character -- cgit v1.2.1