summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--docs/tmpl/main.sgml2
-rw-r--r--pango/pango-layout.c2
-rw-r--r--pango/pango-ot-info.c6
-rw-r--r--pango/pango-renderer.c2
5 files changed, 14 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 93ae1624..771a35e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
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.
+
+2007-06-03 Behdad Esfahbod <behdad@gnome.org>
+
* docs/pango-sections.txt:
* docs/tmpl/opentype.sgml:
* modules/arabic/arabic-fc.c (arabic_engine_shape):
diff --git a/docs/tmpl/main.sgml b/docs/tmpl/main.sgml
index dc3ed934..4d2de7f0 100644
--- a/docs/tmpl/main.sgml
+++ b/docs/tmpl/main.sgml
@@ -472,7 +472,7 @@ about the attributes of a single character.
bit is set on all grapheme boundaries except
those following Latin, Cyrillic or Greek base
characters.
-@is_expandable_space: is a whitespace character that can possiblye be
+@is_expandable_space: is a whitespace character that can possibly be
expanded for justification purposes. (Since: 1.18)
<!-- ##### FUNCTION pango_shape ##### -->
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)