summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in docs. (#153390, Paolo Borelli)Owen Taylor2004-09-221-1/+1
| | | | | | | Wed Sep 22 15:57:30 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_get_ellipsize): Fix typo in docs. (#153390, Paolo Borelli)
* === Released 1.6.0 ===PANGO_1_6_0Owen Taylor2004-09-141-0/+4
| | | | | | | | | | | | | | | | | Mon Sep 13 17:38:58 2004 Owen Taylor <otaylor@redhat.com> * === Released 1.6.0 === * configure.in: Update versions for 1.6.0 * NEWS: Update. * README: Minor tweak. * pango/fonts.c pango/pango-context.c pango/pango-types.h pango/pango-utils.c pango/pangoft2.c pango/pango-layout.c pango/opentype/pango-ot-buffer.c: Add a bunch of missing Since: 1.6.
* Fix API docs. (#148627)Owen Taylor2004-07-281-3/+1
| | | | | | | Wed Jul 28 09:49:29 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_set_ellipsize): Fix API docs. (#148627)
* #143601: Felipe HeidrichOwen Taylor2004-07-161-7/+16
| | | | | | | | | | | | | | | Fri Jul 16 07:43:04 2004 Owen Taylor <otaylor@redhat.com> #143601: Felipe Heidrich * pango/pango-layout.c (pango_layout_line_x_to_index): Go into painful detail about the behavior for X positions outside the line. * pango/pango-layout.c (pango_layout_xy_to_index): Add some more details about handling of positions outside the layout, reference pango_layout_line_x_to_index().
* Add PangoEllipsizeMode, pango_layout_set_ellipsize(), implement. (#59071)Owen Taylor2004-07-141-62/+97
| | | | | | | | | | | | | | | | | | Wed Jul 14 17:47:38 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.[ch] pango/ellipsize.c pango/Makefile.am: Add PangoEllipsizeMode, pango_layout_set_ellipsize(), implement. (#59071) * pango/pango-layout-private.h pango/pango-layout.c: Move PangoLayout structure into a separate header file. * pango/pango-glyph-item.[ch]: Add pango_glyph_item_free(). * pango/pango-glyph-item-private.h pango/pango-glyph-item.c: Internally export the PangoGlyphItemIter functionality. * examples/renderdemo.[ch]: Add --ellipsize option.
* Make PangoMatrix arguments const where appropriate.Owen Taylor2004-07-101-2/+0
| | | | | | | | | | | | | | | | | Sat Jul 10 17:33:38 2004 Owen Taylor <otaylor@redhat.com> * pango/pangoft2-private.h pango/pangoft2-render.c pango/pango-context.[ch] pango/pangoft2.[ch] pango/pango-utils. pango/pango-types.h pango/pangofc-fontmap.c: Make PangoMatrix arguments const where appropriate. * pango/pango-context.c pango/fonts.c pango/pangofc-font.c pangofc-fontmap.c pango/pangoft2.c pango/pangoft2-fontmap.c pango/pangoxft-font.c pango/pangoxft-fontmap.c pango/pangowin32-fontmap.c: Use G_DEFINE_TYPE comprehensively. * pango/pangoft2-private.h pangoft2.c: Un-staticify pango_ft2_font_get_type.
* Add letter spacing correction to the last character, not the one justMorten Welinder2004-07-071-1/+1
| | | | | | | | 2004-07-07 Morten Welinder <terra@gnome.org> * pango/pango-layout.c (process_item): Add letter spacing correction to the last character, not the one just beyond the table. (#145517, self.)
* Fix bug with using wrong uline value.Owen Taylor2004-06-241-2/+57
| | | | | | | Thu Jun 24 00:50:46 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_run_get_extents): Fix bug with using wrong uline value.
* Add new letter_spacing attribute.Owen Taylor2004-06-231-134/+246
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Jun 23 11:17:51 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-attributes.[ch]: Add new letter_spacing attribute. * pango/pango-attributes.c (pango_attr_rise_new): Correct description; rise is in Pango units, not em-relative. * pango/pango-glyph-item.c: Break out iteration-over-clusters from ApplyAttrsState into a separate GlyphItemIter. * pango/pango-glyph-item.[ch]: New function pango_glyph_item_letter_space() to add add letter spacing to a single glyph item. * pango/pango-markup.c: Add a letter_spacing attribute. * pango/pango-layout.c: Use G_DEFINE_TYPE(). * pango/pango-layout.c (pango_layout_get_item_properties): Switch to use a structure rather than a pile of out parameters. * pango/pango-layout.c (pango_run_get_extents): Remove the unused shape_set out parameter. * pango/pangofc-decoder.[ch] pango/pangofc-fontmap.[ch]: Doc fixes. * pango/pango-types.h: Deprecate pango_get_mirror_char() * pango/pango-utils.c (pango_get_mirror_char): Add docs. * docs/pango-sections.txt docs/pango-docs.sgml: Add PangoFcDecoder and letter spacing.
* pango/modules.c (append_engines): Fix some missing statics. (#142237,Owen Taylor2004-06-211-1/+1
| | | | | | | | | | | | Mon Jun 21 14:23:05 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (no_shape_filter_func) pango/pango-script.c (get_pair_index): pango/modules.c (append_engines): Fix some missing statics. (#142237, Morten Welinder) * pango/mini-fribidi/fribidi_types.c: Move fribidi_type_name inside the #ifdef DEBUG.
* only invert if the layout and the context really disagree, not if they areJody Goldberg2004-05-281-2/+21
| | | | | | | | | | | | | | 2004-04-29 Jody Goldberg <jody@gnome.org> * pango/pango-layout.c (get_alignment) : only invert if the layout and the context really disagree, not if they are WEAK_LTR vs LTR 2004-03-11 Jody Goldberg <jody@gnome.org> * pango/pango-attributes.h : Add a comment clarifying that PangoAttribute::end_index is _exclusive_. The range is [start..end) Additionally clarify that that the indicies are in _bytes_ not characters.
* Patch from Dov Grobgeld to add auto-direction to PangoLayout (more ofOwen Taylor2004-03-011-55/+174
| | | | | | | | | | | | | | | | | | | | | | | Fri Feb 27 11:23:21 2004 Owen Taylor <otaylor@redhat.com> Patch from Dov Grobgeld to add auto-direction to PangoLayout (more of #70451) * examples/pangofttopgm.c: Add --no-auto-dir argument. * pango-layout.[ch]: Add pango_layout_set_auto_dir() defaulting to TRUE; resolve paragraph direction within a layout by propagating base direction downwards from paragraph to paragraph. * pango-context.[ch]: Add pango_itemize_with_base_dir() which overrides the base direction from the PangoContext. Mon Mar 1 10:01:58 2004 Owen Taylor <otaylor@redhat.com> * docs/tmpl/text-attributes.sgml: Document %PANGO_UNDERLINE_ERROR. * pango/pangofc-fontmap.c: Pango*Fc*FontmapPrivate. Make compile.
* un Feb 29 15:31:09 2004 Owen Taylor <otaylor@redhat.com>Owen Taylor2004-02-291-0/+6
| | | | | | | | | | | | | Patch from Nicolas Setton, #114237 * pango/pango-attributes.h pango/pango-markup.c: Add a new underline type, PANGO_UNDERLINE_ERROR. * pango/pangowin32.c pango/pangox.c pango/pangoft2.c: Implement drawing of PANGO_UNDERLINE_ERROR. * pango/pango-layout.c (pango_layout_run_get_extents): Handle PANGO_UNDERLINE_ERROR.
* Add a docs note about non-implementedness. (#64538)Owen Taylor2004-02-211-0/+2
| | | | | | | Sat Feb 21 11:31:16 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_set_justify): Add a docs note about non-implementedness. (#64538)
* Accept NULL for desc as documented. (#133001, Torsten Schoenfeld)Owen Taylor2004-02-051-1/+0
| | | | | | | Thu Feb 5 15:28:44 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_set_font_description): Accept NULL for desc as documented. (#133001, Torsten Schoenfeld)
* Redo the last commit once again.Owen Taylor2004-02-051-1/+1
| | | | | | | Thu Feb 5 15:21:49 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_check_lines): Redo the last commit once again.
* Fix stupid cut-and-pasto from last commit.Owen Taylor2004-02-051-1/+1
| | | | | | | Thu Feb 5 15:16:04 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_check_lines): Fix stupid cut-and-pasto from last commit.
* Set is_paragraph_start here too. (#131356, Morten Welinder)Owen Taylor2004-02-051-2/+3
| | | | | | | | Thu Feb 5 15:09:58 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_check_lines): Set is_paragraph_start here too. (#131356, Morten Welinder)
* Honor U+2028 LINE SEPARATOR. (#85745)Noah Levitt2003-12-041-3/+20
| | | | | | | 2003-12-04 Noah Levitt <nlevitt@columbia.edu> * pango/pango-context.c: * pango/pango-layout.c: Honor U+2028 LINE SEPARATOR. (#85745)
* Add --indent=n option.Noah Levitt2003-11-251-9/+8
| | | | | | | | | 2003-11-25 Noah Levitt <nlevitt@columbia.edu> * examples/pangoft2topgm.c: Add --indent=n option. * pango/pango-layout.[ch]: Indent the first line of every paragraph, not just the first line in the layout. (#66626)
* Fix one problem with iteration by chars (Part of #89541, MarianoOwen Taylor2003-10-311-4/+4
| | | | | | | | | | | | | Fri Oct 31 12:32:38 2003 Owen Taylor <otaylor@redhat.com> Fix one problem with iteration by chars (Part of #89541, Mariano Suárez-Alvarez) * Pango/pango-layout.c (cluster_end_index): Fix to be item relative, like iter->cluster_index. * pango/pango-layout.c (pango_layout_iter_next_char): Adapt.
* Make PangoEngine{,Lang,Shape} GObjects, and use a GTypeModule-basedOwen Taylor2003-08-031-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Aug 2 23:19:16 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-engine.[ch] modules/*/*-{fc,win32,x}.c pango/modules.c pango/break.c pango/pango-context.c pango/pango-layout.c pango/pango-modules.h pango/querymodules.c pango/shape.c: Make PangoEngine{,Lang,Shape} GObjects, and use a GTypeModule-based module-loading system closely based on the one used for GtkIMContext and GtkThemeEngine. * pango/pango-impl-utils.h: OK, I'm tired of typing in get_type() functions. * pango/pango-script.[ch] pango/pango-script-table.h tests/testscript.c tools/gen-script-table.pl: Add port of script-range code from ICU in preparation for future use. (#91542) * tools/gen-script-for-lang.c: Utility program to determine the script for each fontconfig .orth file. * docs/tmpl/{scripts.sgml,pango-engine-lang.sgml, pango-engine-shape.sgml} docs/pango-sections.txt docs/pango-docs.sgml: Redo to go along with the above changes. * configure.in: chmod +x tests/runtests.sh
* Doc markup and typo fixes.Matthias Clasen2003-06-251-42/+42
| | | | | | | | | | 2003-06-25 Matthias Clasen <maclas@gmx.de> * pango/pango-layout.c: * pango/pango-tabs.c: * pango/pango-attributes.c: * docs/tmpl/layout.sgml: * docs/tmpl/text-attributes.sgml: Doc markup and typo fixes.
* Fix bug in determining when we cross line boundaries. (#103421, MatthiasOwen Taylor2003-06-051-29/+34
| | | | | | | | Thu Jun 5 14:53:40 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_move_cursor_visually): Fix bug in determining when we cross line boundaries. (#103421, Matthias Clasen)
* Use g_object_new() rather than g_type_create_instance() (Patch fromOwen Taylor2003-05-271-1/+1
| | | | | | | | | | | | Tue May 27 12:32:43 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (pango_context_new) pango/pango-layout.c (pango_context_new) pango/pango-win32.c (pango_win32_font_map_for_display) pango/pangox-fontmap.c (pango_x_font_map_for_display) pango/pangox.c (pango_x_font_new): Use g_object_new() rather than g_type_create_instance() (Patch from Benjamin Otte, #112786)
* Fix a harmless uninitialized memory read. (#109625, Rich Burridge)Owen Taylor2003-05-021-1/+0
| | | | | | | Fri May 2 14:21:20 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (update_run): Fix a harmless uninitialized memory read. (#109625, Rich Burridge)
* Fix a harmless uninitialized memory read. (#109625, Rich Burridge)Owen Taylor2003-05-021-5/+3
| | | | | | | Fri May 2 14:21:20 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (update_run): Fix a harmless uninitialized memory read. (#109625, Rich Burridge)
* Guard against pango_layout_set_text (pango_layout_get_text (layout));Owen Taylor2003-02-121-4/+7
| | | | | | | | | Wed Feb 12 16:48:46 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_set_text): Guard against pango_layout_set_text (pango_layout_get_text (layout)); (#105612, Morten Welinder)
* Some unit fixups (#96335)Owen Taylor2002-12-201-11/+12
| | | | | | | | | | | | | | | | | | | | Fri Dec 20 11:59:22 2002 Owen Taylor <otaylor@redhat.com> Some unit fixups (#96335) * pango/pango-layout.c pango/pango-mapping.c: Fix occurrences of "in thousandths of a device unit" to say "in #PangoGlyphUnit" which will give a link to the PangoGlyphUnit docs. * docs/tmpl/text-attributes.sgml: Change 1000 to PANGO_SCALE. * docs/tmpl/glyphs.sgml: Fix docs for PangoGlyphUnit, fix mention of value of PANGO_SCALE from 1000 to 1024. * pango/pango-layout.c (pango_layout_line_get_x_ranges): Fix the docs for @ranges so it doesn't sound like the coordinates are in pixels.
* Rename PangoLayoutRun to PangoGlyphItem (with a typedef for compat), addOwen Taylor2002-12-031-21/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun Nov 17 23:28:26 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-glyph-item.[ch] pango/pango-layout.h: Rename PangoLayoutRun to PangoGlyphItem (with a typedef for compat), add pango_glyph_item_split(), pango_glyph_item_apply_attrs(). * pango/pango-attributes.[ch]: Add pango_attr_list_filter(), pango_attr_iterator_get_attrs(). * pango/pango-layout.c: Remove attributes that don't affect shaping before shaping, shape and then add them back. Fixes the infamous "underscores break arabic shaping" bug (#83058) * pango/pango-item.h: Remove an extraneous include. * pango/pango-layout.c (imposed_shape): Fix bytes/chars problem for glyph->log_clusters. * pango/pango-layout.c (cluster_end_index) * pango/pango-layout.c (pango_layout_iter_next_cluster): Fix confusion between global indices and run-relative indices. * docs/tmpl/glyphs.sgml: Improve docs for log_clusters. * docs/*: Document new API and PangoOTRuleset
* Trivial s/foo/foo_/ fixes to make pango.h includable with -WshadowSoeren Sandmann2002-11-081-10/+10
| | | | | | | | | | | | | | | | | | | Fri Nov 8 20:02:09 2002 Soeren Sandmann <sandmann@daimi.au.dk> * docs/tmpl/coverage-maps.sgml: * docs/tmpl/glyphs.sgml: * docs/tmpl/layout.sgml: * docs/tmpl/x-fonts.sgml: * pango/mapping.c: * pango/pango-coverage.c: * pango/pango-coverage.h: * pango/pango-glyph.h: * pango/pango-layout.c: * pango/pango-layout.h: * pango/pangox.h: Trivial s/foo/foo_/ fixes to make pango.h includable with -Wshadow (#91680).
* Don't break at the first char in the first item on a line. FixesAlexander Larsson2002-10-231-3/+6
| | | | | | | | 2002-10-23 Alexander Larsson <alexl@redhat.com> * pango/pango-layout.c (can_break_in): Don't break at the first char in the first item on a line. Fixes regression in linebreaking (#95900).
* Get rid of unnecessary casts for g_object_{ref,unref}Manish Singh2002-10-141-5/+5
| | | | | | | | | | Mon Oct 14 15:39:41 2002 Manish Singh <yosh@gimp.org> * pango/pango-context.c pango/pango-layout.c pango/pangoft2.c pango/pangowin32-fontmap.c pango/pangowin32.c pango/pangox-fontmap.c pango/pangox.c pango/pangoxft-font.c pango/pangoxft-fontmap.c pango/testfonts.c pango/opentype/pango-ot-ruleset.c: Get rid of unnecessary casts for g_object_{ref,unref}
* Add, implement and document PANGO_WRAP_WORD_CHARAlexander Larsson2002-10-041-49/+70
| | | | | | | | 2002-10-04 Alexander Larsson <alexl@redhat.com> * pango/pango-layout.[ch]: * docs/tmpl/layout.sgml: Add, implement and document PANGO_WRAP_WORD_CHAR
* Fix wrong assertion that was dying on lines separated by PS (U+2029).Owen Taylor2002-07-251-1/+1
| | | | | | | | Wed Jul 24 23:07:43 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c: Fix wrong assertion that was dying on lines separated by PS (U+2029). (#88824, Choe Hwangjin)
* Fix problem with positions at the ends of lines (#63328, reported by DovOwen Taylor2002-03-011-26/+29
| | | | | | | | Fri Mar 1 12:11:50 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_line_get_vis2log_map): Fix problem with positions at the ends of lines (#63328, reported by Dov Grobgeld.)
* Fix problems with computing the length of the paragraph delimiter.Owen Taylor2002-01-241-1/+1
| | | | | | | Thu Jan 24 18:05:54 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (get_items_log_attrs): Fix problems with computing the length of the paragraph delimiter. (Reported by Evan Martin)
* fix memory leak of "text", reported by Jason TackaberryHavoc Pennington2002-01-211-0/+1
| | | | | | | 2002-01-21 Havoc Pennington <hp@redhat.com> * pango/pango-layout.c (pango_layout_set_markup_with_accel): fix memory leak of "text", reported by Jason Tackaberry
* A string ending in a paragraph delimiter has an empty line at the end.Owen Taylor2002-01-161-1/+1
| | | | | | | | Wed Jan 16 14:45:23 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_check_lines): A string ending in a paragraph delimiter has an empty line at the end. (#68079, Arjan J. Molenaar.)
* slight correction to pango_layout_get_extents(), docs still need to beHavoc Pennington2002-01-141-14/+14
| | | | | | | | | | | | | 2002-01-14 Havoc Pennington <hp@pobox.com> * pango/pango-layout.c: slight correction to pango_layout_get_extents(), docs still need to be clearer, but at least they aren't a cut-and-paste of glyph string docs now. * docs/tmpl/glyphs.sgml: add note about special-case use of PANGO_SCALE with font sizes * pango/fonts.c: fix docs to be correct about PANGO_SCALE
* allow setting attrs to NULLHavoc Pennington2002-01-111-1/+2
| | | | | | 2002-01-11 Havoc Pennington <hp@redhat.com> * pango/pango-layout.c (pango_layout_set_attributes): allow setting attrs to NULL
* docs tweak (pango_layout_iter_next_cluster): update iter->index hereHavoc Pennington2002-01-111-1/+6
| | | | | | 2002-01-11 Havoc Pennington <hp@redhat.com> * pango/pango-layout.c (pango_layout_iter_get_index): docs tweak (pango_layout_iter_next_cluster): update iter->index here
* Remove incorrect special casing of initial line. (Reported by Darin Adler)Owen Taylor2001-12-201-5/+1
| | | | | | | Wed Dec 19 22:40:24 2001 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (get_line_extents_layout_coords): Remove incorrect special casing of initial line. (Reported by Darin Adler)
* Fix problem with returned width on lines other than the first lineOwen Taylor2001-12-101-1/+1
| | | | | | | | | | Mon Dec 10 09:18:09 2001 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_index_to_pos): Fix problem with returned width on lines other than the first line (#66274). * pango/pangox,ft2,win32.c (pango_*_render_layout): Fix problem where indent wasn't honored (#66275). [ Note, however, there are remaining problems - see, #66626 ]
* Fix problem where length passed in didn't get adjusted for paragraphOwen Taylor2001-12-071-1/+4
| | | | | | | | Thu Dec 6 19:07:31 2001 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (get_items_log_attrs): Fix problem where length passed in didn't get adjusted for paragraph delimiters.
* Version 0.22. Updated Update. Don't look like a doc comment.Owen Taylor2001-11-211-3/+2
| | | | | | | | | Wed Nov 21 12:54:39 2001 Owen Taylor <otaylor@redhat.com> * configure.in (PANGO_MINOR_VERSION): Version 0.22. * NEWS: Updated * docs/pango-sections.txt Makefile.am: Update. * pango/pango-layout.c (process_item): Don't look like a doc comment.
* Patch from Alex Larsson to improve line breaking algorithm so that itOwen Taylor2001-11-021-85/+158
| | | | | | | | | | | | Fri Nov 2 13:56:58 2001 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c: Patch from Alex Larsson to improve line breaking algorithm so that it doesn't do O(n^2) -- each character is shaped at most twice - once to get the widths, and once if the run is broken. Also, quite a bit of cleanup to consistently use the ParaBreakState object to keep track of the state of the line-break process. (#62014)
* Allow NULL run_logical. (#63014, Tony Graham)Owen Taylor2001-10-251-5/+9
| | | | | | | Thu Oct 25 11:05:01 2001 Owen Taylor <otaylor@redhat.com> * pango/pango-layout.c (pango_layout_run_get_extents): Allow NULL run_logical. (#63014, Tony Graham)
* another missing comment end marker and some fixes in gtk-doc comments.Sven Neumann2001-10-151-27/+28
| | | | | | | | | | | | | | 2001-10-15 Sven Neumann <sven@gimp.org> * pango/pangoxft-font.c: another missing comment end marker and some fixes in gtk-doc comments. * pango/break.c * pango/pango-layout.c * pango/pangoft2.c * docs/pango-sections.txt * docs/tmpl/fonts.sgml * docs/tmpl/x-fonts.sgml: documentation updates.
* require one more log attr in the buffer passed in, to account for the endHavoc Pennington2001-10-031-2/+3
| | | | | | | | | | | | | | 2001-10-03 Havoc Pennington <hp@redhat.com> * pango/break.c (pango_break) (pango_default_break) (pango_get_log_attrs): require one more log attr in the buffer passed in, to account for the end position (pango_default_break): allow length of -1 * pango/pango-engine.h (struct _PangoEngineLang): change script_break virtual function to match pango_break * pango/pango-layout.c (get_items_log_attrs): update pango_break usage