summaryrefslogtreecommitdiff
path: root/pango
Commit message (Collapse)AuthorAgeFilesLines
* === Released 1.2.2 ===PANGO_1_2_2Owen Taylor2003-05-301-2/+2
| | | | | | | | | Thu May 29 20:05:45 2003 Owen Taylor <otaylor@redhat.com> * === Released 1.2.2 === * pango/pango-glyph-item.c: Fix a stupid bug in the shortcircuit case.
* When applying attribute to a glyph item, handle attributes that splitOwen Taylor2003-05-291-29/+226
| | | | | | | | | | Thu May 29 18:37:58 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-glyph-item.c (pango_glyph_item_apply_attrs): When applying attribute to a glyph item, handle attributes that split clusters by giving the cluster all the attributes that apply to it. (Previously caused a crash, #104976 Taneem Ahmed, Sunil Mohan Adapa)
* added support for rise, strikethru and shape attributes. (#109900).Sven Neumann2003-05-281-56/+82
| | | | | | | 2003-05-28 Sven Neumann <sven@gimp.org> * pango/pangoft2.c (pango_ft2_render): added support for rise, strikethru and shape attributes. (#109900).
* Limit the size of the buffers we alloca(). (#104238)Owen Taylor2003-05-271-1/+10
| | | | | | | Tue May 27 18:37:44 2003 Owen Taylor <otaylor@redhat.com> * pango/mini-fribidi/fribidi.c (fribidi_analyse_string): Limit the size of the buffers we alloca(). (#104238)
* Patch from Morten Welinder to collect characters into runs of the sameOwen Taylor2003-05-271-14/+47
| | | | | | | | | Tue May 27 16:06:34 2003 Owen Taylor <otaylor@redhat.com> * pango/pangox.c (pango_x_render): Patch from Morten Welinder to collect characters into runs of the same font with natural offsets before drawing them. (#106892, Morten Welinder)
* Get the fontnmap for the right screen (#113452, Morten Welinder)Owen Taylor2003-05-271-2/+3
| | | | | | | | Tue May 27 15:01:24 2003 Owen Taylor <otaylor@redhat.com> * pango/pangoxft-font.c (pango_xft_font_get_metrics): Get the fontnmap for the right screen (#113452, Morten Welinder)
* Use g_object_new() rather than g_type_create_instance() (Patch fromOwen Taylor2003-05-275-5/+5
| | | | | | | | | | | | 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 some incorrect edge cases for RTL text. (#102952, Padraig O'Briain)Owen Taylor2003-05-021-14/+44
| | | | | | | | Fri May 2 17:20:23 2003 Owen Taylor <otaylor@redhat.com> * pango/mapping.c (pango_glyph_string_x_to_index): Fix some incorrect edge cases for RTL text. (#102952, Padraig O'Briain)
* 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)
* Hash case insensitively (#106942, Morten Welinder)Owen Taylor2003-04-301-1/+19
| | | | | | | Wed Apr 30 16:46:52 2003 Owen Taylor <otaylor@redhat.com> * pango/fonts.c (pango_font_description_hash): Hash case insensitively (#106942, Morten Welinder)
* Add the fonconfig cflags/libs to FREETYPE_CFLAGS/LIBS. (#111326, NoahOwen Taylor2003-04-291-4/+3
| | | | | | | | | | Tue Apr 29 18:02:31 2003 Owen Taylor <otaylor@redhat.com> * configure.in: Add the fonconfig cflags/libs to FREETYPE_CFLAGS/LIBS. (#111326, Noah Levitt) * {pango,tests,examples}/Makefile.am: Remove now unnecessary references to FONTCONFIG_CFLAGS/LIBS.
* More careful handling of face->charmap; if is NULL, try to set a unicodeOwen Taylor2003-04-161-2/+24
| | | | | | | | | Wed Apr 16 03:46:42 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/pango-ot-info.c (synthesize_class_def): More careful handling of face->charmap; if is NULL, try to set a unicode charmap, if that doesn't succeed, return. (Hopefully fixes #106550)
* When loading in Load_Chain{Sub,Pos}ClassRule, the limit we have onlyOwen Taylor2003-04-162-6/+8
| | | | | | | | | | Tue Apr 15 11:49:39 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxg{sub/pos}.c: When loading in Load_Chain{Sub,Pos}ClassRule, the limit we have only applies to the input ClassDef table. Fixes problem with Arial Unicode. Much help from Noah Levitt in tracing this down.
* Free the right string.Owen Taylor2003-04-161-1/+1
| | | | | | | Tue Apr 15 09:19:21 2003 Owen Taylor <otaylor@redhat.com> * pango/fonts.c (pango_font_description_set_family): Free the right string.
* Fix mispelled constant from last commit.Owen Taylor2003-04-151-1/+1
| | | | | | | Tue Apr 15 06:57:02 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgpos.c: Fix mispelled constant from last commit.
* Fix confusion between boolean and FT_Error return. (#108358, Noah Levitt)Owen Taylor2003-04-152-3/+5
| | | | | | | | | | Tue Apr 15 06:03:39 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgpos.c: Fix confusion between boolean and FT_Error return. (#108358, Noah Levitt) * pango/opentype/ftxopen.c (Get_Class1): index is allowed to be NULL. (#108358, Noah Levitt)
* Switch around the code so that pango_font_description_set_family (desc,Owen Taylor2003-04-151-4/+6
| | | | | | | | | | | Tue Apr 15 05:34:05 2003 Owen Taylor <otaylor@redhat.com> * pango/fonts.c (pango_font_description_set_family): Switch around the code so that pango_font_description_set_family (desc, pango_font_description_set_family (desc)) in the case where desc->static_family is TRUE. (#106964, Morten Welinder)
* Fix infinite loop in the case where the charmap contains a character >Owen Taylor2003-04-151-7/+7
| | | | | | | | Tue Apr 15 05:00:39 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/pango-ot-info.c (synthesize_class_def): Fix infinite loop in the case where the charmap contains a character > 65535. (#106550, Morten Welinder.)
* Fix off-by-one error. (#108620, Noah Levitt)Owen Taylor2003-04-151-1/+1
| | | | | | | Tue Apr 15 04:39:48 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-coverage.c (pango_coverage_set): Fix off-by-one error. (#108620, Noah Levitt)
* Return FALSE, not -1 in g_return_val_if_fail(). (#107666, MortenOwen Taylor2003-04-151-1/+1
| | | | | | | | Tue Apr 15 03:47:37 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-attributes.c (pango_attr_iterator_next): Return FALSE, not -1 in g_return_val_if_fail(). (#107666, Morten Welinder.)
* disable antialiasing if requested. Fixes bug #109370.Sven Neumann2003-04-031-13/+30
| | | | | | | | | | | 2003-04-03 Sven Neumann <sven@gimp.org> * pango/pangoft2.c (pango_ft2_font_get_face) (pango_ft2_font_render_glyph): disable antialiasing if requested. Fixes bug #109370. * pango/pangoft2.c (pango_ft2_render): fixed rendering of monochrome bitmaps.
* pango/pangoft2.c (pango_ft2_render_layout) pango/pangowin32.cSven Neumann2003-04-023-185/+58
| | | | | | | | | | 2003-04-02 Sven Neumann <sven@gimp.org> * pango/pangoft2.c (pango_ft2_render_layout) * pango/pangowin32.c (pango_win32_render_layout) * pango/pangox.c (pango_x_render_layout): use a PangoLayoutIter to iterate over the lines and let render_layout_line() do the actual rendering. Fixes bug #105292.
* pango/pangoft2-fontmap.c fixed typos in inline docs.Sven Neumann2003-03-282-2/+2
| | | | | | | 2003-03-28 Sven Neumann <sven@gimp.org> * pango/pangoft2-fontmap.c * pango/pangoxft-fontmap.c: fixed typos in inline docs.
* Add an --enable-debug configure argument defaulting to 'yes' for unstableOwen Taylor2003-02-1711-206/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Feb 17 13:06:39 2003 Owen Taylor <otaylor@redhat.com> * configure.in **/Makefile.am: Add an --enable-debug configure argument defaulting to 'yes' for unstable releases and 'minimum' for stable releases. For minimum, -DG_DISABLE_CAST_CHECKS. * pango/pangofc-fontmap.cI pango/pangoft2-fontmap.c pango/pangoxft-fontmap.c: Add caching of fontsets (#104495, initial patch and review by Soeren Sandmann) * pango/pangofc-fontmap.cI pango/pangoft2-fontmap.c pango/pangoxft-fontmap.c pango/pangoft2-private.h pango/pangoxft-private.h: Remove cache of recently freed fonts; not necessary now that we cache fontsets. * pango/pangofc-fontmap.cI (pango_fc_pattern_set_free): Rename from pango_fc_font_set_free to reflect what it actually does. * pango/pangofc-fontmap.cI pango/pangoft-fontmap.c pango/pangoxft-fontmap.c: Combine clear-the-cache functions; we didn't need separate clear-the-font-cache and clear-the-pattern-cache functions.
* fix a typo in the @bitmap argument description. s/line/layoutChema Celorio2003-02-161-1/+1
| | | | | | | Sun Feb 16 09:10:12 2003 Chema Celorio <chema@celorio.com> * pango/pangoft2.c (pango_ft2_render_layout): fix a typo in the @bitmap argument description. s/line/layout
* Fix bug where language tag changes were not causing the font to be lookedOwen Taylor2003-02-121-4/+5
| | | | | | | | Wed Feb 12 17:09:00 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c: Fix bug where language tag changes were not causing the font to be looked up again. (bugzilla.redhat.com #84034)
* Up the FreeType version requirement to 2.0.9. (2.2.1 had a compilationOwen Taylor2003-02-121-4/+0
| | | | | | | | | | Wed Feb 12 16:59:23 2003 Owen Taylor <otaylor@redhat.com> * configure.in pango/opentype/fterrcompat.h README: Up the FreeType version requirement to 2.0.9. (2.2.1 had a compilation failure with older versions, this catches it more cleanly, and removes some unneeded checks. #105302, problem reported by Will Partain.)
* 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)
* g_return_if_fail for index >= 0 was the wrong way.Tor Lillqvist2003-01-292-2/+5
| | | | | | | | | | | 2003-01-29 Tor Lillqvist <tml@iki.fi> * pango/pango-coverage.c (pango_coverage_get/set): g_return_if_fail for index >= 0 was the wrong way. * pango/pangowin32.c (pango_win32_font_calc_coverage): Break out of loop if char is 0xFFFF. Some fonts have tables terminated like this.
* Fix an off-by-one error when checking if are off the end of the coverageOwen Taylor2003-01-281-2/+4
| | | | | | | | | | | Tue Jan 28 18:20:45 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-coverage.c (pango_coverage_set/get): Fix an off-by-one error when checking if are off the end of the coverage array. (#102284, Morten Welinder.) * pango/pango-coverage.c (pango_coverage_get/set): Add g_return_if_fail for index < 0.
* Avoid crash with string such as " 12" (bug #103674)Padraig O'Briain2003-01-201-1/+1
| | | | | | | 2003-01-20 Padraig O'Briain <padraig.obriain@sun.com> * pango/fonts.c (pango_font_description_from_string): Avoid crash with string such as " 12" (bug #103674)
* Export TT_New_GDEF_Table to create an empty GDEF table.Owen Taylor2003-01-143-14/+144
| | | | | | | | | | | | | Fri Jan 10 18:56:36 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgdef.c: Export TT_New_GDEF_Table to create an empty GDEF table. * pango/opentype/pango-ot-info.c: If the font doesn't have a class definition table, synthesize one using the charmap and the unicode properties of characters in the charmap. (Needed to make things work with various old Arabic fonts, such as the KACST fonts)
* Some unit fixups (#96335)Owen Taylor2002-12-202-12/+13
| | | | | | | | | | | | | | | | | | | | 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.
* When we get an isolated tone in isolation, do something reasonable ratherOwen Taylor2002-12-172-0/+24
| | | | | | | | | | | | | Mon Dec 16 19:28:18 2002 Owen Taylor <otaylor@redhat.com> * modules/hangul/hangul-xft.c (render_isolated_tone): When we get an isolated tone in isolation, do something reasonable rather than just return no glyphs and causing an assertion failure. (#100625) * pango/pangofc-fontmap.cI (_pango_fc_font_map_get_coverage): Add a hack to force Hangul marks to be be rendered in the same font as base Hangul glyphs.
* === Released 1.1.5 ===PANGO_1_1_5Owen Taylor2002-12-104-0/+20
| | | | | | | | | | | Tue Dec 10 18:37:19 2002 Owen Taylor <otaylor@redhat.com> * === Released 1.1.5 === * pango/pango-attributes.h pango/pango-font.h pango/pango-fontset.h pango/pango-fontmap.h: Add explicit /*< public >*/ /*< private *>/ guards. (See #95398 for gtk-doc changes making this necessary)
* Draw the unknown glyph box with X primitives rather than hoping that someOwen Taylor2002-12-091-85/+86
| | | | | | | | | | | | | Sun Dec 8 22:57:55 2002 Owen Taylor <otaylor@redhat.com> * pango/pangox.c: Draw the unknown glyph box with X primitives rather than hoping that some font has an actualpainting unknown glyph... that code was apparently still working badly. Use "en" not NULL as the language tags for getting the metrics for the return glyph and the unknown character glyph... NULL gives too large results. (#98245, Based on a patch from Morten Welinder.)
* Free the iter. (Fix from Kjartan Maraas, #100672)Owen Taylor2002-12-081-0/+2
| | | | | | | Sun Dec 8 15:22:10 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-glyph-item.c (pango_glyph_item_apply_attrs): Free the iter. (Fix from Kjartan Maraas, #100672)
* Document PangoIndicScript. Document.Matthias Clasen2002-12-071-0/+7
| | | | | * docs/tmpl/pango-indic.sgml: Document PangoIndicScript. * pango/pangowin32.c (pango_win32_get_dc): Document.
* Print out an informative error message and exit(1) if no fonts are found.Owen Taylor2002-12-074-7/+31
| | | | | | | | | | | Sat Dec 7 01:05:25 2002 Owen Taylor <otaylor@redhat.com> * pango/pangofc-fontmap.cI (pango_fc_font_map_get_patterns): Print out an informative error message and exit(1) if no fonts are found. (#98672) * pango/pangoft2.c (pango_ft2_font_get_face): Fix some bugs in the last commit.
* Don't use face->generic.data to hold the size the face is currently setOwen Taylor2002-12-071-17/+11
| | | | | | | | | | Sat Dec 7 00:10:02 2002 Owen Taylor <otaylor@redhat.com> * pango/pangoft2.c (pango_ft2_font_get_face): Don't use face->generic.data to hold the size the face is currently set to; we don't need it currently and it interferes with the use of face->generic.data for OpenType data. (#93822, frequently reported bug)
* Roughly clip glyphs into the X coordinate area to avoid wrap-around.Owen Taylor2002-12-072-24/+44
| | | | | | | | Fri Dec 6 23:07:58 2002 Owen Taylor <otaylor@redhat.com> * pango/pangoxft-font.c (pango_xft_real_render) pango/pangox.c (pango_x_render): Roughly clip glyphs into the X coordinate area to avoid wrap-around. (#73199)
* Dynamically allocate submap arrays so we aren't constrained to the BMP.Owen Taylor2002-12-071-18/+37
| | | | | | | | Fri Dec 6 19:42:33 2002 Owen Taylor <otaylor@redhat.com> * pango/modules.c (map_get_submap): Dynamically allocate submap arrays so we aren't constrained to the BMP. (#100307, Federic Zhang)
* Use octal escapes rather than hex to avoid the problem over having hexOwen Taylor2002-12-071-19/+19
| | | | | | | | Fri Dec 6 18:58:25 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-utils.lo: Use octal escapes rather than hex to avoid the problem over having hex digits immediately after the hex escape.
* Convert literal UTF-8 to hex escapes. (#92050, Arnaud Carlet)Owen Taylor2002-12-062-20/+20
| | | | | | | | | | | Fri Dec 6 18:30:36 2002 Owen Taylor <otaylor@redhat.com> * pango/pango-utils.c: Convert literal UTF-8 to hex escapes. (#92050, Arnaud Carlet) * pango/testfonts.c: Convert literal ISO-8859-1 to UTF-8 hex escapes. (Don't know how passing ISO-8859-1 to pango_shape() was working...)
* Convert [sf]printf to g_[sf]printf, or, where appropriate g_printerr().Owen Taylor2002-12-064-26/+25
| | | | | | | | | | | | Fri Dec 6 18:07:48 2002 Owen Taylor <otaylor@redhat.com> * modules/indic/devanagari-x.c, pango/modules.c pango/pango-utils.c pango/pangoft2.c pango/querymodules.c: Convert [sf]printf to g_[sf]printf, or, where appropriate g_printerr(). (Based on patch from Matthias Clasen, #99321) * configure.in: Require glib-2.1.3.
* === Released 1.1.4 ===Owen Taylor2002-12-033-1/+5
| | | | | | | | | | | | | | | | | Mon Dec 2 17:22:34 2002 Owen Taylor <otaylor@redhat.com> * === Released 1.1.4 === * configure.in: Up version to 1.1.4, interface age 0. * NEWS: Updated. * pango/pangoxft-fontmap.c (pango_fc_do_finalize) * pango/pangoft2-fontmap.c (pango_fc_do_finalize): Fix leaks of fontmap->substitute_data. (#99850) * pango/Makefile.am (INCLUDES): Fix accidental reference to pango-script-table.h.
* Rename PangoLayoutRun to PangoGlyphItem (with a typedef for compat), addOwen Taylor2002-12-038-31/+463
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add docs.Matthias Clasen2002-11-283-4/+7
| | | | | | | | | | * docs/tmpl/xft-fonts.sgml: * docs/tmpl/freetype-fonts.sgml: Add docs. * pango/pangoxft-fontmap.c (pango_xft_substitute_changed): * pango/pangoft2-fontmap.c (pango_ft2_font_map_set_default_substitute): Fix doc typos.
* Mark 1.2 API additions, fix some doc comments.Matthias Clasen2002-11-284-6/+68
| | | | | | | | | | | | * pango/pangoxft-fontmap.c: * pango/pangoxft-font.c: * pango/pangowin32.c: * pango/pangoft2-fontmap.c: Mark 1.2 API additions, fix some doc comments. * pango/pangoft2-fontmap.c (pango_ft2_font_map_set_default_substitute): Implement this function. (#99850)