diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-02-06 00:31:24 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-02-06 00:31:24 +0000 |
commit | e64f585b37184d1bc94058ecca8182d80a07ecb4 (patch) | |
tree | 38b72dd9338edfa119aa14c0e9802ed4554f4356 | |
parent | 0af5d2c655d870cef5b93b0312e5642936eb435e (diff) | |
download | pango-e64f585b37184d1bc94058ecca8182d80a07ecb4.tar.gz |
100% symbol coverage in docs.
2006-02-05 Behdad Esfahbod <behdad@gnome.org>
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.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | docs/pango-sections.txt | 1 | ||||
-rw-r--r-- | docs/tmpl/glyphs.sgml | 9 | ||||
-rw-r--r-- | docs/tmpl/pango-renderer.sgml | 2 | ||||
-rw-r--r-- | pango/mini-fribidi/fribidi.c | 13 | ||||
-rw-r--r-- | pango/pango-utils.c | 28 |
6 files changed, 43 insertions, 17 deletions
@@ -1,3 +1,10 @@ +2006-02-05 Behdad Esfahbod <behdad@gnome.org> + + 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 <behdad@gnome.org> * 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: +<!-- ##### FUNCTION pango_matrix_get_font_scale_factor ##### --> +<para> + +</para> + +@matrix: +@Returns: + + <!-- ##### TYPEDEF PangoGlyph ##### --> <para> 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. <!-- ##### MACRO PANGO_TYPE_RENDER_PART ##### --> <para> - +The #GObject type for #PangoRenderPart. </para> 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 <glib/gstdio.h> -#ifdef HAVE_FRIBIDI -#include <fribidi/fribidi.h> -#endif +#include "mini-fribidi/fribidi_types.h" #ifndef HAVE_FLOCKFILE # define flockfile(f) (void)1 @@ -1773,6 +1771,30 @@ pango_find_base_dir (const gchar *text, } /** + * 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 * |