summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Finish INSTALL changes. .gitignore ChangeLogfc-2_4_branchfc-2_4-keithpKeith Packard2006-09-032-1/+2
|
* Update instructions for doing a release. Autogen ChangeLog from git-log.2.3.96Keith Packard2006-09-032-5/+55
|
* Remove ChangeLogKeith Packard2006-09-031-3496/+0
|
* Change version to 2.3.96Keith Packard2006-09-033-4/+67
|
* Oops; missed the 60-delicious.conf file.Keith Packard2006-09-021-0/+20
| | | | This file fixes Delicious Heavy fonts to have the correct weight value.
* Using uninitialized (and wrong) variable in FcStrCopyFilename.Keith Packard2006-09-021-1/+1
| | | | A typo from the change in where filename canonicalization occurs.
* Don't segfault when string values can't be parsed as charsets or langsets.Keith Packard2006-09-021-0/+6
| | | | | If parsing charsets or langsets fails, return a FcTypeVoid value instead of a charset/langset value with a NULL pointer in it (which is invalid).
* Fix missing initialization/destruction of new 'scan' target subst list.Keith Packard2006-09-021-0/+2
| | | | | Forgot to initialize and destroy the new substitution list for the 'scan' match target.
* Add FcMatchScan to resolve Delicious font matching issues (bug #6769)Keith Packard2006-09-0213-31/+153
| | | | | | | | | | | | | | | | | The Delicious family includes one named Delicious Heavy, a bold variant which is unfortunately marked as having normal weight. Because the family name is 'Delicious', fontconfig accidentally selects this font instead of the normal weight variant. The fix here rewrites the scanned data by running the scanned pattern through a new substitution sequence tagged with <match target=scan>; a sample for the Delicious family is included to demonstrate how it works (and fix Delicious at the same time). Also added was a new match predicate -- the 'decorative' predicate which is automatically detected in fonts by searching style names for key decorative phrases like SmallCaps, Shadow, Embosed and Antiqua. Suggestions for additional decorative key words are welcome. This should have little effect on font matching except when two fonts share the same characteristics except for this value.
* Allow font caches to contain newer version numbersKeith Packard2006-09-021-2/+2
| | | | | | Use the version number inside the cache file to mark backward compatible changes while continuing to reserve the filename number for incompatible changes.
* Unify directory canonicalization into FcStrAddFilename.Keith Packard2006-09-024-28/+17
| | | | | | Instead of making filename canonicalization occur in multiple places, it occurs only in FcStrAddFilename now, as all filenames pass through that function at one point.
* Move Free family names to bottom of respective aliases. (bug 7429)Keith Packard2006-09-011-3/+3
| | | | | | | The FreeSans, FreeSerif and FreeMono fonts cover a large number of languages, but are of generally poor quality. Moving these after fonts which cover specific languages but which have higher quality glyphs should improve font selection.
* Document FC_DEBUG values (bug 6393). Document name \ escape syntax.Keith Packard2006-09-011-2/+38
| | | | | | Limited FC_DEBUG documentation (just shows values and vague idea of what they're related to). Also document \ escape syntax for font names, including how family name and values have different escape requirements.
* Guess that mac roman names with lots of high bits are actually SJIS.Keith Packard2006-09-011-17/+64
| | | | | | | Many Japanese fonts incorrectly include names tagged as Roman encoding and English language which are actually Japanese names in the SJIS encoding. Guess that names with a large number of high bits set are SJIS encoded Japanese names rather than English names.
* Prefer Bitstream Vera to DejaVu families.Keith Packard2006-09-011-5/+6
| | | | | | | DejaVu is a modified version of Bitstream Vera that covers significantly more languages, but does so with spotty quality, lacking hinting for many glyphs, especially for the synthesized serif oblique face. Use Bitstream Vera (where installed).
* Fonts matching lang not territory should satisfy sort pattern lang.Keith Packard2006-09-011-1/+1
| | | | | | A pattern specifying 'Chinese' (:lang=zh) without a territory should be satisfied by any font supporting any Chinese lang. The code was requiring that the lang tags match exactly, causing this sort to fail.
* Really only rebuild caches for system fonts at make install time.Keith Packard2006-09-011-1/+1
| | | | Oops. Fix actual fc-cache command line instead of just the displayed version.
* Add Assamese orthography (as.orth). Bug #8050Keith Packard2006-09-012-1/+29
| | | | | Behdad Esfahbod says Assamese is the same as Bengali, so this just uses bn.orth.
* Chinese/Macau needs the Hong Kong orthography instead of Taiwan (bug 7884)Keith Packard2006-09-011-2/+7
| | | | | | | | | | From Abel Cheung: Currently zh_mo.orth includes zh_tw.orth, which means it is assumed Macau only uses traditional Chinese characters used in Taiwan; however that is wrong, as a majority of Macau people speaks Cantonese too, and also uses additional traditional Chinese chars from Hong Kong (there are already some place names that can't be represented in just chars used in Taiwan). So it should include zh_hk.orth instead.
* Avoid #warning directives on non-GCC compilers. (bug 7683)Keith Packard2006-09-012-1/+5
| | | | Detect GCC and use #warning only on GCC systems.
* Add @EXPAT_LIBS@ to Libs.private in fontconfig.pc (bug 7683)Keith Packard2006-09-011-0/+1
| | | | | Linking against fontconfig requires expat on systems without chained shared library dependencies.
* Fix memory leaks in fc-cache directory cleaning code.Keith Packard2006-09-011-0/+9
| | | | valgrind found a few leaks in the new cache cleaning code.
* Only rebuild caches for system fonts at make install time.Keith Packard2006-09-011-1/+1
| | | | | Rebuilding user-specific fonts will stick those cache files in the system font cache directory.
* Add some ignoresKeith Packard2006-09-011-0/+2
|
* Fontset pattern references are relative to fontset, not array.Keith Packard2006-09-011-1/+1
| | | | | | Within a fontset, the patterns are stored as pointers in an array. When stored as offsets, the offsets are relative to the fontset object itself, not the base of the array of pointers.
* Fix fc-lang to use new charset freezer API.Keith Packard2006-09-013-18/+29
| | | | | | Charset freezer api now uses allocated object. Also required minor fixes to charset freezer code to remove assumption that all input charsets are persistant.
* Pass directory information around in FcCache structure. Freeze charsets.Keith Packard2006-09-0111-771/+702
| | | | | | | | | Instead of passing directory information around in separate variables, collect it all in an FcCache structure. Numerous internal and tool interfaces changed as a result of this. Charsets are now pre-frozen before being serialized. This causes them to share across multiple fonts in the same cache.
* Remove stale architecture signatures.Keith Packard2006-09-011-4/+3
| | | | All but x86 are known to be wrong.
* Allow FcTypeLangSet to match either FcTypeLangSet or FcTypeString.Keith Packard2006-08-311-0/+4
| | | | | Applications explicitly setting FC_LANG with string would fail due to typechecking disallowing this case.
* Change $(pkgcachedir) to $(fc_cachedir) in fc-cat and fc-cache Makefile.amKeith Packard2006-08-312-6/+2
| | | | | make distcheck caught this bug; the effect of 'make uninstall' would have been to execute 'rm -rf /', somewhat less that desirable.
* Revert ABI changes from version 2.3Keith Packard2006-08-315-23/+28
| | | | | Accidental ABI changes and additions were discovered by looking at the differences in fontconfig.h. All of those have been reverted.
* With no args, fc-cat now dumps all directories.Keith Packard2006-08-313-33/+104
| | | | | | | Automatically list all font directories when no arguments are given to fc-cat. Also add -r option to recurse from specified cache directories. fc-cat also now prints the cache filename in verbose mode, along with the related directory name.
* Automatically remove invalid cache files.Keith Packard2006-08-315-8/+135
| | | | | Cache files for missing or more recently modified directories are automatically removed at the end of every fc-cache run.
* Serialized value lists were only including one value.Keith Packard2006-08-311-0/+1
| | | | | The next pointer in the serialized value list wasn't getting set, so they were truncated at a single value.
* Use intptr_t instead of off_t inside FcCache structure.Keith Packard2006-08-302-2/+1
| | | | This avoids OS-dependencies in the cache file structure.
* Fix fc-cat again. Sigh.Keith Packard2006-08-303-24/+41
| | | | Internal interfaces in cache management changed again...
* Skip broken caches. Cache files are auto-written, don't rewrite in fc-cache.Keith Packard2006-08-308-181/+169
| | | | | | | | | | | | | | | | | Validate cache contents and skip broken caches, looking down cache path for valid ones. Every time a directory is scanned, it will be written to a cache file if possible, so fc-cache doesn't need to re-write the cache file. This makes detecting when the cache was generated a bit tricky, so we guess that if the cache wasn't valid before running and is valid afterwards, the cache file was written. Also, allow empty charsets to be serialized with null leaves/numbers. Eliminate a leak in FcEdit by switching to FcObject sooner. Call FcFini from fc-match to make valgrind happy.
* Rework Object name database to unify typechecking and object lookup.Keith Packard2006-08-305-187/+233
| | | | | | Eliminate ancient list of object name databases and load names into single hash table that includes type information. Typecheck all pattern values to avoid mis-typed pattern elements.
* FcCharSetSerialize was using wrong offset for leaves. Make fc-cat work.Keith Packard2006-08-306-75/+110
| | | | | | | | | FcCharSetSerialize was computing the offset to the unserialized leaf, which left it pointing at random data when the cache was reloaded. fc-cat has been updated to work with the new cache structure. Various debug messages extended to help diagnose serialization errors.
* Fix build problems caused by cache rework.Keith Packard2006-08-304-13/+165
| | | | | | | | Pagesize no longer matters in architecture decisions, the entire cache file is mmaped into the library. However, lots of intptr_t values are in use now, so that value is important. fc-lang now requires fcserialize.c, which has been added to the repository.
* Rework cache files to use offsets for all data structures.Keith Packard2006-08-3018-2259/+1394
| | | | | | | | | | | | | Replace all of the bank/id pairs with simple offsets, recode several data structures to always use offsets inside the library to avoid conditional paths. Exposed data structures use pointers to hold offsets, setting the low bit to distinguish between offset and pointer. Use offset-based data structures for lang charset encodings; eliminates separate data structure format for that file. Much testing will be needed; offsets are likely not detected everywhere in the library yet.
* Revert to original FcFontSetMatch algorithm to avoid losing fonts.Keith Packard2006-08-281-197/+32
| | | | | | | | The fancy new FcFontSetMatch algorithm would discard fonts for the wrong reasons; fc-match sans:lang=en,ja would discard all fonts without Japanese support. This commit reverts to the original algorithm which ensure that FcFontSetMatch always matches the first font in the FcFontSetSort return list.
* Add ppc architectureKeith Packard2006-08-281-0/+1
|
* During test run, remove cache directory to avoid stale cache usage.Keith Packard2006-08-282-4/+1
| | | | | | | As file timestamps have only one second granularity, an old cache file could easily be used when a test took less than 1 second to run. Just remove the cache directory and its contents before each test is run. Also, remove mention of the old cache file from the test config file.
* Add x86-64 architecture and signature.Keith Packard2006-08-281-0/+1
|
* Regenerate x86 line in fcarch.tmpl.h to match change in cache data.Keith Packard2006-08-283-3/+2
| | | | Also remove spurious printf of directory names.
* Eliminate ./ and ../ elements from font directory names when scanning.Keith Packard2006-08-273-15/+90
| | | | | | FcStrCanonFilename eliminates ./ and ../ elements from pathnames through simple string editing. Also, relative path names are fixed by prepending the current working directory.
* Fix up fc-cache and fc-cat for no global cache changes.Keith Packard2006-08-275-139/+76
| | | | | fc-cache and fc-cat use internal (fcint.h) APIs that have changed with the elimination of the global cache.
* Eliminate global cache. Eliminate multi-arch cache code.Keith Packard2006-08-275-1108/+203
| | | | | | | With the removal of the in-directory cache files, and the addition of per-user cache directories, there is no longer any reason to preserve the giant global cache file. Eliminating of this unifies the cache structure and simplifies the overall caching strategies greatly.
* Add architecture to cache filename.Keith Packard2006-08-271-2/+3
| | | | | Make cache filenames unique by inserting the architecture name into the filename.