summaryrefslogtreecommitdiff
path: root/pango
Commit message (Collapse)AuthorAgeFilesLines
* Move the remaining uses of font_id from PangoCairoATSUIFont toRichard Hult2007-06-262-23/+17
| | | | | | | | | | | | 2007-06-26 Richard Hult <richard@imendio.com> * pango/pangoatsui.c: (_pango_atsui_font_set_atsu_font_id): * pango/pangocairo-atsuifont.c: (pango_cairo_atsui_font_create_metrics_for_context), (_pango_cairo_atsui_font_new): Move the remaining uses of font_id from PangoCairoATSUIFont to PangoATSUIFont. svn path=/trunk/; revision=2367
* Bug 449543 - Ship pangoatsui.hRichard Hult2007-06-247-56/+184
| | | | | | | | | | | | | | | | | | | | | | 2007-06-24 Richard Hult <richard@imendio.com> Bug 449543 - Ship pangoatsui.h * pango/pangoatsui-fontmap.c: * pango/pangoatsui-private.h: * pango/pangoatsui.c: * pango/pangoatsui.h: * pango/pangocairo-atsuifont.c: * pango/pangocairo-atsuifont.h: Move get_atsu_font_id from the cairo atsui font class to the atsui base class. Make the members of the atsui font private and adapt all users of them. * pango/Makefile.am: Ship pangoatsui.h. * modules/basic/basic-atsui.c: (basic_engine_shape): Adapt to the above changes. svn path=/trunk/; revision=2366
* Add G_UNLIKELY() to type registration block in _get_type() functions.Behdad Esfahbod2007-06-2016-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-20 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c (pango_font_description_get_type), (pango_font_metrics_get_type): * pango/glyphstring.c (pango_glyph_string_get_type): * pango/pango-attributes.c (pango_attr_list_get_type): * pango/pango-color.c (pango_color_get_type): * pango/pango-item.c (pango_item_get_type): * pango/pango-language.c (pango_language_get_type): * pango/pango-layout.c (pango_layout_line_get_type), (pango_layout_iter_get_type): * pango/pango-matrix.c (pango_matrix_get_type): * pango/pango-ot-info.c (pango_ot_info_get_type): * pango/pango-ot-ruleset.c (pango_ot_ruleset_get_type): * pango/pango-tabs.c (pango_tab_array_get_type): * pango/pangoatsui-fontmap.c (pango_atsui_family_get_type), (pango_atsui_face_get_type): * pango/pangofc-fontmap.c (pango_fc_face_get_type), (pango_fc_family_get_type): * pango/pangowin32-fontmap.c (pango_win32_family_get_type), (pango_win32_face_get_type): * pango/pangox-fontmap.c (pango_x_font_map_get_type), (pango_x_face_get_type), (pango_x_family_get_type): * pango/pangox.c (pango_x_font_get_type): Add G_UNLIKELY() to type registration block in _get_type() functions. svn path=/trunk/; revision=2364
* minor whitespace fix.Behdad Esfahbod2007-06-201-3/+3
| | | | svn path=/trunk/; revision=2363
* Bug 448342 – pango_layout_index_to_line_x() counts lines from 1Behdad Esfahbod2007-06-191-1/+1
| | | | | | | | | | | | 2007-06-18 Behdad Esfahbod <behdad@gnome.org> Bug 448342 – pango_layout_index_to_line_x() counts lines from 1 * pango/pango-layout.c (pango_layout_index_to_line): Count lines from zero, not one! svn path=/trunk/; revision=2359
* Bug 447568 – improve docs on what absolute size meansBehdad Esfahbod2007-06-191-2/+6
| | | | | | | | | | | 2007-06-18 Behdad Esfahbod <behdad@gnome.org> Bug 447568 – improve docs on what absolute size means * pango/fonts.c: Improve docs. svn path=/trunk/; revision=2357
* Clarify docs.Behdad Esfahbod2007-06-151-1/+3
| | | | svn path=/trunk/; revision=2356
* updatedHans Breuer2007-06-151-3/+18
| | | | | | | | | 2007-06-15 Hans Breuer <hans@breuer.org> * pango/makefile.msc : updated svn path=/trunk/; revision=2355
* Check for NULL before dereferencing. Patch from Keith Packard.Behdad Esfahbod2007-06-141-2/+5
| | | | | | | | | | | 2007-06-14 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-font.c (_pango_cairo_font_private_scaled_font_data_destroy): Check for NULL before dereferencing. Patch from Keith Packard. svn path=/trunk/; revision=2354
* Bug 447189 – fonts.c: pango_font_face_is_synthesized returns NULLBehdad Esfahbod2007-06-131-1/+1
| | | | | | | | | | | | 2007-06-13 Behdad Esfahbod <behdad@gnome.org> Bug 447189 – fonts.c: pango_font_face_is_synthesized returns NULL * pango/fonts.c (pango_font_face_is_synthesized): Fix return value. svn path=/trunk/; revision=2353
* Compare set fields of two font descriptions for equality too, asBehdad Esfahbod2007-06-121-1/+3
| | | | | | | | | | | | 2007-06-12 Behdad Esfahbod <behdad@gnome.org> * pango/pango-attributes.c (pango_attr_font_desc_equal): Compare set fields of two font descriptions for equality too, as pango_font_description_equal() doesn't check the mask. svn path=/trunk/; revision=2351
* Implement get_font_type().Richard Hult2007-06-121-0/+7
| | | | | | | | | 2007-06-12 Richard Hult <richard@imendio.com> * pango/pangocairo-atsuifontmap.c: Implement get_font_type(). svn path=/trunk/; revision=2350
* Implement PangoCairoWin32FontMap::get_font_type().Tor Lillqvist2007-06-121-0/+7
| | | | | | | | | | 2007-06-12 Tor Lillqvist <tml@novell.com> * pango/pangowin32-fontmap.c: Implement PangoCairoWin32FontMap::get_font_type(). svn path=/trunk/; revision=2349
* Add is_synthetic field.Tor Lillqvist2007-06-124-288/+68
| | | | | | | | | | | | | | | | 2007-06-12 Tor Lillqvist <tml@novell.com> * pango/pangowin32-private.h (struct PangoWin32Face: Add is_synthetic field. * pango/pangowin32-fontmap.c: Implement is_synthesized. * pango/pangocairo-win32font.c * pango/pangocairo-win32fontmap.c: Update for the changes to PangoCairoFontMap and PangoCairoFont. svn path=/trunk/; revision=2347
* Bug 445832 – pango_cairo_update_layout() always invalidates layoutBehdad Esfahbod2007-06-121-24/+56
| | | | | | | | | | | | | 2007-06-12 Behdad Esfahbod <behdad@gnome.org> Bug 445832 – pango_cairo_update_layout() always invalidates layout * pango/pangocairo-context.c (_pango_cairo_update_context), (pango_cairo_update_context), (pango_cairo_update_layout): Don't invalidate layout if matrix and font options didn't change. svn path=/trunk/; revision=2346
* Add G_GNUC_CONST and G_GNUC_PURE annotations.Behdad Esfahbod2007-06-1230-80/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-11 Behdad Esfahbod <behdad@gnome.org> * pango/pango-attributes.h: * pango/pango-font.h: * pango/pango-glyph.h: * pango/pango-gravity.h: * pango/pango-language.h: * pango/pango-layout.h: * pango/pango-matrix.h: * pango/pango-ot-private.h: * pango/pango-ot.h: * pango/pango-renderer.h: * pango/pango-script.h: * pango/pango-tabs.h: * pango/pango-utils.h: * pango/pangoatsui-private.h: * pango/pangocairo-atsui.h: * pango/pangocairo-atsuifont.h: * pango/pangocairo-fc.h: * pango/pangocairo-private.h: * pango/pangocairo-win32.h: * pango/pangocairo.h: * pango/pangofc-decoder.h: * pango/pangofc-font.h: * pango/pangofc-fontmap.h: * pango/pangoft2-private.h: * pango/pangoft2.h: * pango/pangowin32-private.h: * pango/pangox-private.h: * pango/pangoxft-render.h: * pango/pangoxft.h: Add G_GNUC_CONST and G_GNUC_PURE annotations. svn path=/trunk/; revision=2345
* New engine public macros:Behdad Esfahbod2007-06-123-277/+288
| | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-11 Behdad Esfahbod <behdad@gnome.org> * pango/pango-ot.h: New engine public macros: PANGO_OT_TAG_MAKE() PANGO_OT_TAG_MAKE_FROM_STRING() * docs/pango-sections.txt: * docs/tmpl/opentype.sgml: Update. 2007-06-11 Behdad Esfahbod <behdad@gnome.org> Bug 446018 – Bus error in the pango_ot_tag_from_language() * pango/pango-ot-tag.c (pango_ot_tag_from_script), (pango_ot_tag_to_script), (pango_ot_tag_from_language), (pango_ot_tag_to_language): Make sure int access is aligned. svn path=/trunk/; revision=2344
* Implement is_synthesized for the ATSUI backend.Richard Hult2007-06-111-0/+9
| | | | | | | | | 2007-06-12 Richard Hult <richard@imendio.com> * pango/pangoatsui-fontmap.c (pango_atsui_face_is_synthesized): Implement is_synthesized for the ATSUI backend. svn path=/trunk/; revision=2343
* Bug 440588 – Add pango_font_face_is_synthesized()Behdad Esfahbod2007-06-114-11/+45
| | | | | | | | | | | | | | | | | | | | | | | | 2007-06-11 Behdad Esfahbod <behdad@gnome.org> Bug 440588 – Add pango_font_face_is_synthesized() * pango/pango-font.h: * pango/fonts.c: New PangoFontFace method is_synthesized. New public API: pango_font_face_is_synthesized() * pango/pangofc-fontmap.c (pango_fc_face_is_synthesized): Implement new method. * docs/pango-sections.txt: * docs/tmpl/fonts.sgml: * pango/pango.def: Update. svn path=/trunk/; revision=2342
* Update for the changes to PangoCairoFontMap and PangoCairoFont.Richard Hult2007-06-112-242/+52
| | | | | | | | | | 2007-06-12 Richard Hult <richard@imendio.com> * pango/pangocairo-atsuifont.c: * pango/pangocairo-atsuifontmap.c: Update for the changes to PangoCairoFontMap and PangoCairoFont. svn path=/trunk/; revision=2341
* Bug 446355 – the parsing with pango_parse_markup is not coherentBehdad Esfahbod2007-06-111-1/+1
| | | | | | | | | | | | | | | 2007-06-11 Behdad Esfahbod <behdad@gnome.org> Bug 446355 – the parsing with pango_parse_markup is not coherent * pango/pango-markup.c (pango_parse_markup): Use pango_attr_list_insert() instead of pango_attr_list_change() as merging adjacent attributes of the same kind is not a safe operation and can change the derived font of a segment in an unexpected and incorrect way. svn path=/trunk/; revision=2340
* Make sure all enabled font backends included (reported by VincentBehdad Esfahbod2007-06-111-2/+4
| | | | | | | | | | 2007-06-11 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-fontmap.c: Make sure all enabled font backends included (reported by Vincent Isambart). svn path=/trunk/; revision=2339
* Bug 347236 – provide pango_cairo_font_get_scaled_font Bug 347235 – AddBehdad Esfahbod2007-06-117-11/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-10 Behdad Esfahbod <behdad@gnome.org> Bug 347236 – provide pango_cairo_font_get_scaled_font Bug 347235 – Add pango_cairo_font_map_get_font_type Bug 353291 – Provide pango_cairo_font_map_new_for_font_type * pango/pangocairo-font.c: New public API: pango_cairo_font_get_scaled_font() * pango/pangocairo-fontmap.c: New public API: pango_cairo_font_map_new_for_font_type() pango_cairo_font_map_get_font_type() * pango/pangocairo-fcfontmap.c: Implement get_font_type() method. * pango/pangocairo.h: * pango/pangocairo-private.h: * docs/pango-sections.txt: * docs/tmpl/pangocairo.sgml: * pango/pangocairo.def: Update. svn path=/trunk/; revision=2336
* Bug 337593 – move glyph extents code (and cache) from pangocairo-*font.cBehdad Esfahbod2007-06-106-505/+566
| | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-09 Behdad Esfahbod <behdad@gnome.org> Bug 337593 – move glyph extents code (and cache) from pangocairo-*font.c into pangocairo-font.c * pango/pangocairo-fontmap.c: * pango/pangocairo-fcfontmap.c: Remove per-fontmap renderer. We've not been using it for a while and there is no reason to use it. * pango/pangocairo-font.c * pango/pangocairo-fcfont.c: Most most code (including glyph extents caching) from fcfont.c to font.c. Simplifies individual backends a lot. ATSUI and Win32 cairo backends should adapt. * pango/pangocairo-render.c * pango/pangocairo-private.h: Update to reflect above changes. svn path=/trunk/; revision=2335
* Use G_CONST_RETURNBehdad Esfahbod2007-06-101-1/+1
| | | | svn path=/trunk/; revision=2334
* Add missing g_return_if_fail()s. Pointed out by fcrozat.Behdad Esfahbod2007-06-051-7/+31
| | | | | | | | | | | | | | | 2007-06-05 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c (pango_font_description_merge), (pango_font_description_merge_static), (pango_font_description_copy), (pango_font_description_copy_static), (pango_font_description_hash), (pango_font_description_to_string), (pango_font_description_to_filename): Add missing g_return_if_fail()s. Pointed out by fcrozat. svn path=/trunk/; revision=2333
* Zero glyphs->num_glyphs before calling into shape engine.Behdad Esfahbod2007-06-053-4/+24
| | | | | | | | | | | | | | | | | | 2007-06-04 Behdad Esfahbod <behdad@gnome.org> * pango/shape.c (pango_shape): Zero glyphs->num_glyphs before calling into shape engine. * pango/pango-engine.c (fallback_engine_shape): Improve, to support clusters and what not. * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info): Use "pango_script_get_sample_language (PANGO_SCRIPT_LATIN)" instead of hardcoding "en". Handle cairo_scaled_font_extents() failure. svn path=/trunk/; revision=2332
* Fix various typos reported by Peter Moulder.Behdad Esfahbod2007-06-033-5/+5
| | | | | | | | | | | | | 2007-06-03 Behdad Esfahbod <behdad@gnome.org> * docs/tmpl/main.sgml: * pango/pango-layout.c (process_item): * pango/pango-ot-info.c: * pango/pango-renderer.c (pango_renderer_draw_layout_line): Fix various typos reported by Peter Moulder. svn path=/trunk/; revision=2329
* Rename pango_ot_ruleset_get_for() toBehdad Esfahbod2007-06-033-31/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-03 Behdad Esfahbod <behdad@gnome.org> * docs/pango-sections.txt: * docs/tmpl/opentype.sgml: * modules/arabic/arabic-fc.c (arabic_engine_shape): * modules/basic/basic-fc.c (basic_engine_shape): * modules/hebrew/hebrew-fc.c (hebrew_engine_shape): * modules/indic/indic-fc.c (indic_engine_shape): * modules/khmer/khmer-fc.c (khmer_engine_shape): * modules/syriac/syriac-fc.c (syriac_engine_shape): * modules/thai/thai-fc.c (thai_engine_shape): * modules/tibetan/tibetan-fc.c (tibetan_engine_shape): * pango/pango-ot-ruleset.c (pango_ot_ruleset_get_for_description), (pango_ot_ruleset_new_from_description): * pango/pango-ot.h: * pango/pangoft2.def: Rename pango_ot_ruleset_get_for() to pango_ot_ruleset_get_for_description(). New engine API: pango_ot_ruleset_new_from_description(). svn path=/trunk/; revision=2328
* Bug 443206 – PANGO_SCRIPT_UNKNOWN should not cause a run break PatchBehdad Esfahbod2007-06-021-1/+1
| | | | | | | | | | | | | 2007-06-02 Behdad Esfahbod <behdad@gnome.org> Bug 443206 – PANGO_SCRIPT_UNKNOWN should not cause a run break Patch from Martin Hosken * pango/pango-script.c: Treat Unknown script like Common and other non-"real" scripts. svn path=/trunk/; revision=2326
* Improve docs.Behdad Esfahbod2007-05-311-0/+5
| | | | | | | | | 2007-05-31 Behdad Esfahbod <behdad@gnome.org> * pango/pango-layout.c: Improve docs. svn path=/trunk/; revision=2325
* Fix wrong Unicode version in header.Behdad Esfahbod2007-05-251-1/+1
| | | | | | | | | | 2007-05-25 Behdad Esfahbod <behdad@gnome.org> * pango/mini-fribidi/fribidi_tab_char_type_2.i: Fix wrong Unicode version in header. svn path=/trunk/; revision=2321
* Part of Bug 440603 – Minor ABI changeBehdad Esfahbod2007-05-231-3/+9
| | | | | | | | | | | | | | | 2007-05-23 Behdad Esfahbod <behdad@gnome.org> Part of Bug 440603 – Minor ABI change * pango/pango-context.c (pango_context_init), (pango_context_set_language), (pango_context_get_language): Make itemization use pango_language_get_default() if context has no language set on it. Ditto for pango_context_get_metrics() if both input language and context language are NULL. svn path=/trunk/; revision=2317
* Bug 440603 – Minor ABI changeBehdad Esfahbod2007-05-232-11/+12
| | | | | | | | | | | | | 2007-05-22 Behdad Esfahbod <behdad@gnome.org> Bug 440603 – Minor ABI change * pango/pango-language.c (pango_language_includes_script): * pango/pango-ot-tag.c (pango_ot_tag_from_language): Accept language == NULL as legitimate input. svn path=/trunk/; revision=2315
* Improve the fix for bug #433805 so that the metrics actually are right,Richard Hult2007-05-201-1/+1
| | | | | | | | | | 2007-05-20 Richard Hult <richard@imendio.com> * pango/pangocairo-atsuifont.c: (_pango_cairo_atsui_font_new): Improve the fix for bug #433805 so that the metrics actually are right, thanks to Mitch for noticing and debugging help. svn path=/trunk/; revision=2314
* Bug 438705 – Test runs non-existent "/bin/bash" on HP-UX 11.11Behdad Esfahbod2007-05-161-1/+1
| | | | | | | | | | | | | 2007-05-16 Behdad Esfahbod <behdad@gnome.org> Bug 438705 – Test runs non-existent "/bin/bash" on HP-UX 11.11 * docs/check.docs: * pango/check.defs: Use /bin/sh instead of /bin/bash. svn path=/trunk/; revision=2313
* Bug 438814 – synaptic crash with pango 1.17.0Behdad Esfahbod2007-05-161-1/+1
| | | | | | | | | | | | 2007-05-16 Behdad Esfahbod <behdad@gnome.org> Bug 438814 – synaptic crash with pango 1.17.0 * pango/pango-layout.c (process_item): Make sure we find some break point even if overflowing the line. svn path=/trunk/; revision=2311
* Add new engine API:Behdad Esfahbod2007-05-164-0/+36
| | | | | | | | | | | | | | | | | | | | 2007-05-15 Behdad Esfahbod <behdad@gnome.org> * pango/pango-ot.h: * pango/pango-ot-private.h: * pango/pango-ot-ruleset.c (pango_ot_ruleset_add_feature), (pango_ot_ruleset_get_feature_count): Add new engine API: pango_ot_ruleset_get_feature_count() * docs/pango-sections.txt: * docs/tmpl/opentype.sgml: * pango/pangoft2.def: Updated. svn path=/trunk/; revision=2304
* Bug 433805 - [Atsui] Approximate char/digit width width often 0Richard Hult2007-05-152-10/+139
| | | | | | | | | | | | | | | | 2007-05-15 Richard Hult <richard@imendio.com> Bug 433805 - [Atsui] Approximate char/digit width width often 0 * pango/pangocairo-atsuifont.c: (pango_cairo_atsui_font_get_metrics): Improve the metrics so it really is average instead of max glyph width. Also keep the metrics per language in the font so it's not constantly recreated. (pango_cairo_atsui_font_describe_absolute): Implement. * pango/pangocairo-atsuifontmap.c: Set default resolution. svn path=/trunk/; revision=2300
* Update.Behdad Esfahbod2007-05-141-0/+8
| | | | svn path=/trunk/; revision=2295
* Bug 325714 – Pango should respect $LANGUAGEBehdad Esfahbod2007-05-141-1/+102
| | | | | | | | | | | | | | | | | | 2007-05-14 Behdad Esfahbod <behdad@gnome.org> Bug 325714 – Pango should respect $LANGUAGE * pango/pango-language.c (pango_language_matches), (parse_default_languages), (_pango_script_get_default_language), (pango_script_get_sample_language): Make pango_script_get_sample_language() use the value of env var PANGO_LANGUAGE or LANGUAGE (checked in that order) to make better guesses. The env var should be a list of language tags, like "en:fa" for example where makes Pango choose Persian (fa) fonts instead of Arabic (ar) fonts... svn path=/trunk/; revision=2294
* Move pango_script_get_sample_language() from pango-script.c toBehdad Esfahbod2007-05-142-132/+133
| | | | | | | | | | | 2007-05-14 Behdad Esfahbod <behdad@gnome.org> * pango/pango-language.c (pango_script_get_sample_language): * pango/pango-script.c: Move pango_script_get_sample_language() from pango-script.c to pango-language.c. Fits better. svn path=/trunk/; revision=2293
* Part of Bug 325714 – Pango should respect $LANGUAGEBehdad Esfahbod2007-05-143-13/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-05-14 Behdad Esfahbod <behdad@gnome.org> Part of Bug 325714 – Pango should respect $LANGUAGE * pango/pango-ot.h: * pango/pango-ot-ruleset.c (pango_ot_ruleset_get_for), (pango_ot_ruleset_description_hash), (pango_ot_ruleset_description_equal), (pango_ot_ruleset_description_copy), (pango_ot_ruleset_description_free): Add new engine API: PangoOTRulesetDescription pango_ot_ruleset_get_for() pango_ot_ruleset_description_hash() pango_ot_ruleset_description_equal() pango_ot_ruleset_description_copy() pango_ot_ruleset_description_free() The main addition is pango_ot_ruleset_get_for() that takes a ruleset description, ie. script/language and list of GSUB/GPOS features to apply, and returns a ruleset. It manages all the work to cache rulesets, so modules don't have to do that anymore. Given that modules do not deal with just one ruleset anymore (because we want to respect language, and allow user-selected features), this makes their life way easier. * docs/pango-sections.txt: * docs/tmpl/opentype.sgml: Update. svn path=/trunk/; revision=2290
* Add a FIXMEBehdad Esfahbod2007-05-141-1/+4
| | | | svn path=/trunk/; revision=2289
* Mark some arguments const.Behdad Esfahbod2007-05-143-18/+18
| | | | | | | | | | | | | | 2007-05-14 Behdad Esfahbod <behdad@gnome.org> * pango/pango-ot-buffer.c (pango_ot_buffer_get_glyphs), (pango_ot_buffer_output): * pango/pango-ot-ruleset.c (pango_ot_ruleset_substitute), (pango_ot_ruleset_position): * pango/pango-ot.h: Mark some arguments const. svn path=/trunk/; revision=2288
* Part of Bug 325714 – Pango should respect $LANGUAGEBehdad Esfahbod2007-05-145-26/+365
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-05-13 Behdad Esfahbod <behdad@gnome.org> Part of Bug 325714 – Pango should respect $LANGUAGE * pango/pango-ot.h: * pango/pango-ot-private.h: * pango/pango-ot-tag.c (pango_ot_tag_from_script), (pango_ot_tag_from_language): * pango/pango-ot-info.c (pango_ot_info_find_script), (pango_ot_info_find_language), (pango_ot_info_find_feature), (pango_ot_info_list_languages), (pango_ot_info_list_features): * pango/pango-ot-ruleset.c (pango_ot_ruleset_new), (pango_ot_ruleset_new_for), (pango_ot_ruleset_add_feature), (pango_ot_ruleset_maybe_add_feature), (pango_ot_ruleset_maybe_add_features): Add new engine API: PANGO_OT_NO_FEATURE PANGO_OT_NO_SCRIPT PANGO_OT_TAG_DEFAULT_SCRIPT PANGO_OT_TAG_DEFAULT_LANGUAGE pango_ot_ruleset_new_for() pango_ot_ruleset_maybe_add_feature() pango_ot_ruleset_maybe_add_features() Using pango_ot_ruleset_new_for() and pango_ot_ruleset_maybe_add_features() drastically simplifies ruleset building in modules, and does correct script and language selection too. Modules need to be updated to use it though. * docs/pango-docs.sgml: * docs/pango-sections.txt: * docs/tmpl/opentype.sgml: Update. svn path=/trunk/; revision=2284
* New public API:Behdad Esfahbod2007-05-104-5/+471
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-05-10 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am: * pango/pango-ot.h: * pango/pango-ot-tag.c (pango_ot_tag_from_script), (pango_ot_tag_to_script), (lang_compare_first_component), (pango_ot_tag_from_language), (pango_ot_tag_to_language): New public API: PANGO_OT_DEFAULT_SCRIPT pango_ot_tag_from_script() pango_ot_tag_to_script() pango_ot_tag_from_language() pango_ot_tag_to_language() * tests/Makefile.am: * tests/test-ot-tags.c: Test case for new functions. * pango/pangoft2.def: * docs/pango-docs.sgml: * docs/pango-sections.txt: * docs/tmpl/main.sgml: * docs/tmpl/opentype.sgml: Updated. svn path=/trunk/; revision=2274
* Bug 437534 – pango_language_includes_script is buggyBehdad Esfahbod2007-05-102-30/+53
| | | | | | | | | | | | | 2007-05-10 Behdad Esfahbod <behdad@gnome.org> Bug 437534 – pango_language_includes_script is buggy * pango/pango-language.c (lang_compare_first_component), (lang_info_compare), (script_for_lang_compare), (pango_language_includes_script): Fix script_for_lang table lookup. svn path=/trunk/; revision=2273
* Don't set gravity in pango_fc_font_description_from_pattern() if it wasBehdad Esfahbod2007-05-101-8/+4
| | | | | | | | | | | | | | 2007-05-10 Behdad Esfahbod <behdad@gnome.org> * pango/pangofc-fontmap.c (pango_fc_font_description_from_pattern), (pango_fc_face_describe): Don't set gravity in pango_fc_font_description_from_pattern() if it was not set on the pattern. This is a bit different from other properties, but that really is how gravity works (unlike say weight that not having it said means normal weight). svn path=/trunk/; revision=2272
* Update from latest fontconfig sources.Behdad Esfahbod2007-05-091-2/+3
| | | | | | | | | | | | | 2007-05-09 Behdad Esfahbod <behdad@gnome.org> * pango/pango-script-lang-table.h: Update from latest fontconfig sources. * tools/gen-script-for-lang.c (scripts_for_line): Make it handle PANGO_SCRIPT_UNKNOWN. svn path=/trunk/; revision=2271