summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Quiet a compiler warningMatthias Clasen2021-08-241-1/+1
|
* Update gen-break-table.py for Unicode 13Peng Wu2020-03-101-8/+19
|
* Fix a C99 strftime incantationMatthias Clasen2019-08-011-1/+1
| | | | | This is problematic when building pango as subproject of gtk on the win32 ci.
* tools/gen-script-for-lang.c: Avoid generating code with empty arraysChun-wei Fan2019-06-061-1/+7
| | | | | Empty arrays are one of the C99 features that is not currently supported by any Visual Studio versions. Avoid doing so.
* tools: Use GUnicodeScript in gen-script-for-langMatthias Clasen2019-05-271-9/+9
|
* Revert "Replace PangoScript by GUnicodeScript"Michael Catanzaro2019-05-271-1/+1
| | | This reverts commit 3e754defc364a89b2136894399b3463976840156
* Replace PangoScript by GUnicodeScriptMatthias Clasen2019-05-251-1/+1
| | | | | | | | | This commit replaces the PangoScript enum by a typedef to GUnicodeScript, and preserves the old enum values as defines. This depends on adding an enum type for GUnicodeScript in gobject.
* import gen-break-table.pyPeng Wu2019-04-091-0/+156
|
* Merge branch 'issue-322' into 'master'Khaled Hosny2018-12-131-0/+54
|\ | | | | | | | | | | | | Issue #322 - Vertical text doesn't fall back to rotated versions of horizontal glyphs when necessary Closes #322 See merge request GNOME/pango!28
| * Issue #322 - Vertical text doesn't fall back to rotated versions ...ONO Yoshio2018-10-221-0/+54
| | | | | | | | | | | | | | ...of horizontal glyphs when necessary Implemented UAX#50 to determine whether characters rotate or not in vertical layout.
* | Merge branch 'unicode11' into 'master'Matthias Clasen2018-11-271-1/+2
|\ \ | | | | | | | | | | | | Update Unicode Text Segmentation to Unicode 11 See merge request GNOME/pango!15
| * | Update pango-emoji-table.h to include Extended Pictographic tablePeng Wu2018-11-201-1/+2
| | |
* | | [emoji] Shrink the emoji table by merging adjacent rangesBehdad Esfahbod2018-11-201-5/+8
|/ / | | | | | | Patch by David Corbett in HarfBuzz.
* | [emoji] Update emoji tables to Unicode 11Behdad Esfahbod2018-10-151-0/+4
|/
* Drop autotoolsMatthias Clasen2018-08-281-21/+0
| | | | We will just use meson from now on.
* meson: Check for HarfBuzz and FontConfig for PangoFT2Chun-wei Fan2018-03-301-5/+7
| | | | | | | | | | | | | | | | | | | | | It is possible that we can have the following situations, at least on Windows: -FreeType present, FontConfig missing -Cairo-FT present, with no FontConfig support. As gen-script-for-lang requires FontConfig, and PangoFT2 depends on HarfBuzz, FontConfig and Freetype, we need to check for them before we build PangoFT2, and so that we could include PangoFT2 support in PangoCairo. The tests and pango-view have an optional dependency on PangoFT2, so we need to also check whether we built PangoFT2 before we try to build things related to PangoFT2. For the tools, since gen-script-for-lang.c depends on FontConfig, check for it as well before we build it. https://bugzilla.gnome.org/show_bug.cgi?id=783274
* Add data files and routines for emoji itemizationBehdad Esfahbod2017-07-312-0/+65
| | | | | | Ported from Chromium. Not hooked yet.
* build: Add Meson build systemEmmanuele Bassi2017-05-191-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Meson is a meta build system that is: - fast - simpler to understand and use - portable to multiple platforms through different backends - well integrated with the GNOME platform - well maintained Using Meson allows us to build Pango much more quickly, and on all the platforms we currently target, without any loss of functionality, compared to Autotools. Some timing comparisons with hot ccache for both build systems: * autogen.sh: * meson real 0m11.149s real 0m2.525s user 0m8.153s user 0m1.609s sys 0m2.363s sys 0m1.206s * make -j$(($(nproc) + 2)) * ninja real 0m9.186s real 0m3.387s user 0m16.295s user 0m6.887s sys 0m5.337s sys 0m1.318s -------------------------------------------------------------- * autotools * meson + ninja real 0m27.669s real 0m5.772s user 0m45.622s user 0m8.465s sys 0m10.698s sys 0m2.357s System: Intel Core i7-7500U, SSD, 16GB of RAM
* colors: Add rebeccapurpleBenjamin Otte2016-05-051-0/+1
| | | | | | http://lists.w3.org/Archives/Public/www-style/2014Jun/0312.html Thanks Lapo for pointing out this omission!
* gen-script-lang-table: Fix compiler warningsMatthias Clasen2015-12-141-3/+1
|
* Fixup tools/Behdad Esfahbod2015-04-301-2/+2
|
* colors: Update colors to SVG/CSS paletteBenjamin Otte2012-11-131-5/+5
| | | | | | Colors that were defined to different values in Pango than they were in the CSS specification have been updated to conform to the CSS specs. See http://dev.w3.org/csswg/css3-color/#svg-color for the color values.
* colors: Add missing colors from the web paletteBenjamin Otte2012-11-131-196/+201
| | | | | Color names taken from http://dev.w3.org/csswg/css3-color/#svg-color
* Bug 678997 - Colors aqua, silver and indigo missing in: pango-color-table.hBehdad Esfahbod2012-08-251-0/+3
|
* [rgb.txt] Remove duplicate linesBehdad Esfahbod2012-08-251-96/+0
|
* Add rgb.txt from X11Behdad Esfahbod2012-08-252-1/+755
|
* MinorBehdad Esfahbod2012-08-251-1/+1
|
* Use git.mkBehdad Esfahbod2009-04-171-0/+2
|
* [Makefile.am] Fix build of gen-script-for-langBehdad Esfahbod2009-03-141-1/+1
|
* Bug 328206 – Update/remove some old filesBehdad Esfahbod2009-01-065-387/+1
| | | | | | | | | | | | | | | 2009-01-06 Behdad Esfahbod <behdad@gnome.org> Bug 328206 – Update/remove some old files * tools/Makefile.am: * tools/add-copyright: * tools/compress-table.pl: * tools/maps/README: * tools/maps/tis-620: Remove some old files. svn path=/trunk/; revision=2790
* Remove the old gen-script-for-lang tool, rename the new one to it.Behdad Esfahbod2009-01-063-493/+166
| | | | | | | | | | | 2009-01-06 Behdad Esfahbod <behdad@gnome.org> * tools/Makefile.am: * tools/gen-script-for-lang.c: * tools/gen-script-for-lang-new.c: Remove the old gen-script-for-lang tool, rename the new one to it. svn path=/trunk/; revision=2789
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-222-2/+2
| | | | | | | | | | | | 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
* Update to new propsed language enumeration API for fontconfig.Behdad Esfahbod2007-11-051-2/+5
| | | | | | | | | | 2007-11-05 Behdad Esfahbod <behdad@gnome.org> * tools/gen-script-for-lang-new.c (scripts_for_lang), (main): Update to new propsed language enumeration API for fontconfig. svn path=/trunk/; revision=2492
* Sort scripts based on frequency.Behdad Esfahbod2007-10-282-18/+106
| | | | | | | | | | | | | 2007-10-28 Behdad Esfahbod <behdad@gnome.org> * pango/pango-script-lang-table.h: * tools/gen-script-for-lang-new.c: Sort scripts based on frequency. * tools/Makefile.am: Don't build anything by default. svn path=/trunk/; revision=2485
* Functional dup of gen-script-for-lang that uses FcGetLangs() andBehdad Esfahbod2007-10-262-1/+227
| | | | | | | | | | | | 2007-10-26 Behdad Esfahbod <behdad@gnome.org> * tools/Makefile.am: * tools/gen-script-for-lang-new.c: Functional dup of gen-script-for-lang that uses FcGetLangs() and FcCharSetForLang() instead of parsing .orth files. svn path=/trunk/; revision=2482
* Bug 348348 – Add a way to get the script name of a gunicharBehdad Esfahbod2007-08-212-118/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Update from latest fontconfig sources.Behdad Esfahbod2007-05-091-0/+7
| | | | | | | | | | | | | 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
* *.c, *.h: Removed spaces followed b tabs.Behdad Esfahbod2007-01-161-1/+1
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Removed spaces followed b tabs. svn path=/trunk/; revision=2166
* Remove .cvsignore files (moved to svn:ignore prop)Behdad Esfahbod2007-01-091-5/+0
| | | | svn path=/trunk/; revision=2137
* Minor simplification.Behdad Esfahbod2006-09-181-2/+0
| | | | | | | | | | | 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.
* Update to UCD 5.0.0.Behdad Esfahbod2006-07-252-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Updated.Behdad Esfahbod2006-02-081-1/+3
|
* Change Unicode copyright sign to ASCII. Reported by Werner LEMBERG.Behdad Esfahbod2006-02-081-1/+1
|
* If major.minor of required and available glib versions are the same, addBehdad Esfahbod2006-01-251-1/+0
| | | | | | | | | 2006-01-25 Behdad Esfahbod <behdad@gnome.org> * configure.in: If major.minor of required and available glib versions are the same, add -DG_DISABLE_DEPRECATED to GLIB_CFLAGS. (bug #328617) * */Makefile.am: Remove hardcoded -DG_DISABLE_DEPRECATED.
* Make sure #include <config.h> is the first include in the file. (bugBehdad Esfahbod2006-01-141-0/+1
| | | | | | | 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)
* Updates from #320666:Behdad Esfahbod2005-11-143-472/+58
| | | | | | | | | | | | | | | | | | | | | | | | 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-082-1/+464
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-17/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Updated to Unicode 4.1, adding new scripts and Arabic joining data.Roozbeh Pournader2005-08-091-1/+3
| | | | | | | | | | 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 up places where there is missing or incomplete Copyright and LicenseOwen Taylor2005-07-211-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-07-21 Owen Taylor <otaylor@redhat.com> Fix up places where there is missing or incomplete Copyright and License information (Reported by William N. Ray) * pango/opentype/fterrcompat.h: Mark as FreeType/GPL licensed. * pango/opentype/FT-license.txt: Make this the dual-licensing description that covers the FreeType code (FreeType's LICENSE.TXT) rather than the FTL. * pango/opentype/FTL.TXT: Move the FTL (referenced from FT-license.txt) to here. * modules/basic/basic-common.h modules/hebrew/hebrew-shaper.h modules/thai/thai-charprop.c modules/thai/thai-shaper.h tools/gen-script-for-lang.c tests/testcolor.c: Add LGPL header and copyright information. * modules/indic/indic-ot.[ch] modules/indic/indic-ot-class-tables.c modules/thai/thai-ot.[ch]: Add LGPL header. * modules/thai/thai-shaper.c modules/thai/thai-charprop.h: Minor fixes to copyright information. * modules/arabic/arabic-ot.c: Add Freetype license boilerplate.