Commit Graph

1475 Commits

Author SHA1 Message Date
Behdad Esfahbod 3164ac7622 [xml] Intern more strings 2009-06-24 13:52:13 -04:00
Behdad Esfahbod 390c05e64a [xml] Allocate FcExpr's in a pool in FcConfig
Reduces number of malloc's for FcExprs from hundreds into single digits.
2009-06-24 13:52:13 -04:00
Behdad Esfahbod 398d436441 [xml] Mark more symbols static 2009-06-24 13:52:13 -04:00
Behdad Esfahbod a96ecbfa20 [xml] Centralize FcExpr allocation
To be improved, using a central pool.
2009-06-24 13:52:13 -04:00
Behdad Esfahbod 5aebb3e299 Remove unused prototypes and function 2009-06-24 13:52:12 -04:00
Behdad Esfahbod 900723f3d2 [charset] Grow internal FcCharset arrays exponentially 2009-06-24 13:52:12 -04:00
Behdad Esfahbod cce69b07ef Always set *changed in FcCharsetMerge 2009-06-24 13:52:12 -04:00
Behdad Esfahbod 86bdf4598f Add XXX note about Unicode Plane 16 2009-06-24 13:52:12 -04:00
Behdad Esfahbod efe5eae26b Simplify FcValueSave() semantics 2009-06-24 13:52:11 -04:00
Behdad Esfahbod 8ea654b2aa Use/prefer WWS family/style (name table id 21/22) 2009-06-24 13:52:11 -04:00
Behdad Esfahbod 76845a40c5 Mark matchers array const (#21935) 2009-06-24 13:52:11 -04:00
Roozbeh Pournader aa82a4f81d Reorganize Panjabi/Punjabi and Lahnda orthographies (bug #19890)
The correct ISO 639 code for Pakistani/Western Panjabi seems to be 'lah',
not 'pa'. We are keeping 'pa_pk.orth' for compatiblity with glibc.

Signed-off-by: Behdad Esfahbod <behdad@behdad.org>
2009-06-24 13:52:11 -04:00
Behdad Esfahbod 58aa0c8ee8 Detect TrueType Collections by checking the font data header
Instead of checking for "face->num_faces >1". (GNOME bug #577952)
2009-06-24 13:52:10 -04:00
Serge van den Boom 1dd95fcb8b Correctly handle mmap() failure (#21062) 2009-06-24 13:52:10 -04:00
Behdad Esfahbod 35c5181151 [fc-cache] Remove obsolete sentence from man page 2009-06-24 13:52:10 -04:00
Behdad Esfahbod ffd6668b46 [fc-lang] Make LangSet representation in the cache files stable
Fontconfig assigns an index number to each language it knows about.
The index is used to index a bit in FcLangSet language map.  The bit
map is stored in the cache.

Previously fc-lang simply sorted the list of languages and assigned
them an index starting from zero.  Net effect is that whenever new
orth files were added, all the FcLangSet info in the cache files would
become invalid.  This was causing weird bugs like this one:

  https://bugzilla.redhat.com/show_bug.cgi?id=490888

With this commit we fix the index assigned to each language.  The index
will be based on the order the orth files are passed to fc-lang.  As a
result all orth files are explicitly listed in Makefile.am now, and
new additions should be made to the end of the list.  The list is made
to reflect the sorted list of orthographies from 2.6.0 released followed
by new additions since.

This fixes the stability problem.  Needless to say, recreating caches
is necessary before any new orthography is recognized in existing fonts,
but at least the existing caches are still valid and don't cause bugs
like the above.
2009-06-24 13:52:10 -04:00
Behdad Esfahbod 4d13536db4 [fcstr] Remove unused variable 2009-06-24 13:52:09 -04:00
Behdad Esfahbod bb36e67685 [fc-lang] Fix bug in country map generation
Previously the county map code was using an uninitialized variable and
hence was totally failing to populate same-lang-different-territory map.
2009-06-24 13:52:09 -04:00
Behdad Esfahbod 0f11354877 Revert "[conf] Disable hinting when emboldening (#19904)" (#20599)
This reverts commit 10609af4aa.
Apparently disabling hinting can cause worse rendering with certain
fonts.  This is better handled on a per font basis.
2009-06-24 13:52:09 -04:00
Behdad Esfahbod 7042e23649 [Makefile.am] Don't clean ChangeLog in distclean 2009-06-24 13:52:09 -04:00
Behdad Esfahbod caeea376da Document FcPatternFormat() format 2009-03-13 19:06:43 -04:00
Behdad Esfahbod f6d8343989 [fcformat] Fix default-value handling 2009-03-13 17:59:29 -04:00
Behdad Esfahbod 3074a73b41 Replace 'KEITH PACKARD' with 'THE AUTHOR(S)' in license text in all files 2009-03-13 17:59:28 -04:00
Behdad Esfahbod b9b01b6ed0 Call git tools using "git cmd" instead of "git-cmd" syntax
Recent git doesn't install the git-* commands in path.
2009-03-12 13:48:54 -04:00
Behdad Esfahbod de69ee14d3 [fcxml.c] Embed a static 64-byte attr buffer in FcPStack
Reduces number of mallocs called from FcConfigSaveAttr in my small test
from 160 down to 6.
2009-03-12 13:14:38 -04:00
Behdad Esfahbod 39861b7d9c [fcxml] Embed 64 static FcVStack objects in FcConfigParse
This reduces the number of mallocs called from FcVStackPush from
over 800 down to zero.
2009-03-12 13:14:38 -04:00
Behdad Esfahbod 1d7b47da9d [fcxml] Embed 8 static FcPStack objects in FcConfigParse
This reduces the number of mallocs called from FcPStackPush from
over 900 down to zero.
2009-03-12 13:14:38 -04:00
Behdad Esfahbod 532d8a1dbc [fcxml] Don't allocate attr array if there are no attributes
Reduces number of mallocs from FcConfigSaveAttr() in my small test
from over 900 down to 157.
2009-03-12 13:14:37 -04:00
Behdad Esfahbod 3ed70071cd [fcstr,fcxml] Don't copy FcStrBuf contents when we would free it soon
We can simply NUL-terminate the buffer and use it.  Reduces number of
mallocs called from FcStrBufDone in my small test from 631 down to 66.
2009-03-12 13:14:37 -04:00
Behdad Esfahbod 7d35c11b33 [fcstr.c] Embed a static 64-byte buffer in FcStrBuf
Reduces number of mallocs called from FcStrBufChar in my small test
from 900 down to 6.
2009-03-12 13:14:37 -04:00
Behdad Esfahbod 916640ce40 Fix Makefile's to not create target file in case of failure 2009-03-10 02:16:09 -04:00
Behdad Esfahbod 26ce979e82 Fix Fanti (fat) orth file (#20390) 2009-03-10 02:16:09 -04:00
Roozbeh Pournader 49111c11fb Add Sundanese (su) orthography (bug #20440) 2009-03-09 13:18:51 -04:00
Roozbeh Pournader 0eaed16d34 Add Kanuri (kr) orthography (bug #20438) 2009-03-09 13:18:51 -04:00
Roozbeh Pournader fe4838588b Add Nauru (na) orthography (bug #20418) 2009-03-09 13:18:51 -04:00
Roozbeh Pournader 9141b4bbe9 Add Javanese (jv) orthography (bug #20403) 2009-03-02 14:03:37 +03:30
Roozbeh Pournader dc6daae949 Add Sichuan Yi (ii) orthography (bug #20402) 2009-03-02 14:03:37 +03:30
Roozbeh Pournader 43517045f8 Add Shona (sn) orthography (bug #20394) 2009-03-02 14:03:37 +03:30
Roozbeh Pournader 42a8008df1 Add orthographies for Oshiwambo languages (bug #20401)
The languages are Kuanyama/Kwanyama (kj), Ndonga (ng), and Kwambi (kwm).
2009-03-02 14:03:36 +03:30
Roozbeh Pournader f0b5463729 Add Zhuang (za) orthography (bug #20399) 2009-03-02 14:03:36 +03:30
Roozbeh Pournader 7886b14783 Add Rundi (rn) orthography (bug #20398) 2009-03-02 14:03:35 +03:30
Roozbeh Pournader 10a85249d9 Add Navajo (nv) orthography (bug #20395) 2009-03-02 14:03:35 +03:30
Roozbeh Pournader bf20886085 Add Tahitian (ty) orthography (bug #20391) 2009-03-02 14:03:35 +03:30
Roozbeh Pournader 0e05d7e5c7 Add Sango (sg) orthography (bug #20393) 2009-03-02 14:03:35 +03:30
Roozbeh Pournader bdbdc64dd1 Added Quechua (qu) orthography (bug #20392) 2009-03-02 14:03:34 +03:30
Roozbeh Pournader 16159d0fae Add Akan (ak) and Fanti (fat) orthographies (bug #20390) 2009-03-02 14:03:34 +03:30
Roozbeh Pournader 881a7cd93b Add Herero (hz) orthograhy (bug #20387) 2009-03-02 14:03:34 +03:30
Roozbeh Pournader bc701d2a5b Add Ewe (ee) orthography (bug #20386) 2009-03-02 14:03:34 +03:30
Roozbeh Pournader 5a83914b73 Update Serbo-Croatian (sh) orthography (bug #20368) 2009-03-02 14:03:33 +03:30
Roozbeh Pournader 505ea8ce37 Extend Crimean Tatar (crh) orthography (bug #19891) 2009-03-02 14:03:33 +03:30