summaryrefslogtreecommitdiff
path: root/pango/pango-script.c
Commit message (Collapse)AuthorAgeFilesLines
* docs: Convert gtk-doc syntax leftoversdocs-cleanupMatthias Clasen2021-05-191-20/+23
| | | | | Remove leftovers like #Type, reduce indentations to avoid markdown block quotes, etc.
* introspection: Stop using allow-noneMatthias Clasen2021-05-191-3/+3
| | | | | The allow-none annotation has been deprecated for a long time already. Instead use optional and nullable everywhere.
* docs: Tweak script docsMatthias Clasen2021-03-111-15/+7
| | | | Add summaries, convert markup, etc.
* docs: Replace lots of vestigial xml markupMatthias Clasen2021-03-111-2/+2
| | | | | We want to use pure markdown, since docbook is going away as the intermediate format.
* Add a boxed type for PangoScriptIterEmmanuele Bassi2019-08-021-0/+13
| | | | | Makes it usable by language bindings, and avoids a warning when introspecting the source code.
* Fix compiler warningsMatthias Clasen2019-07-181-2/+2
|
* Update the pair tableMatthias Clasen2019-07-031-1/+42
| | | | | This was done by comparing with the Bidi_Mirrored property in Unicode 12.
* Deprecate pango_script_for_unicharMatthias Clasen2019-05-271-0/+1
|
* Add more deprecation notes around PangoScriptMatthias Clasen2019-05-271-3/+10
| | | | | | Make it clear that PangoScript is deprecated, and will not be updated. And that all APIs are in fact returning GUnicodeScript, and callers have to handle that.
* Use g_unichar_get_script directlyMatthias Clasen2015-09-121-1/+1
| | | | Instead of going through a wrapper.
* MinorBehdad Esfahbod2015-05-011-2/+2
|
* Bug 685167 - migrate docs to no-tmpl flavourBehdad Esfahbod2013-09-271-1/+10
| | | | Patch from Rafał Mużyło.
* Stop using G_CONST_RETURN in PangoRyan Lortie2011-06-091-4/+4
| | | | | | | G_CONST_RETURN is headed for deprecation (as per bug #644611). Stop using it in Pango. https://bugzilla.gnome.org/show_bug.cgi?id=652202
* adding (out) introspection metadata to pango_script_iter_get_rangeAlberto Ruiz2011-04-251-3/+3
|
* adding allow-none introspection metadata to pango_script_iter_get_rangeAlberto Ruiz2011-04-251-3/+3
|
* [pango] Allocate PangoScriptIter on stack.Chris Wilson2009-03-201-40/+30
| | | | | | | Move the PangoScriptIter structure definition to a private header file, so that we can embed the iterator within other structures or allocate a local iterator on the stack. This eliminates the frequent short-lived allocations associated with the iterator.
* Bug 473805 – Add API enumerating scripts for a languageBehdad Esfahbod2008-08-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-18 Behdad Esfahbod <behdad@gnome.org> Bug 473805 – Add API enumerating scripts for a language * docs/Makefile.am: * docs/pango-sections.txt: * docs/tmpl/scripts.sgml: * docs/tmpl/text-attributes.sgml: * docs/tmpl/utils.sgml: * pango/pango-language.c (pango_language_get_scripts), (pango_language_includes_script), (pango_script_get_sample_language): * pango/pango-language.h: * pango/pango-script.c: * pango/pango.def: Add a minor new public API: pango_language_get_scripts() This is what pango_language_includes_script() has been using internally. Previously one had to call that function over all possible script values to determine which scripts a language uses. The new API makes that much easier. svn path=/trunk/; revision=2693
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Behdad svn path=/trunk/; revision=2657
* Bug 348348 – Add a way to get the script name of a gunicharBehdad Esfahbod2007-08-211-32/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-08-20 Behdad Esfahbod <behdad@gnome.org> Bug 348348 – Add a way to get the script name of a gunichar * configure.in: Require glib 2.14, for GUnicodeScript stuff. * docs/tmpl/scripts.sgml: Document that #PangoScript is interchangeable with GUnicodeScript. * pango/pango-script.c (pango_script_for_unichar): Use g_unichar_get_script(), and document it. * tools/Makefile.am: * tools/gen-script-table.pl: * pango/Makefile.am: * pango/pango-script-table.h: Remove pango-script-table.h and its generator. * pango/pango-gravity.c (get_script_properties): * pango/pango-language.c (pango_script_get_sample_language): * pango/pango-ot-tag.c (pango_ot_tag_from_script): Protect against unexpected script values. svn path=/trunk/; revision=2406
* 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
* Move pango_script_get_sample_language() from pango-script.c toBehdad Esfahbod2007-05-141-131/+0
| | | | | | | | | | | 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
* Bug 437534 – pango_language_includes_script is buggyBehdad Esfahbod2007-05-101-1/+1
| | | | | | | | | | | | | 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
* Move pango_language_includes_script() from pango-script.c toBehdad Esfahbod2007-05-091-88/+0
| | | | | | | | | | | | 2007-05-09 Behdad Esfahbod <behdad@gnome.org> * pango/pango-language.c (script_for_lang_compare), (pango_language_includes_script): * pango/pango-script.c: Move pango_language_includes_script() from pango-script.c to pango-language.c that it belongs. svn path=/trunk/; revision=2270
* *.c, *.h: Replace preceding sequences of 8 spaces with tabs.Behdad Esfahbod2007-01-161-1/+1
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Replace preceding sequences of 8 spaces with tabs. svn path=/trunk/; revision=2165
* *.c, *.h: Drop trailing whitespace.Behdad Esfahbod2007-01-161-25/+25
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Drop trailing whitespace. svn path=/trunk/; revision=2163
* Bug 323173 – Add layout of mixed direction text for vertical layoutBehdad Esfahbod2007-01-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-01-15 Behdad Esfahbod <behdad@gnome.org> Bug 323173 – Add layout of mixed direction text for vertical layout * pango/pango-gravity.h: * pango/pango-gravity.c: Moved gravity stuff here. New public API: PangoGravityHint pango_gravity_get_for_matrix() pango_gravity_get_for_script() * pango/pango-context.h: * pango/pango-context.c (pango_context_init), (update_resolved_gravity), (itemize_state_update_for_new_run): Support gravity hint. New public API: pango_context_set_gravity_hint() pango_context_get_gravity_hint() * pango/pango-utils.c: * pango/pango-matrix.c: * pango/pango-matrix.h: * pango/pango-types.h: Moved gravity and matrix stuff into its own header. pango-types.h includes both pango-matrix.h and pango-gravity.h * pango/pango.h: Include new headers. * pango/pango.def: * pango/Makefile.am: Update. * docs/pango-docs.sgml: * docs/pango-sections.txt: * docs/tmpl/glyphs.sgml: * docs/tmpl/main.sgml: * docs/tmpl/vertical.sgml: Add a section for Vertical Text. * examples/renderdemo.c (do_output), (parse_gravity_hint), (parse_options): Support gravity hint. * examples/test-mixed.txt: New test, mixed Latin, Arabic, Chinese text. svn path=/trunk/; revision=2144
* Spell-check the docs.Behdad Esfahbod2007-01-071-4/+4
| | | | svn path=/trunk/; revision=2130
* Minor simplification.Behdad Esfahbod2006-09-181-1/+1
| | | | | | | | | | | 2006-09-18 Behdad Esfahbod <behdad@gnome.org> * tools/gen-script-table.pl: * pango/pango-script-table.h: * pango/pango-script.c (pango_script_for_unichar): Minor simplification. * tests/testscript.c (test_script_lookup): Update to pass.
* Add Cuneiform and Phoenician in the list of supported scripts by thisBehdad Esfahbod2006-07-251-1/+1
| | | | | | | | | | | 2006-07-25 Behdad Esfahbod <behdad@gnome.org> * modules/basic/basic-fc.c: Add Cuneiform and Phoenician in the list of supported scripts by this backend. Phoenician is a simple RTL script. * pango/pango-script.c (pango_script_get_sample_language): Add language code "nqo" for script N'Ko.
* Update to UCD 5.0.0.Behdad Esfahbod2006-07-251-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-07-24 Behdad Esfahbod <behdad@gnome.org> * pango/mini-fribidi/fribidi_tab_char_type_2.i: Update to UCD 5.0.0. * pango/mini-fribidi/README: Note the about update. * pango/pango-script.h: Add new values for PangoScript. * pango/pango-script.c (pango_script_for_unichar_bsearch): Default to PANGO_SCRIPT_UNKNOWN. * pango/pango-script.c (pango_script_get_sample_language): Add empty entries for new script values. * tools/gen-script-table.pl: Default to PANGO_SCRIPT_UNKNOWN as is now the default value of Scripts.txt in UCD 5.0.0. * pango/pango-script-table.h: Regenerated against UCD 5.0.0. * docs/tmpl/scripts.sgml: Document new script types. * tools/gen-script-for-lang.c (scripts_for_line): Ignore data at the end of lines as many .orth files in fontconfig now list the character name there. * pango/pango-script-lang-table.h: Regenerate against newer fontconfig 2.3.9x.
* Improve documentation for functions allocating memory, on how the objectBehdad Esfahbod2006-01-311-1/+2
| | | | | | | | | | | | | | | | 2006-01-31 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c, pango/glyphstring.c pango/pango-attributes.c pango/pango-color.c, pango/pango-context.c pango/pango-coverage.c, pango/pango-fontset.c pango/pango-glyph-item.c, pango/pango-item.c pango/pango-layout.c, pango/pango-ot-buffer.c pango/pango-ot-info.c, pango/pango-ot-ruleset.c pango/pango-script.c, pango/pango-tabs.c pango/pango-utils.c pango/pangocairo-fcfontmap.c, pango/pangocairo-fontmap.c pango/pangox-fontcache.c, pango/pangoxft-render.c: Improve documentation for functions allocating memory, on how the object should be freed.
* If locking font face failed, do not assert, just return zero glyphs withBehdad Esfahbod2006-01-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-29 Behdad Esfahbod <behdad@gnome.org> * modules/arabic/arabic-fc.c, modules/basic/basic-fc.c modules/hebrew/hebrew-fc.c, modules/indic/indic-fc.c modules/khmer/khmer-fc.c, modules/syriac/syriac-fc.c modules/thai/thai-ot.c, modules/thai/thai-shaper.c modules/tibetan/tibetan-fc.c: If locking font face failed, do not assert, just return zero glyphs with an implicit warning. * pango/fonts.c, pango/glyphstring.c pango/modules.c pango/pango-color.c, pango/pango-context.c pango/pango-coverage.c, pango/pango-fontmap.c pango/pango-glyph-item.c, pango/pango-item.c pango/pango-layout.c, pango/pango-markup.c pango/pango-ot-buffer.c, pango/pango-script.c pango/pango-tabs.c, pango/pango-utils.c pango/pangoatsui-fontmap.c, pango/pangocairo-fcfont.c pango/pangocairo-fcfontmap.c, pango/pangocairo-fontmap.c pango/pangocairo-win32font.c, pango/pangofc-font.c pango/pangofc-fontmap.c, pango/pangoft2-fontmap.c pango/pangoft2-render.c, pango/pangoft2.c pango/pangowin32-fontcache.c, pango/pangoxft-font.c pango/pangoxft-render.c, pango/break.c pango/ellipsize.c: Use g_slice for allocating all types. Also, change some g_error's to g_critical's...
* Make sure #include <config.h> is the first include in the file. (bugBehdad Esfahbod2006-01-141-0/+2
| | | | | | | 2006-01-14 Behdad Esfahbod <behdad@gnome.org> * */*.c, */*/*.c: Make sure #include <config.h> is the first include in the file. (bug #158870, based on patch by Luis Menina)
* Added "Since:" tags to all interfaces added after Pango 1.0. (#319116,Behdad Esfahbod2005-11-231-0/+10
| | | | | | | | | | | 2005-11-23 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c pango/pango-attributes.c pango/pango-context.c pango/pango-glyph-item.c pango/pango-layout.c pango/pango-script.c pango/pango-utils.c pango/pangofc-font.c pango/pangoft2-fontmap.c pango/opentype/pango-ot-buffer.c pango/opentype/pango-ot-ruleset.c: Added "Since:" tags to all interfaces added after Pango 1.0. (#319116, Brian Cameron)
* Only update static mid on a match.Behdad Esfahbod2005-11-221-2/+3
| | | | | | | 2005-11-21 Behdad Esfahbod <behdad@gnome.org> * pango/pango-script.c (pango_script_for_unichar_bsearch): Only update static mid on a match.
* More documentation improvements.Behdad Esfahbod2005-11-171-5/+5
| | | | | | | | | | | | | | 2005-11-17 Behdad Esfahbod <behdad@gnome.org> * docs/tmpl/coverage-maps.sgml docs/tmpl/fonts.sgml docs/tmpl/glyphs.sgml docs/tmpl/layout.sgml docs/tmpl/main.sgml docs/tmpl/scripts.sgml docs/tmpl/tab-stops.sgml docs/tmpl/text-attributes.sgml pango/break.c pango/fonts.c pango/pango-fontset.c pango/pango-layout.c pango/pango-script.c pango/pango-utils.c pango/pangofc-decoder.c pango/pangofc-decoder.h pango/pangofc-font.c pango/pangofc-font.h pango/pangoxft-font.c: More documentation improvements.
* Updates from #320666:Behdad Esfahbod2005-11-141-30/+12
| | | | | | | | | | | | | | | | | | | | | | | | 2005-11-14 Behdad Esfahbod <behdad@gnome.org> Updates from #320666: * pango/Makefile.am: Remove pango-easy-scripts-table.h. * pango/pango-easy-scripts-table.h: Removed. The "easy" table goes into pango-scripts-table.h too. * pango/pango-script-table.h: Include "easy" table. * pango/pango-script.c: Change gunichar->script last_index caching mechanism. The caching is simply done by making int mid in the bsearch static. * tools/Makefile.am: Remove gen-easy-scripts-table.c. * tools/gen-easy-scripts-table.c: Removed. The "easy" table is generated in gen-scripts-table.pl too. * tools/gen-script-table.h: Generate "easy" table.
* Fixes bug #320666:Federico Mena Quintero2005-11-081-18/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-07 Federico Mena Quintero <federico@ximian.com> Fixes bug #320666: Instead of doing a bsearch() for every gunichar to map it to a PangoScript, use a precomputed table for the first 8192 code points. Also, remember the last script that we computed on each invocation; this will also help CJK and the other scripts above U+2000. This table also holds information on whether the characters in it are paired characters. We can use this to avoid doing the expensive get_pair_index() call most of the time. Many thanks to Matthias Clasen for his suggestions for this patch. * tools/gen-easy-scripts-table.c: New program to generate pango_easy_scripts_table. * tools/Makefile.am: Build gen-easy-scripts-table. * pango/pango-easy-scripts-table.h: New file with a mapping of the first 8192 Unicode characters to their corresponding scripts. The table also says whether each character has a paired char or not. * pango/Makefile.am (libpango_1_0_la_SOURCES): Add pango-easy-scripts-table.h. * pango/pango-script-table.h: Remove everything below U+2000, and add a note to that effect. * pango/pango-script.c (pango_script_for_unichar_with_last_index): New function. This is the old pango_script_for_unichar(), but it lets the caller keep around the computed index in pango_script_table. This works under the assumption that a character is likely to be in the same script block as the preceding character in a string. (pango_script_for_unichar): First, do a quick check against the pango_easy_scripts_table. Then, do the expensive check with pango_script_for_unichar_with_last_index(). (pango_script_iter_next): If the character is within the easy script range, find out if it is a paired character by using PANGO_PAIRED_CHAR_FLAG. (struct _PangoScriptIter): Add a last_index_for_script_lookup field. We use this to maintain the last-lookup index from pango_script_for_unichar_with_last_index(). (pango_script_iter_next): If the character is not within the easy script range, use pango_script_for_unichar_with_last_index(), and store the index in the last_index_for_script_lookup field of the PangoScriptIter.
* Turn various gcc warnings off. Adding const, adding static, fullyBehdad Esfahbod2005-11-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-04 Behdad Esfahbod <behdad@gnome.org> * configure.in, examples/argcontext.c examples/cairoview.c, examples/renderdemo.c, examples/renderdemo.h examples/xftview.c, modules/basic/basic-x.c, modules/hangul/hangul-fc.c, modules/hebrew/hebrew-shaper.c, modules/hebrew/hebrew-shaper.h, modules/indic/indic-fc.c, modules/indic/mprefixups.c, modules/syriac/syriac-fc.c, pango/break.c pango/fonts.c, pango/modules.c, pango/pango-coverage.c pango/pango-engine.c, pango/pango-engine.h, pango/pango-fontmap.c, pango/pango-fontset.c, pango/pango-impl-utils.h, pango/pango-layout.c, pango/pango-layout.h, pango/pango-renderer.c, pango/pango-script.c, pango/pango-utils.c, pango/pangocairo-fc.h, pango/pangocairo-font.c, pango/pangocairo-fontmap.c, pango/pangocairo-private.h, pango/pangofc-decoder.c, pango/pangofc-font.c, pango/pangofc-fontmap.c pango/pangoft2.c, pango/pangox-fontcache.c, pango/pangox-fontmap.c pango/pangox.c, pango/pangoxft-font.c, pango/querymodules.c, pango/opentype/ftglue.c, pango/opentype/ftxgpos.c, pango/opentype/ftxopen.c, pango/opentype/pango-ot-buffer.c, pango/opentype/pango-ot-info.c, pango/opentype/pango-ot-ruleset.c, tests/dump-boundaries.c, tests/testboundaries.c, tests/testcolor.c tests/testiter.c, tests/testscript.c: Turn various gcc warnings off. Adding const, adding static, fully initializing structs, match signedness in comparisons. (#317804) * tests/testscript.c, tools/gen-script-for-lang.c: (scripts_for_file): Pass error->message instead of error to fail(), which was wrong. (compare_lang): Fix typo comparing a and a instead of a and b.
* Glagolitic shouldn't have Coptic as a sample language; it was used toOwen Taylor2005-08-151-2/+5
| | | | | | | | | | 2005-08-15 Owen Taylor <otaylor@redhat.com> * pango/pango-script.c (pango_script_get_sample_language): Glagolitic shouldn't have Coptic as a sample language; it was used to write Old Church Slavonic. Tifinagh shouldn't have Berber as a sample language, since it isn't the *primary* script used to write Berber.
* Updated to Unicode 4.1, adding new scripts and Arabic joining data.Roozbeh Pournader2005-08-091-0/+9
| | | | | | | | | | 2005-08-08 Roozbeh Pournader <roozbeh@farsiweb.info> * docs/tmpl/scripts.sgml, modules/arabic/arabic-ot.c, pango/pango-script.c, pango/pango-script.h, pango/pango-script-table.h, tools/gen-script-table.pl: Updated to Unicode 4.1, adding new scripts and Arabic joining data. (#312884) `
* Fix problem where MEDIUM was getting grouped with SEMIBOLD rather thanOwen Taylor2004-12-311-1/+1
| | | | | | | | | | | | | | Fri Dec 31 10:20:55 2004 Owen Taylor <otaylor@redhat.com> * pango/pangofc-fontmap.c (pango_fc_convert_weight_to_pango): Fix problem where MEDIUM was getting grouped with SEMIBOLD rather than NORMAL. (http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=143832) Wed Dec 22 13:21:01 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-script.c pango/pango-types.h: Fix a couple of documentation typos (#161647, Torsten Schoenfeld)
* 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.
* 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.
* 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.
* === 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 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-291-0/+4
| | | | | | | | | | | | | | | | | | | | 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().
* Modules now declare a list of scripts that they cover instead of a list ofOwen Taylor2003-09-231-0/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Make PangoEngine{,Lang,Shape} GObjects, and use a GTypeModule-basedOwen Taylor2003-08-031-0/+343
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