summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-06-03 20:57:28 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-06-03 20:57:28 +0000
commitc41cb3563b5ead3fdaeb9656791b75170661e0aa (patch)
tree1f8f112f9913052daafec44dffec02932ca2d4e1 /pango
parente79b37d413ae5bad8cbb813f4720fb0a38bb94d0 (diff)
downloadpango-c41cb3563b5ead3fdaeb9656791b75170661e0aa.tar.gz
Fix various typos reported by Peter Moulder.
2007-06-03 Behdad Esfahbod <behdad@gnome.org> * docs/tmpl/main.sgml: * pango/pango-layout.c (process_item): * pango/pango-ot-info.c: * pango/pango-renderer.c (pango_renderer_draw_layout_line): Fix various typos reported by Peter Moulder. svn path=/trunk/; revision=2329
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-layout.c2
-rw-r--r--pango/pango-ot-info.c6
-rw-r--r--pango/pango-renderer.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 606d27c6..b7a7ea2f 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -3281,7 +3281,7 @@ process_item (PangoLayout *layout,
new_item = pango_item_split (item, length, break_num_chars);
/* reshaping may slightly change the item width. update
- * remaining_with if we are justifying */
+ * remaining_width if we are justifying */
state->remaining_width += break_width;
diff --git a/pango/pango-ot-info.c b/pango/pango-ot-info.c
index 75d14e2b..1963414c 100644
--- a/pango/pango-ot-info.c
+++ b/pango/pango-ot-info.c
@@ -645,7 +645,7 @@ pango_ot_info_find_feature (PangoOTInfo *info,
* Obtains the list of available scripts.
*
* Return value: a newly-allocated zero-terminated array containing the tags of the
- * available scripts that should be freed using g_free().
+ * available scripts. Should be freed using g_free().
**/
PangoOTTag *
pango_ot_info_list_scripts (PangoOTInfo *info,
@@ -680,7 +680,7 @@ pango_ot_info_list_scripts (PangoOTInfo *info,
* Obtains the list of available languages for a given script.
*
* Return value: a newly-allocated zero-terminated array containing the tags of the
- * available languages that should be freed using g_free().
+ * available languages. Should be freed using g_free().
**/
PangoOTTag *
pango_ot_info_list_languages (PangoOTInfo *info,
@@ -732,7 +732,7 @@ pango_ot_info_list_languages (PangoOTInfo *info,
* Obtains the list of features for the given language of the given script.
*
* Return value: a newly-allocated zero-terminated array containing the tags of the
- * available features that should be freed using g_free().
+ * available features. Should be freed using g_free().
**/
PangoOTTag *
pango_ot_info_list_features (PangoOTInfo *info,
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c
index 02b8f479..9dc1198f 100644
--- a/pango/pango-renderer.c
+++ b/pango/pango-renderer.c
@@ -517,7 +517,7 @@ pango_renderer_draw_layout_line (PangoRenderer *renderer,
if (run->item->analysis.flags & PANGO_ANALYSIS_FLAG_CENTERED_BASELINE)
{
- gboolean is_hinted = (logical_rect.y & logical_rect.height & (PANGO_SCALE - 1)) == 0;
+ gboolean is_hinted = ((logical_rect.y | logical_rect.height) & (PANGO_SCALE - 1)) == 0;
int adjustment = logical_rect.y + logical_rect.height / 2;
if (is_hinted)