summaryrefslogtreecommitdiff
path: root/pango/reorder-items.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-03-08 18:39:49 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-03-08 18:39:49 +0000
commit773bc55fc9e344f8040809ba8796b0ba2805e4c9 (patch)
tree89e900594294e87b4a4de8f71571762d6ccc8871 /pango/reorder-items.c
parentdd0b4a5064c6f60adcfd2ea02e2d61fb60254d20 (diff)
downloadpango-773bc55fc9e344f8040809ba8796b0ba2805e4c9.tar.gz
First draft of highlevel driver. It currently only handles a paragraph as
Wed Mar 8 13:34:57 2000 Owen Taylor <otaylor@redhat.com> * libpango/pango-layout.[ch]: First draft of highlevel driver. It currently only handles a paragraph as a list of lines, but it is probably necessary to make it handle 2D layout for a paragraph as well * examples/viewer.c: Move over to new layout driver (much of the code moved into pango-layout.c) * libpango/glyphs.c libpango/pango-glyphs.h: Fixes to get_extents(), add pango_glyph_string_get_logical_widths. * libpango/pango-itemize.c: Handle 0-length text properly. * libpango/pangox.c: When loading particular sized fonts, use the original XLFD, since XFree86 doesn't handle wildcards in aliases properly. * libpango/pangox.[ch] (pango_x_render_layout_line): Add function to render an entire PangoLayoutLine. * libpango/reorder-items.c: Add a note to the effect that pango_reorder_items() is basically replaced by a similar function in PangoLayout. Wed Mar 8 10:58:56 2000 Owen Taylor <otaylor@redhat.com> * modules/arabic/arconv.c (shapecount): Fix from Karl Koehler to joining behavior. * modules/Makefile.am modules/arabic/*: Added arabic shaper from Karl Koehler <koehler@or.uni-bonn.de> * modules/basic/tables-{small,big}.i: Remove arabic from the ranges that the basic shaper marks as "exact". * examples/HELLO.utf8: Partially alphabetize, add arabic.
Diffstat (limited to 'pango/reorder-items.c')
-rw-r--r--pango/reorder-items.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/pango/reorder-items.c b/pango/reorder-items.c
index bbe415b7..18d68ab6 100644
--- a/pango/reorder-items.c
+++ b/pango/reorder-items.c
@@ -21,6 +21,11 @@
#include <pango.h>
+/*
+ * NB: The contents of the file implement the exact same algorithm
+ * pango-layout.c:pango_layout_line_reorder().
+ */
+
static GList *reorder_items_recurse (GList *items, int n_items);
/**
@@ -32,6 +37,11 @@ static GList *reorder_items_recurse (GList *items, int n_items);
* The original list is unmodified.
*
* Returns a GList of PangoItem structures in visual order.
+ *
+ * (Please mail otaylor@redhat.com if you use this function.
+ * It is not a particularly convenient interface, and the code
+ * is duplicated elsewhere in Pango for that reason.)
+ *
*/
GList *
pango_reorder_items (GList *logical_items)