summaryrefslogtreecommitdiff
path: root/pango
Commit message (Collapse)AuthorAgeFilesLines
* Add pango_ot_buffer_set_zero_width_marks.Tor Lillqvist2004-08-051-0/+1
| | | | | | 2004-08-05 Tor Lillqvist <tml@iki.fi> * pango/pangoft2.def: Add pango_ot_buffer_set_zero_width_marks.
* Finish extending properties flags from FT_UShort => FT_UInt. (OTLBufferOwen Taylor2004-07-306-12/+12
| | | | | | | | | Fri Jul 30 17:17:05 2004 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgpos.[ch] pango/opentype/ftxgsub.[ch] pango/opentype/ftxopen.[ch]: Finish extending properties flags from FT_UShort => FT_UInt. (OTLBuffer was already using an FT_UInt)
* 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)
* Save the order in which features were added and use that when applyingOwen Taylor2004-07-274-33/+58
| | | | | | | | | Tue Jul 27 12:38:05 2004 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxopen.[ch] pango/opentype/ftxgsub.c pango/opentype/ftxpos.c: Save the order in which features were added and use that when applying features. (Patch from Soheil Hassas Yeganeh, #122330)
* Remove the unused parameter from the IN_CURITEM() and IN_CURGLYPH macros.Behdad Esfahbod2004-07-272-35/+35
| | | | | * pango/opentype/ftxgpos.c: Remove the unused parameter from the IN_CURITEM() and IN_CURGLYPH macros.
* Fix bug to copy glyph from in_string, not out_string.Behdad Esfahbod2004-07-271-2/+2
| | | | | * pango/opentype/otlbuffer.c (otl_buffer_copy_output_glyph): Fix bug to copy glyph from in_string, not out_string.
* Fix allocation and indexing in NewGlyphClasses array. (#130661, MasatakeOwen Taylor2004-07-261-7/+7
| | | | | | | Mon Jul 26 19:11:46 2004 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgdef.c: Fix allocation and indexing in NewGlyphClasses array. (#130661, Masatake YAMATO)
* mini_width/height are still (before render patch) in pixels, not PangoOwen Taylor2004-07-261-4/+4
| | | | | | | | Mon Jul 26 15:55:03 2004 Owen Taylor <otaylor@redhat.com> * pango/pangoxft-font.c (get_glyph_extents_missing): mini_width/height are still (before render patch) in pixels, not Pango units.
* Remove the unused parameter from the IN_CURITEM() and IN_CURGLYPH macros.Owen Taylor2004-07-261-28/+28
| | | | | | | | Mon Jul 26 15:24:11 2004 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgsub.c (ADD_Glyph): Remove the unused parameter from the IN_CURITEM() and IN_CURGLYPH macros.
* Add missing macro to make the last change actually compile.Owen Taylor2004-07-261-0/+2
| | | | | | | Mon Jul 26 15:21:23 2004 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgsub.c: Add missing macro to make the last change actually compile.
* Match backtrack context against the output glyphs not the input glyphsOwen Taylor2004-07-261-12/+12
| | | | | | | | Mon Jul 26 15:16:07 2004 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgsub.c (Lookup_ChainContextSubst[123]): Match backtrack context against the output glyphs not the input glyphs (#145174, Aamir Wali)
* Make Check_Property() take a OTL_GlyphItem, add a gproperties field toOwen Taylor2004-07-266-60/+91
| | | | | | | | | | | | | | Mon Jul 26 14:49:22 2004 Owen Taylor <otaylor@redhat.com> * ftxgdef.[ch] otlbuffer.[ch]: Make Check_Property() take a OTL_GlyphItem, add a gproperties field to OTLGlyphItem, and use that to cache the properties for a glyph. * ftxgsub.c ftxgdef.c: Adapt to Check_Property() changes. * otlbuffer.[ch] ftxgsub.c: Add otl_buffer_copy_output_glyph() to use when we are copying an unmodified glyph from input to output that preserves the cached properties.
* return TRUE for PANGO_SCRIPT_COMMON and PANGO_SCRIPT_INHERITED.Owen Taylor2004-07-201-0/+3
| | | | | | | Tue Jul 20 12:10:42 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-script.c (pango_language_includes_script): return TRUE for PANGO_SCRIPT_COMMON and PANGO_SCRIPT_INHERITED.
* Add support for ChainContextSubstFormat3.Owen Taylor2004-07-191-1/+15
| | | | | | | Mon Jul 19 17:09:11 2004 Owen Taylor <otaylor@redhat.com> * pango/opentype/disasm.c: Add support for ChainContextSubstFormat3.
* Fix pervasive buffer overruns when skipping glyphs when matching contexts.Owen Taylor2004-07-192-351/+284
| | | | | | | | Mon Jul 19 16:29:45 2004 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgsub.c pango/opentype/ftxgpos.c: Fix pervasive buffer overruns when skipping glyphs when matching contexts. (#118592, Kailash C. Chowksey)
* Need to export this function as a symbol if not in the header file sinceOwen Taylor2004-07-194-21/+21
| | | | | | | | | Fri Jul 16 10:29:40 2004 Owen Taylor <otaylor@redhat.com> * pango/pangofc-font.c pango/pangofc-private.h (pango_fc_font_get_raw_extents): Need to export this function as a symbol if not in the header file since it is used by PangoXft.
* #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().
* Replace non-breaking-space with a normal space before looking it up.Owen Taylor2004-07-151-0/+6
| | | | | | | | Thu Jul 15 10:48:01 2004 Owen Taylor <otaylor@redhat.com> * pango/pangofc-font.c (pango_fc_font_get_glyph): Replace non-breaking-space with a normal space before looking it up. (Inspired by http://bugzilla.ximian.com/show_bug.cgi?id=60549)
* Add PangoEllipsizeMode, pango_layout_set_ellipsize(), implement. (#59071)Owen Taylor2004-07-148-103/+1184
| | | | | | | | | | | | | | | | | | 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.
* Fix problem when we only figured out latin script for 'en' not forOwen Taylor2004-07-141-5/+28
| | | | | | | | Wed Jul 14 17:42:49 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-script.c (pango_language_includes_script): Fix problem when we only figured out latin script for 'en' not for 'en-us'. Fix reversed arguments to bsearch.
* Add a GType for PangoMatrix (#145532, Torsten Schoenfeld)Owen Taylor2004-07-132-0/+22
| | | | | | | | Tue Jul 13 16:23:15 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-types.h pango/pango-utils.c docs/pango-sections.txt: Add a GType for PangoMatrix (#145532, Torsten Schoenfeld)
* Make static. (#147512, Morten Welinder)Owen Taylor2004-07-131-1/+1
| | | | | | | Tue Jul 13 14:12:06 2004 Owen Taylor <otaylor@redhat.com> * pango/pangoft2-render.c (compare_points): Make static. (#147512, Morten Welinder)
* Reverse order of pangoft2/pangoxft in Makefile; apparently automakeOwen Taylor2004-07-131-17/+17
| | | | | | | | Tue Jul 13 10:07:44 2004 Owen Taylor <otaylor@redhat.com> * pango/Makefile.am: Reverse order of pangoft2/pangoxft in Makefile; apparently automake doesn't figure out the correct installation order. (#146472)
* Make table constant. (#145515, Morten Welinder)Owen Taylor2004-07-131-1/+1
| | | | | | | Tue Jul 13 10:02:53 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-utils.c (pango_language_get_sample_string): Make table constant. (#145515, Morten Welinder)
* Fix C99ism. (#147415, self.)Morten Welinder2004-07-121-1/+1
| | | | | | | 2004-07-12 Morten Welinder <terra@gnome.org> * pango/pangoxft-font.c (get_glyph_extents_xft): Fix C99ism. (#147415, self.)
* Const-ification fix.Owen Taylor2004-07-101-3/+3
| | | | | | | Sat Jul 10 18:03:58 2004 Owen Taylor <otaylor@redhat.com> * pango/pangofc-fontmap.c (pango_fc_font_map_new_font): Const-ification fix.
* One more constification.Owen Taylor2004-07-102-4/+4
| | | | | | | Sat Jul 10 17:55:03 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-types.h pango/pango-utils.c (pango_matrix_concat): One more constification.
* Add _pango prefix for _pango_ft2_font_get_cache_glyph_data and friendsOwen Taylor2004-07-102-17/+17
| | | | | | | | Sat Jul 10 17:45:05 2004 Owen Taylor <otaylor@redhat.com> * pango/pangoft2-private.h: Add _pango prefix for _pango_ft2_font_get_cache_glyph_data and friends defined only in private header file.
* Make PangoMatrix arguments const where appropriate.Owen Taylor2004-07-1019-498/+161
| | | | | | | | | | | | | | | | | 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 hinted/transform flags to the font structure to allow efficientOwen Taylor2004-07-106-103/+281
| | | | | | | | | | | | | | | | | | Sat Jul 10 16:39:44 2004 Owen Taylor <otaylor@redhat.com> * pango/pangofc-font.[ch]: Add hinted/transform flags to the font structure to allow efficient conditionalization of behavior rather than repeatedly extracting the information from the FcPattern. * pango/pangofc-font.c pango/pangofc-private.h pango/pangoft2.c: Move the glyph metrics computation into a _pango_fc_font_get_raw_extents() function that can be shared with the Xft backend. * pango/pangoxft.c: When a transform is in effect, don't get glyph extents from Xft ... they are device space and not useful, use _pango_fc_font_get_raw_extents() instead.
* Add declaration for pango_ot_buffer_set_rtl.Manish Singh2004-07-091-0/+2
| | | | | | Fri Jul 9 15:23:39 2004 Manish Singh <yosh@gimp.org> * pango/pango-ot.h: Add declaration for pango_ot_buffer_set_rtl.
* Add missing row for the WORD_JOINER class. (#145833, Billy Biggs)Owen Taylor2004-07-081-1/+11
| | | | | | | 2004-07-08 Owen Taylor <otaylor@redhat.com> * pango/break.c: Add missing row for the WORD_JOINER class. (#145833, Billy Biggs)
* Add pango_context_get_font_map()Owen Taylor2004-07-085-6/+30
| | | | | | | | | | | | | | | Thu Jul 8 15:25:29 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-context.[ch]: Add pango_context_get_font_map() * pango/pango-fonts.c pango/pango-fontset.c pango/pango-context.c: Some s/PangoMetrics/PangoFontMetrics/ in docs. * pango/pango-context.c: Fix problem with unsetting the matrix for a context. * pango/pango-types.h: Switch to a much more efficient implementation of PANGO_SCALE.
* 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 double cluster increment.PANGO_1_5_0Owen Taylor2004-06-281-3/+0
| | | | | | | Thu Jun 24 13:35:03 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-glyph-item.c (pango_glyph_item_apply_attrs): Fix double cluster increment.
* Fix bug with using wrong uline value.Owen Taylor2004-06-242-3/+61
| | | | | | | 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.
* #143693, Sayamindu DasguptaOwen Taylor2004-06-233-5/+27
| | | | | | | | | | | | | Wed Jun 23 16:13:53 2004 Owen Taylor <otaylor@redhat.com> #143693, Sayamindu Dasgupta * pango/opentype/pango-ot-buffer.c (pango_ot_buffer_set_zero_width_marks) pango/opentype/pango-ot-private.h: Allow setting for whether marks should be given zero width, defaulting to FALSE. * modules/arabic/arabic-fc.c (arabic_engine_shape): Turn on zero-width-marks setting.
* Add new letter_spacing attribute.Owen Taylor2004-06-2312-269/+552
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Handle new Unicode-4.0 WORD_JOINER and NEXT_LINE classes. (#143436, JeroenOwen Taylor2004-06-221-33/+73
| | | | | | | | | | | | | | | | | Tue Jun 22 14:10:41 2004 Owen Taylor <otaylor@redhat.com> * pango/break.c: Handle new Unicode-4.0 WORD_JOINER and NEXT_LINE classes. (#143436, Jeroen Zwartepoorte) * pango/break.c (pango_default_break): Handle space followed by a combining character as called for by TR 14. * tests/testboundaries.c (check_line_char): Fix up for space+combining mark * pango/break.c (pango_default_break): Change fixme for G_UNICODE_BREAK_SURROGATE to g_assert_not_reached().
* Allow %NULL for @matrix. (#144775, Diego González)Owen Taylor2004-06-221-3/+26
| | | | | | | | Tue Jun 22 10:39:32 2004 Owen Taylor <otaylor@redhat.com> * pango/pangoft2-render.c (_pango_ft2_draw_error_underline, _pango_ft2_draw_rect): Allow %NULL for @matrix. (#144775, Diego González)
* #143556, Noah MischOwen Taylor2004-06-211-4/+4
| | | | | | | | | | | | | | | Mon Jun 21 16:02:04 2004 Owen Taylor <otaylor@redhat.com> #143556, Noah Misch * pango/Makefile.am: Add $(no_undefined) when building libpangox, libpangoxft for cygwin builds. * modules/basic/Makefile.am (pango_basic_x_la_LDFLAGS): Add $(no_undefined) for basic-x module. * pango/Makefile.am: Add $(GLIB_LIBS) for pangox, pangoxft, for benefit of cygwin, AIX, etc.
* Initialize state->lang from context->language if not otherwise set.Owen Taylor2004-06-212-1/+4
| | | | | | | | | | | | Mon Jun 21 15:26:44 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (update_attr_iterator): Initialize state->lang from context->language if not otherwise set. Without doing this, the default language tag was, not suprisingly, having no effect! (#137334, Frederic Zhang) * pango/pango-attributes.c (pango_attr_iterator_get_font): Fix typo in doc comment.
* *** empty log message ***Owen Taylor2004-06-212-4/+6
|
* pango/modules.c (append_engines): Fix some missing statics. (#142237,Owen Taylor2004-06-214-5/+5
| | | | | | | | | | | | 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.
* Use the gcc-3.3 strict-aliasing compatible macros from fterrcompat.hOwen Taylor2004-06-211-8/+14
| | | | | | | | Mon Jun 21 13:55:17 2004 Owen Taylor <otaylor@redhat.com> * pango/opentype/otlbuffer.c: Use the gcc-3.3 strict-aliasing compatible macros from fterrcompat.h (#140495, reported by Stanislav Brabec)
* Fix leak when inserting an empty attributes. (#140771, Morten Welinder)Owen Taylor2004-06-211-1/+4
| | | | | | | | Mon Jun 21 11:41:18 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-attributes.c (pango_attr_list_change): Fix leak when inserting an empty attributes. (#140771, Morten Welinder)
* Handle setting the same object back. (#143523, Morten Welinder)Owen Taylor2004-06-211-3/+3
| | | | | | | | Mon Jun 21 11:38:22 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (pango_context_set_font_map): Handle setting the same object back. (#143523, Morten Welinder)
* Revert the last change, assert that initialization succeeded.Owen Taylor2004-06-211-8/+2
| | | | | | | | Mon Jun 21 11:35:29 2004 Owen Taylor <otaylor@redhat.com> * pango/pangoft2-fontmap.c (pango_ft2_font_map_new): Revert the last change, assert that initialization succeeded.
* For cleanliness, unref the fontmap if we get an error from FreeType.Owen Taylor2004-06-213-5/+29
| | | | | | | | | | | Mon Jun 21 11:29:39 2004 Owen Taylor <otaylor@redhat.com> * pango/pangoft2-fontmap.c (pango_ft2_font_map_new): For cleanliness, unref the fontmap if we get an error from FreeType. (#143524, Morten Welinder) * pango/pangoft2-fontmap.c (pango_ft2_font_map_finalize): Deal with NULL ft2fontmap->library.
* Changes to support extra arguments.Christopher Blizzard2004-06-172-4/+6
| | | | | | | | | | | 2004-06-17 Christopher Blizzard <blizzard@redhat.com> * pango/pangofc-decoder.c (pango_fc_decoder_get_glyph, pango_fc_decoder_get_charset): Changes to support extra arguments. * pango/pangofc-decoder.h (struct _PangoFcDecoderClass): Add the PangoFcDecoder * as the first argument to the callbacks for get_glyph and get_charset.