summaryrefslogtreecommitdiff
path: root/pango
Commit message (Collapse)AuthorAgeFilesLines
* New API pango_font_family_is_monospace. (#108728)Noah Levitt2004-02-234-9/+81
| | | | | | | | | 2003-02-23 Noah Levitt <nlevitt@columbia.edu> * pango/pangowin32-fontmap.c: * pango/pangofc-fontmap.c: * pango/pango-font.h: * pango/fonts.c: New API pango_font_family_is_monospace. (#108728)
* Handle NULL for sizes and n_sizes.Noah Levitt2004-02-232-12/+26
| | | | | | | | 2003-02-23 Noah Levitt <nlevitt@columbia.edu> * pango/fonts.c (pango_font_face_list_sizes): * pango/pangofc-fontmap.c (pango_fc_face_list_sizes): Handle NULL for sizes and n_sizes.
* Handle possibility of FcPatternGetDouble(FC_DPI) failing.Noah Levitt2004-02-231-1/+2
| | | | | | | 2003-02-22 Noah Levitt <nlevitt@columbia.edu> * pango/pangofc-fontmap.c (pango_fc_face_list_sizes): Handle possibility of FcPatternGetDouble(FC_DPI) failing.
* New API for getting available sizes for a bitmap font face.Noah Levitt2004-02-234-1/+131
| | | | | | | | | | 2003-02-22 Noah Levitt <nlevitt@columbia.edu> * pango/pango-font.h: * pango/pangofc-fontmap.c: * pango/pangowin32-fontmap.c: * pango/fonts.c (pango_font_face_list_sizes): New API for getting available sizes for a bitmap font face.
* 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)
* Sign convention for y offsets is opposite between PangoGlyphString and FTOwen Taylor2004-02-211-1/+1
| | | | | | | | Sat Feb 21 09:49:23 2004 Owen Taylor <otaylor@redhat.com> * pango/opentype/pango-ot-ruleset.c (pango_ot_ruleset_shape): Sign convention for y offsets is opposite between PangoGlyphString and FT code. (#132591)
* Make approximate_digit_width the width of the widest digit, rather thanNoah Levitt2004-02-192-9/+51
| | | | | | | | | 2003-02-19 Noah Levitt <nlevitt@columbia.edu> * pango/pangofc-font.c (pango_fc_font_get_metrics): * pango/pangowin32.c (pango_win32_font_get_metrics): Make approximate_digit_width the width of the widest digit, rather than the average.
* Use 'xx' as the language for cases where we the language tag mismatchesOwen Taylor2004-02-191-1/+8
| | | | | | | | | | Thu Feb 19 10:44:17 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (compute_derived_language): Use 'xx' as the language for cases where we the language tag mismatches the script but we don't have a good language tag for the script. (#123581)
* Memory leak fixes from Masatake YAMATO, #130652Owen Taylor2004-02-131-0/+4
| | | | | | | | | | | | Fri Feb 13 10:54:18 2004 Owen Taylor <otaylor@redhat.com> Memory leak fixes from Masatake YAMATO, #130652 * pango/opentype/ftxgdef.c (TT_Done_GDEF_Table): Free the gdef table as well as the contained data. * pango/opentype/ftxgdef.c (TT_GDEF_Build_ClassDefinition): Set gcd->loaded, so that the contents get freed later.
* initialize font_desc to NULL.Manish Singh2004-02-111-0/+1
| | | | | | | Tue Feb 10 19:03:44 2004 Manish Singh <yosh@gimp.org> * pango/pango-context.c (itemize_state_init): initialize font_desc to NULL.
* Handle 'tag' being NULL in a bunch of places. (#122844, Noah Levitt)Owen Taylor2004-02-101-12/+30
| | | | | | | Tue Feb 10 14:33:54 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-markup.c: Handle 'tag' being NULL in a bunch of places. (#122844, Noah Levitt)
* Fix a leak of a font descriptor. (#131909, Kjartan Maraas, ChristianOwen Taylor2004-02-101-0/+2
| | | | | | | | Tue Feb 10 14:28:41 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (update_attr_iterator): Fix a leak of a font descriptor. (#131909, Kjartan Maraas, Christian Persch)
* Fix the amount of memory being allocated. (#132994, Torsten Schoenfeld)Owen Taylor2004-02-101-2/+2
| | | | | | | | Tue Feb 10 14:13:04 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-tabs.c (pango_tab_array_resize): Fix the amount of memory being allocated. (#132994, Torsten Schoenfeld)
* Fix infinite loop introduced with last change. (#133749, reported byOwen Taylor2004-02-091-1/+1
| | | | | | | | Mon Feb 9 09:52:24 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-attributes.c (pango_attr_iterator_next): Fix infinite loop introduced with last change. (#133749, reported by Mariano Suárez-Alvarez)
* Fix problem with empty markup tags (#128102, Christian Persch)Owen Taylor2004-02-052-4/+13
| | | | | | | | | | | | | | | Thu Feb 5 16:30:46 2004 Owen Taylor <otaylor@redhat.com> Fix problem with empty markup tags (#128102, Christian Persch) * pango/pango-context.c (itemize_state_process_run): Assert that the run is non-empty. * pango/pango-attributes.c (pango_attr_list_change): Just ignore empty attributes. * pango/pango-attributes.c (pango_attr_iterator_next): Skip empty attributes.
* 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)
* Suport CFF fonts as well. (#131202, Manjunath Sripadarao)Owen Taylor2004-01-261-1/+2
| | | | | | | Mon Jan 26 14:20:34 2004 Owen Taylor <otaylor@redhat.com> * pango/opentype/pango-ot-info.c (is_truetype): Suport CFF fonts as well. (#131202, Manjunath Sripadarao)
* Fix up glyph addition code so that it works properly with the typicalOwen Taylor2004-01-261-3/+6
| | | | | | | | | | | | | | Mon Jan 26 10:30:06 2004 Owen Taylor <otaylor@redhat.com> * pango/modules/thai/thai-c: Fix up glyph addition code so that it works properly with the typical TrueType fonts that have 0 width for combining characters. (#124175, Theppitak Karoonboonyanan) Fri Jan 23 16:05:31 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-markup.c (open_tag_free): Fix some more problems with NULL attribute lists.
* Correct the documentation. (#128431, Ross Burton)Matthias Clasen2003-12-181-1/+1
| | | | | | | Thu Dec 18 01:20:31 2003 Matthias Clasen <maclas@gmx.de> * pango/pango-attributes.c (pango_attr_size_new): Correct the documentation. (#128431, Ross Burton)
* moved pango_fc_* to the latter where they live on *nix too.Hans Breuer2003-12-136-39/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-13 Hans Breuer <hans@breuer.org> * pango/pango.def pangoft2.def : moved pango_fc_* to the latter where they live on *nix too. * pango/makefile.msc : make it build again (including the Ft2 backend) * pango/module-defs-fc.c.win32 : if PANGO_MODULE_PREFIX is defined include the basic backend shaper * pango/pangowin32.c (pango_win32_render_layout) : initialize iter before first usage to avoid immediate crashing * pango/opentype/makefile.msc pango/modules/makefile.msc : finally build with mscv, too. [completely untested cause I'm not able to type, write or read any of these languages] * modules/modules.def : follow module function renaming/changes * modules/basic/basic-win32.c : register the right engine, i.e. make it compile
* === Released 1.3.1 ===PANGO_1_3_1Owen Taylor2003-12-081-2/+4
| | | | | | | | | | | | | Mon Dec 8 12:57:03 2003 Owen Taylor <otaylor@redhat.com> * === Released 1.3.1 === * NEWS: Further updates for 1.3.1 * pango/pango-script.c (pango_script_iter_next): Put in a hopefully-correct fix for a problem with invalid values of start_sp causing out-of-bounds writes. (#125928, Morten Welinder)
* Fix problems when building outside srcdir for Win32. (#122167, JeffTor Lillqvist2003-12-071-9/+9
| | | | | | | 2003-12-07 Tor Lillqvist <tml@iki.fi> * pango/Makefile.am: Fix problems when building outside srcdir for Win32. (#122167, Jeff Bonggren)
* initialize the fontmap's resolution to some sane default values. Fixes bugSven Neumann2003-12-051-2/+11
| | | | | | | 2003-12-05 Sven Neumann <sven@gimp.org> * pango/pangoft2-fontmap.c: initialize the fontmap's resolution to some sane default values. Fixes bug #123602.
* Honor U+2028 LINE SEPARATOR. (#85745)Noah Levitt2003-12-042-7/+28
| | | | | | | 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-252-9/+9
| | | | | | | | | 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)
* Italian is "it"; "iw" is deprecated for Hebrew, should be "he".Noah Levitt2003-11-251-2/+2
| | | | | | | 2003-11-25 Noah Levitt <nlevitt@columbia.edu> * pango-utils.c (lang_texts[]): Italian is "it"; "iw" is deprecated for Hebrew, should be "he".
* #include <fontconfig/fcfreetype.h> for FreeTypeCharIndex().Manish Singh2003-11-201-0/+1
| | | | | | | 2003-11-20 Manish Singh <yosh@gimp.org> * pango/pangoft2-private.h: #include <fontconfig/fcfreetype.h> for FreeTypeCharIndex().
* reverted the patch for bug #123602 since I only applied it accidentally. ISven Neumann2003-11-202-50/+10
| | | | | | | | | | | 2003-11-20 Sven Neumann <sven@gimp.org> * pango/pangoft2-fontmap.c: reverted the patch for bug #123602 since I only applied it accidentally. I still believe the patch should go in though. * pango/pangoft2.c: really applied the fix for #101856 as described below.
* Update to latest fribidi. (#68435)Noah Levitt2003-11-2010-1186/+7629
| | | | | | | | | | | | | | | | 2003-11-20 Noah Levitt <nlevitt@columbia.edu> * pango/pango-utils.c: * pango/mini-fribidi/Makefile.am: * pango/mini-fribidi/README: * pango/mini-fribidi/fribidi.c: * pango/mini-fribidi/fribidi.patch: * pango/mini-fribidi/fribidi_char_type.c: * pango/mini-fribidi/fribidi_tab_char_type_2.i: * pango/mini-fribidi/fribidi_types.c: * pango/mini-fribidi/fribidi_types.h: * pango/mini-fribidi/fribidi_types.i: Update to latest fribidi. (#68435)
* Draw 6-digit hex boxes for > U+FFFF. (#101081)Noah Levitt2003-11-181-19/+32
| | | | | | | 2003-11-18 Noah Levitt <nlevitt@columbia.edu> * pango/pangxft-font.c (pango_xft_real_render): Draw 6-digit hex boxes for > U+FFFF. (#101081)
* Fix _SCALE semantics. Fixes bug 121543; patch from Owen.Morten Welinder2003-11-181-4/+9
| | | | | | | 2003-11-18 Morten Welinder <terra@gnome.org> * pango/pango-attributes.c (pango_attr_iterator_get_font): Fix _SCALE semantics. Fixes bug 121543; patch from Owen.
* removed the set_unicode_charmap() call. MadeSven Neumann2003-11-181-2/+11
| | | | | | | | | | 2003-11-18 Sven Neumann <sven@gimp.org> * pango/pangoft2-fontmap.c: removed the set_unicode_charmap() call. Made pango_ft2_font_real_get_glyph() use FcFreeTypeCharIndex() rather than FT_Get_Char_Index(). Made pango_ft2_font_real_has_char() use FcCharSetHasChar(). This allows to use PangoFT2 with all font encodings supported by fontconfig and fixes bug #101856.
* Make parent_class variable static.Padraig O'Briain2003-11-121-1/+1
| | | | | | 2003-11-12 Padraig O'Briain <padraig.obriain@sun.com> * pangoo/modules.c: Make parent_class variable static.
* Switch over to recommended Freetype system of include ft2build.h thenOwen Taylor2003-11-0112-40/+36
| | | | | | | | | | | | | | Sat Nov 1 09:32:15 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-ot.h pango/pangofc-font.h modules/indic/indic-ot.h pango/pangoft2.c pango/opentype/pango-ot-info.c pango/opentype/pango-ot-ruleset.c pango/opentype/ottest.c pango/opentype/ftxopen.[ch] pango/opentype/ftxgdef.c pango/opentype/ftxgsub.c pango/opentype/ftxgpos.c: Switch over to recommended Freetype system of include ft2build.h then #include FT_FREETYPE_H. Fixes ftmodule.h problem with current Freetype CVS. (#125548)
* Fix some leftover references to INCLUDE_XFT_MODULES, INCLUDED_FC_MODULES.Owen Taylor2003-10-312-10/+5
| | | | | | | | | | | Fri Oct 31 13:01:25 2003 Owen Taylor <otaylor@redhat.com> * pango/Makefile.am (libpangox_1_0_la_LDFLAGS): Fix some leftover references to INCLUDE_XFT_MODULES, INCLUDED_FC_MODULES. (#125588, Martin Kretzschmar) * pango/pangox-fontmap.c (pango_x_face_get_coverage): Fix some code that was never quite finished.
* 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.
* === Released 1.3.0 ===PANGO_1_3_0Owen Taylor2003-10-242-1/+3
| | | | | | | | | | | | | | | | | | Fri Oct 24 00:09:17 2003 Owen Taylor <otaylor@redhat.com> * === Released 1.3.0 === * pango/module-defs-fc.c.win32 pango/module-defs-fc.c.win32: Add the -fc version, remove the -ft2 version. Not sure this file is actually needed any more. * pango/Makefile.am (libpango_1_0_la_SOURCES): Add pango-impl-utils.h, pango-script-lang-table.h. * docs/Makefile.am (dist-hook-local): Distribute generated manpage. * tests/Makefile.am (CLEANFILES): Add pango.modules
* Initialize state->lang. (#124047, Morten Welinder)Owen Taylor2003-10-151-0/+2
| | | | | | | Wed Oct 15 17:18:37 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (itemize_state_init): Initialize state->lang. (#124047, Morten Welinder)
* Fix a c99-ism, include stdlib.h for bsearch. (#123616, Kaushal Kumar)Owen Taylor2003-10-011-2/+5
| | | | | | | | Wed Oct 1 12:40:38 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-script.c (pango_script_get_sample_language): Fix a c99-ism, include stdlib.h for bsearch. (#123616, Kaushal Kumar)
* Replace get_coverage by covers in the doc comment.Matthias Clasen2003-09-296-4/+16
| | | | | | | | | | | | | | | | | | | | 2003-09-30 Matthias Clasen <maclas@gmx.de> * pango/pango-engine.h (struct _PangoEngineShapeClass): Replace get_coverage by covers in the doc comment. * pango/pango-script.c (pango_language_includes_script) (pango_script_get_sample_language): * pango/pango-fontset.c (pango_fontset_foreach): * pango/pango-fontmap.c (pango_font_map_get_shape_engine_type): * pango/modules.c (pango_map_get_engines): * pango/pango-fontset.h (PangoFontsetForEachFunc): Fix typos and add "Since: 1.4" tags. * docs/pango-sections.txt: Add PangoFontsetForeachFunc, pango_fontset_foreach(), pango_font_map_get_shape_engine_type(), PangoScriptForLang, pango_script_get_sample_language() and pango_language_includes_script(), remove pango_map_get_entry().
* Only reset the word type to WordNone at a word end if it is not also aMatthias Clasen2003-09-241-4/+1
| | | | | | | | | 2003-09-25 Matthias Clasen <maclas@gmx.de> * pango/break.c (pango_default_break): Only reset the word type to WordNone at a word end if it is not also a word start. Otherwise both 't' and 'e' are classified as word start in '123test'. (#122754, Hidetoshi Tajima)
* Don't break runs when we hit neutral characters.Owen Taylor2003-09-231-10/+10
| | | | | | | Tue Sep 23 19:43:05 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (itemize_state_add_character): Don't break runs when we hit neutral characters.
* Modules now declare a list of scripts that they cover instead of a list ofOwen Taylor2003-09-2317-567/+1355
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Sep 23 18:03:57 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-engines.[ch] pango/pango-engines-private.h: Modules now declare a list of scripts that they cover instead of a list of code point ranges. Also, there is now a ->covers() virtual function that allows a module to decide live whether the font covers a particular codepoint; remove old get_coverage() method. * pango/pango-fontset.[ch]: Add a foreach() function to iterate over all the fonts in a fontset (with a true return stopping iteration). * pango/pango-context.c: Complete rewrite using script-run information to improve language tags. Switch to an approach where we handle one run at a time rather than computing information for each character individually then later breaking the result into runs. * pango/pango-fontset.[ch]: Switch over to using pango-impl-utils.h. * modules/basic/basic-x.c pango/pangox-fontmap.c: Adapt to the change from get_coverage => covers. * pango/pango-modules.h pango/modules.c: Switch PangoMap over to being based on script rather than being based on codepoint. Remove the no longer needed pango_map_get_entry(). * pango/modules.c: Handle new script-based modules. * pango/pango-fc-fontmap.c pango/pango-win32-fontmap.c pango/pang-fontmap.[ch]: Add a shape_engine_type field to PangoFontmapClass, pango_font_map_get_shape_engine_type(); this allows generic code to find a shaper for a particular fontmap. * pango/pango-script.[ch]: Add pango_script_get_sample_language(), pango_language_includes_script(); functions for determining the relationship between scripts and language. * tools/gen-script-for-lang.c: Modify to spit out a useful table. * pango/pango-script-lang-table.h: Version of table generated from current fontconfig data. * pango/pangox.c: Remove complicated code to compute coverages; no longer useful now that we just have the basic shaper as a legacy thing. * modules/*/*.c: Adapt to identifying shape engines by language range. * modules/thai/thai-fc.c modules/thai/thai-shaper.[ch]: Remove now unused "has_glyph" function and XTIS support. * modules/thai/thai-fc.c: Handle non-Thai characters as well, since the Thai module now gets spaces, punctuation, and so forth.
* Add property dependencies on mini-fribidi and opentype convenienceOwen Taylor2003-09-151-1/+2
| | | | | | | Mon Sep 15 17:07:58 2003 Owen Taylor <otaylor@redhat.com> * pango/Makefile.am: Add property dependencies on mini-fribidi and opentype convenience libraries.
* Fix gcc-3.3 versions of macros to have the right return value.Owen Taylor2003-09-151-18/+26
| | | | | | | Mon Sep 15 17:16:59 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/fterrcompat.h: Fix gcc-3.3 versions of macros to have the right return value.
* Fix a g_assert() with a side-effect. (Maybe #121742?)Owen Taylor2003-09-151-1/+3
| | | | | | | Tue Sep 9 12:21:02 2003 Owen Taylor <otaylor@redhat.com> * pango/pangofc-fontmap.c (pango_fc_font_description_from_pattern): Fix a g_assert() with a side-effect. (Maybe #121742?)
* Document these funcions as backends-only, and explain how to obtainMatthias Clasen2003-09-111-0/+14
| | | | | | | | 2003-09-12 Matthias Clasen <maclas@gmx.de> * pango/pango-context.c (pango_context_set_font_map) (pango_context_new): Document these funcions as backends-only, and explain how to obtain initialized contexts. (#121881, Martin Pool)