]> git.wh0rd.org - fontconfig.git/blame - ChangeLog
Add -r --really-force option which blows away cache files and then
[fontconfig.git] / ChangeLog
CommitLineData
d2c01029
PL
12006-02-16 Patrick Lam <plam@mit.edu>
2 * fc-cache/fc-cache.c (usage, scanDirs, main):
3
4 Add -r --really-force option which blows away cache files and then
5 regenerates them.
6
719f4b84
PL
72006-02-16 Patrick Lam <plam@mit.edu>
8 * src/fccache.c (FcDirCacheUnlink, FcCacheCopyOld, FcDirCacheWrite):
9
10 Don't bail if fontconfig can't remove a dir cache file.
11 Skip the ID of a cache file when copying.
12 Eliminate 'source file too small' bug in FcDirCacheWrite.
13
f8a17f32
PL
142006-02-13 Patrick Lam <plam@mit.edu>
15 * src/fcfreetype.c (FcFreeTypeQuery):
16
17 Fix memory leak in error condition code.
18
5657098e
PL
192006-02-13 Mike Fabian <mfabian@suse.de>
20 reviewed by: plam
21 * src/fcfreetype.c (FcFreeTypeQuery):
22
23 Skip bitmap fonts which can't even get it together enough to
24 declare a family name; this appears to reproduce previous
25 fontconfig behaviour.
26
d00c3cb5
PL
272006-02-10 Takashi Iwai <tiwai@suse.de>
28 reviewed by: plam
29 * src/fccache.c (FcDirCacheOpen):
30
31 Try to open /var/cache/fontconfig/[hashed name] before
32 fonts.cache-2 in a directory, because /var/cache/fontconfig
33 failures ought to be fixable, unlike fonts.cache-2 failures,
34 which may leave you screwed.
35
9e07e0a7
PL
362006-02-10 Takashi Iwai <tiwai@suse.de>
37 reviewed by: plam
38 * src/fcmatch.c (FcFontSetMatch):
39
40 Use a tri-state to mark the fonts which didn't get blocked but
41 were just missing an element, to distinguish them from the
42 fonts that do match the element.
43
f11a1841
PL
442006-02-10 Takashi Iwai <tiwai@suse.de>
45 reviewed by: plam
46 * src/fcmatch.c (FcFontSetMatch):
47
48 Don't kill fonts because they don't declare an element that's
49 being matched on.
50
c7490074 512006-02-09 Patrick Lam <plam@mit.edu>
879af706
PL
52 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
53 FcDirCacheUnlink, FcDirCacheOpen, FcDirCacheWrite):
c7490074 54
879af706
PL
55 Define and pass O_BINARY to open if appropriate, for those
56 platforms that need it. Reported by Doodle.
c7490074 57
a8c42530
PL
582006-02-09 Patrick Lam <plam@mit.edu>
59 * src/fccharset.c (FcCharSetNeededBytes, FcCharSetSerialize,
60 FcCharSetGetLeaf):
61
62 Fix problem with missing 'en' due to euro.patch: change
63 cache file format slightly to coincide with that generated
64 by fc-lang.
65
b10e7762
PL
662006-02-07 Patrick Lam <plam@mit.edu>
67 * src/fccache.c (FcCacheReadDirs):
68
69 Fix warning.
70
5c3deb29
PL
712006-02-07 Patrick Lam <plam@mit.edu>
72 * src/fcdir.c (FcDirScanConfig):
73
74 Don't reject dirs that can't be normalized (fixes lilypond, and
75 is correct in the context of application font directories.)
76
772006-02-07 Takashi Iwai <tiwai@suse.de>
78 reviewed by: plam
79
80 * src/fccache.c (FcCacheReadDirs):
81
82 Use normalized directory name exclusively in FcCacheReadDirs.
83
efb11b36
PL
842006-02-07 Dirk Mueller <dmueller@suse.com>
85 reviewed by: plam
86
87 * src/fcpat.c (FcValueHash, FcValueListHash, FcValueListEntCreate):
88
89 Perf optimizations. Inline FcValueCanonicalize,
90 reduce FcValueListPtrU usage, remove redundant cast.
91
6cc02fe6
PL
922006-02-07 Takashi Iwai <tiwai@suse.de>
93 reviewed by: plam
94
95 * src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
96 * fc-lang/fc-lang.c:
97
98 Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf.
99 Declare extern for static arrays as arrays, not pointers.
100 (Part of the fix for 'fonts don't have en' issue after Euro patch.)
101
1022006-02-07 Dirk Mueller <dmueller@suse.com>
103 reviewed by: plam
104
105 * fc-lang/de.orth:
106 * fc-lang/el.orth:
107 * fc-lang/en.orth:
108 * fc-lang/es.orth:
109 * fc-lang/fi.orth:
110 * fc-lang/fr.orth:
111 * fc-lang/it.orth:
112 * fc-lang/nl.orth:
113 * fc-lang/pt.orth:
114
115 Add Euro sign to list of symbols required by European languages.
116
a81f23c0
PL
1172006-02-07 Patrick Lam <plam@mit.edu>
118 * src/fccache.c (FcCacheReadString):
119
120 Fix hidden variable warning.
121
799157db 1222006-02-07 Dirk Mueller <dmueller@suse.com>
a81f23c0 123 reviewed by: plam
799157db
PL
124
125 * src/fccache.c (FcCacheReadString, FcCacheSkipString):
126
127 Remove de-escaping logic because FcCacheWriteString
128 doesn't escape anyway. Do blockwise reading instead
129 of byte-wise for performance.
130
8b413bb6
PL
1312006-02-06 Patrick Lam <plam@mit.edu>
132 Takashi Iwai <tiwai@suse.de>
133
134 * src/fccache.c (FcCacheReadDirs, FcCacheRead):
135
136 Don't loop infinitely on recursive symlinks (client-side).
137
660acf8f
PL
1382006-02-06 Takashi Iwai <tiwai@suse.de>
139 reviewed by: plam
140 * fc-cache/fc-cache.c (scanDirs, main):
141
142 Don't loop infinitely on recursive symlinks.
143
fff5a5af
PL
1442006-02-06 Takashi Iwai <tiwai@suse.de>
145 reviewed by: plam
146 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheReadDir,
147 FcGlobalCacheDirFind, FcGlobalCacheUpdate,
148 FcGlobalCacheSave, FcCacheReadDirs):
149 * src/fcint.h:
150
151 Skip subdirs when skipping over stale bits of global cache.
152 Introduce state machine into FcGlobalCacheDir to avoid
153 doing inappropriate operations on global dir entries, e.g.
154 writing out an out-of-date cache entry.
155
98592bbb
PL
1562006-02-06 Takashi Iwai <tiwai@suse.de>
157 reviewed by: plam
158 * src/fcdir.c (FcFileScanConfig):
159
160 Hoist FcFileIsDir check out of FcFileScanConfig loop.
161
a0aa54f6
PL
1622006-02-06 Takashi Iwai <tiwai@suse.de>
163 reviewed by: plam
164
165 * src/fccfg.c (FcConfigInodeMatchFontDir, FcConfigAddFontDir,
166 FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
167
168 Don't rescan when trying to normalize a non-declared font dir.
169 Don't add font dirs multiple times (even if they're aliased).
170
86e75dfb
PL
1712006-02-06 Dirk Mueller <dmueller@suse.de>
172 reviewed by: plam
173
174 * src/fcfs.c (FcFontSetUnserialize):
175
176 Explain apples/oranges comparison and fix compilation error.
177
f076169d
PL
1782006-02-06 Dirk Mueller <dmueller@suse.de>
179 reviewed by: plam
180
181 * src/fcfs.c (FcFontSetUnserialize):
182
183 Insert check for integer overflow in # of fonts.
184
788c4af2
PL
1852006-02-04 Behdad Esfahbod <behdad@cs.toronto.edu>
186 reviewed by: plam
187
188 * doc/Makefile.am:
189 * fc-cache/Makefile.am:
190 * fc-cat/Makefile.am:
191 * fc-list/Makefile.am:
192
193 Make 'make distcheck' work with automake 1.6.3.
194
68355f38
PL
1952006-02-03 Takashi IWAI <tiwai@suse.de>
196 reviewed by: plam
197
198 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main,
199 FcCacheFileRead):
200
201 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
202 FcDirCacheConsume, FcDirCacheWrite)
203 * src/fcxml.c (FcConfigMessage):
204
205 Check I/O call return values and eliminate unused variable
206 warnings.
207
c4c47a76
PL
2082006-02-03 Takashi Iwai <tiwai@suse.de>
209 reviewed by: plam
210
211 * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
212
213 Fix memory leak.
214
a8e4d9eb
PL
2152006-02-03 Dirk Mueller <dmueller@suse.de>
216 reviewed by: plam
217
218 * src/fcfs.c (FcFontSetUnserialize):
219
220 Gracefully handle the case where a cache asserts that it
221 has a negative number of fonts, causing overflow.
222
1af0f574
PL
2232006-02-03 Patrick Lam <plam@mit.edu>
224 * src/fccache.c (FcDirCacheUnlink):
225
226 Fix double free in error case.
227
80ba0571
PL
2282006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
229 Stephan Kulow <coolo@suse.de>
230 reviewed by: plam
231
232 * fc-cache/Makefile.am:
233
234 Replace 'stamp' target with mkinstalldirs.
235
28aefd01
PL
2362006-01-31 Mike Fabian <mfabian@suse.de>
237 reviewed by: plam
238
239 * src/fccache.c (FcGlobalCacheLoad):
240
241 Toast broken global cache files.
242
3616cbe2
PL
2432006-01-30 Patrick Lam <plam@mit.edu>
244 * src/fccache.c (FcGlobalCacheReadDir):
245
246 Actually use the directories that I added to the global cache.
247 Fixes 'make check'.
248
275cf6cd
PL
2492006-01-30 Mike Fabian <mfabian@suse.de>
250 reviewed by: plam
251
252 * fc-cache/fc-cache.c (scanDirs):
253
254 Don't stop scanning if a directory in fonts.conf doesn't
255 exist, because subsequent directories might exist.
256
81d97094
PL
2572006-01-30 Patrick Lam <plam@mit.edu>
258 * src/fccache.c (FcGlobalCacheLoad):
259
260 Make global cache work again after putting dir names into global
261 cache (I misplaced the recording of a file offset).
262
2c4e0124
PL
2632006-01-30 Patrick Lam <plam@mit.edu>
264 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
265
266 Update fc-cat to handle subdir lists in global cache file.
267
268 * src/fccache.c (FcGlobalCacheLoad):
269
270 Another FcCacheReadString return value check.
271
c5411c4c
PL
2722006-01-30 Mike Fabian <mfabian@suse.de>
273 reviewed by: plam
274
275 * src/fccache.c (FcGlobalCacheLoad, FcDirCacheUnlink
276 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
277
278 Make fccache more resilient to broken cache files by checking
279 return value of FcCacheReadString all the time.
280
946478e1
PL
2812006-01-30 Frederic Crozat <fcrozat@mandriva.com>
282 reviewed by: plam
283
284 * fc-match/fc-match.1:
285 * fc-lang/fc-lang.man:
286
287 Remove references to dead fontconfig(3) manpages in
288 other fontconfig manpages.
289
af7a965f
PL
2902006-01-29 Behdad Esfabod <behdad@cs.utoronto.edu>
291 reviewed by: plam
292
293 * doc/fcpattern.fncs:
294
295 Fix world's tiniest typo in code example.
296
30c4189d
PL
2972006-01-29 Mike Fabian <mfabian@suse.de>
298 reviewed by: plam
299
300 * src/fccache.c (FcGlobalCacheReadDir):
301
302 Fix global cache reads of subdirectories.
303
971cf180
PL
3042006-01-29 Patrick Lam <plam@mit.edu>
305 * doc/fcconfig.fncs:
306 Add documentation for FcConfigNormalizeFontDir.
307
308 * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
309 FcGlobalCacheUpdate, FcGlobalCacheSave):
310 * src/fcdir.c (FcDirScanConfig):
311 * src/fcint.h:
312
313 Write directory information to global caches to fix make check
314 (reported by Ronny V. Vindenes). This changes the global cache
315 format again.
316
97293e07
PL
3172006-01-27 Patrick Lam <plam@mit.edu>
318 * fc-cache/fc-cache.c (scanDirs):
319 * fontconfig/fontconfig.h:
320 * src/fcint.h:
321 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
322
323 Move FcConfigNormalizeFontDir call so that it doesn't result in
324 infinite recursion (reported by Ronny V. Vindenes).
325
3cf9f5ce
PL
3262006-01-26 Patrick Lam <plam@mit.edu>
327 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
328 * src/fccfg.c (FcConfigNormalizeFontDir):
329
330 Add a couple of missing normalizations to make fc-cache work
331 right; only scan subdirectories once.
332
4073203d
PL
3332006-01-26 Mike Fabian <mfabian@suse.de>
334 reviewed by: plam
335
336 * src/fcacache.c (FcGlobalCacheReadDir):
337
338 Don't crash on non-existant directories in global cache.
339
719f4b84 3402006-01-26 Patrick Lam <plam@mit.edu>
f468f568
PL
341 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
342 * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
343 * src/fcdir.c (FcDirScanConfig):
344 * src/fcxml.c (FcEndElement):
345
346 Stop trampling the directory name when writing out caches.
347 (with Mike Fabian:) Beef up FcConfigNormalizeFontDir to scan
348 subdirs when necessary. Don't scan directories that can't be
349 normalized.
350
575a37b7
PL
3512006-01-25 Patrick Lam <plam@mit.edu>
352 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
353 * src/fccfg.c (FcConfigEvaluate):
354 * src/fcfreetype.c (FcPatternAddWithBinding):
355
356 Fix additional memory leaks reported by Ronny V. Vindenes: don't
357 invoke FcValueSave on hashed static strings in
358 FcPatternAddWithBinding.
359
360 Add another st_dev check in FcDirCacheOpen.
361
16a71eff
PL
3622006-01-24 James Su <james.su@gmail.com>
363 reviewed by: plam
364
365 * src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
366 * fc-lang/zh_hk.orth:
367
368 Treat zh-hk fonts differently from zh-tw fonts. This patch may
369 cause fontconfig to treat A-X fonts differently from A-Y fonts;
370 please mail the fontconfig list if this causes any problems.
371
6f9fcb51
PL
3722006-01-24 Patrick Lam <plam@mit.edu>
373 * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
374 * src/fcfreetype.c (FcFreeTypeQuery):
375
376 Fix memory leaks reported by Ronny V. Vindenes.
377
986e3597
PL
3782006-01-19 Andreas Schwab <schwab@suse.de>
379 reviewed by: plam
380
381 * src/fcpat.c (FcStrNeededBytes):
382
383 Fix for unaligned memory accesses.
384
58bdd296
PL
3852006-01-18 Mike Fabian <mfabian@suse.de>
386 reviewed by: plam
387
388 * src/fcdir.c (FcDirScanConfig):
389
390 Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
391 calls to avoid crashes.
392
986e3597 3932006-01-14 Patrick Lam <plam@mit.edu>
eadadf48
PL
394 * src/fccache.c (FcDirCacheConsume):
395
396 Fix segfault when consuming zero-length caches in fc-cat
397 (which has no config, so FcConfigAddFontDir shouldn't be called.)
398
8a0b0ed6
PL
3992006-01-14 Patrick Lam <plam@mit.edu>
400 * fc-cache/fc-cache.c (scanDirs):
401 * fontconfig/fontconfig.h:
402 * src/fccache.c (FcGlobalCacheReadDir, FcGlobalCacheUpdate,
403 FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen):
404 * src/fccfg.c (FcConfigBuildFonts, FcConfigNormalizeFontDir):
405 * src/fcdir.c (FcDirScanConfig):
406 * src/fcint.h:
407
408 Compare device numbers as well as inodes.
409 Always normalize directory names before comparing them.
410
4112006-01-11 Mike Fabian <mfabian@suse.de>
412 reviewed by: plam
413
414 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
415
416 Allocate extra space for appended '/' in directory name.
417
df3efc11
PL
4182006-01-10 Patrick Lam <plam@mit.edu>
419 * src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
420 FcDirCacheValid, FcDirCacheHasCurrentArch,
421 FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
422 * fc-cache/fc-cache.c (main):
423
424 Explicitly add font dirs to config.fontDirs even if they're empty.
425 Set current config in fc-cache.c.
426 Fix treatment of cache directory as read from cache file; don't
427 use string equality to determine if we have the right file,
428 use inode equality.
429
cd9bca69
PL
4302006-01-09 Patrick Lam <plam@mit.edu>
431 * fc-cache/fc-cache.c (scanDirs):
432 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
433 * src/fccache.c (FcGlobalCacheReadDir, FcCacheReadDirs,
434 FcDirCacheRead, FcDirCacheConsume, FcDirCacheWrite):
435 * src/fccfg.c (FcConfigNormalizeFontDir):
436 * src/fcdir.c (FcDirScanConfig):
437 * src/fcint.h:
438
439 Normalize font dirs by using the form, as given in fonts.conf, and
440 recorded in FcConfig's fontDirs string set, as canonical.
441
442 Actually update config.fontDirs as font directories are scanned.
443
a6d3757d
PL
4442006-01-08 James Su <james.su@gmail.com>
445 * src/fcmatch.c (FcFontSetMatch):
446
447 Fix matching bug when multiple elements match; don't use
448 the sum of all scores, but the best score.
449
450 Also more perf opts, e.g. evaluate best over all font sets
451 rather than on a per-set basis (and other changes).
452
05a98eaf
PL
4532006-01-08 Patrick Lam <plam@mit.edu>
454 * src/fccache.c (FcDirCacheConsume):
455
456 Properly skip past dir caches that contain zero fonts (as occurs
457 in global caches.) Reported by Mike Fabian.
458
5fe09702
PL
4592006-01-06 Patrick Lam <plam@mit.edu>
460 * src/fcdbg.c (FcPatternPrint):
461
462 Print out full pathname in fc-match -v as well. Reported by
463 Frederic Crozat.
464
4652006-01-06 Mike Fabian <mfabian@suse.de>
466 reviewed by: plam
467
468 * src/fcname.c (FcNameParse):
469
470 Fix bug where fc-match crashes when given __DUMMY__ property to
471 match on.
472
473 (I added the __DUMMY__ string to enable callers of
474 FcObjectToPtrLookup to distinguish an error return from a
475 successful return. -PL)
476
c60ec7cc
PL
4772006-01-05 Patrick Lam <plam@mit.edu>
478 * AUTHORS:
479
480 Add self to AUTHORS list.
481
482 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint,
483 FcCacheFileRead, FcCachePrintSet, main):
484 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate,
485 FcGlobalCacheSave, FcCacheNextOffset,
486 FcDirCacheHasCurrentArch, FcDirCacheRead,
487 FcDirCacheConsume, FcDirCacheWrite):
488 * src/fcint.h:
489 * src/fcpat.c (comment):
490
491 Minor change to global cache file format to fix fc-cat bug
492 reported by Frederic Crozat, and buglet with not globally caching
493 directories with zero fonts cached.
494
52ac91f7
PL
4952006-01-02 Lubos Lunak <l.lunak@suse.cz>
496 reviewed by: plam
497
498 * src/fccfg.c (FcConfigEvaluate):
499
500 Fix double-free which occurs because FcValueCanonicalize doesn't
501 create an extra copy of the returned value, it only canonicalizes
502 it.
503
5042006-01-02 Patrick Lam <plam@mit.edu>
cea78a87
PL
505 * doc/fontconfig-user.sgml:
506
507 Fix version of .cache file (currently 1 -> currently 2). Reported
508 by Jim Osborn.
509
ebc157f9
PL
5102005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
511 reviewed by: plam
512
513 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
514
515 Shut up GCC warnings on amd.
516
3bfae75d
PL
5172005-12-20 Patrick Lam <plam@mit.edu>
518 * ChangeLog:
519 * README:
520 * configure.in:
521 * fontconfig/fontconfig.h:
522
523 Bump version to 2.3.93.
524
19ea60bc
PL
5252005-12-20 Patrick Lam <plam@mit.edu>
526 * src/fccharset.c (FcLangCharSetPopulate):
527 * src/fcint.h (FcCacheBankToIndex):
528
529 Avoid check on _fcBankId nullness and fix case where it used to
530 crash.
531
6f767cec 5322005-12-20 Patrick Lam <plam@mit.edu>
3bfae75d
PL
533 * src/fcxml.c (FcConfigParseAndLoad):
534
535 Use open instead of fopen (requested by Phil Race for Sun).
536
5372005-12-20 Patrick Lam <plam@mit.edu>
538 * src/fccache.c (FcDirCacheWrite);
539 * fc-cache/Makefile.am:
540
541 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
542 dir.
543
5442005-12-20 Patrick Lam <plam@mit.edu>
6f767cec
PL
545 * src/fcfreetype.c (FcFreeTypeQuery):
546
547 Restore code to skip over PCF fonts that have no encoded
548 characters.
549 (We guess that a font is PCF by presence of the PIXEL_SIZE
550 BDF property.)
551
ec760b17
PL
5522005-12-12 Patrick Lam <plam@mit.edu>
553 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
554
555 Read and write the original location as a fallback for the
556 hashed cache file locations. This is mostly for users to be
557 able to have per-directory cache files.
558
83b67390
PL
5592005-12-12 Patrick Lam <plam@mit.edu>
560 * fc-cache/fc-cache.c (scanDirs):
561 * fc-cache/Makefile.am:
562 * src/fccache.c (FcDirCacheHashName):
563
564 Improve error message when fc-cache can't write the cache. Add
565 missing slash. Reported by Behdad. Incorporate Behdad's patch to
566 create /var/cache/fontconfig when appropriate.
567
368104c3
PL
5682005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
569 reviewed by: plam
570
571 * src/fcxml.c (FcConfigGetAttribute):
572
573 Fix crash reported by Frederic Crozat when using libxml2.
574
ea44e218
PL
5752005-12-09 Patrick Lam <plam@mit.edu>
576 * INSTALL:
577 * configure.in:
578 * fc-cache/Makefile.am:
579 * fc-cat/Makefile.am:
580 * src/Makefile.am:
581 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
582 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
583 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
584 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
585 FcDirCacheHasCurrentArch, FcDirCacheHashName,
586 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
587
588 Migrate cache files from fonts directories to
589 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
590 but requires that all caches get rebuilt.
591
592 Also, autogen.sh now needs the additional parameter
593 --localstatedir=/var.
594
204da5a8
PL
5952005-12-07 Patrick Lam <plam@mit.edu>
596 * src/fcpat.c (FcPatternAddString):
597
598 Because we've changed FcPatternAddString to use FcStrStaticName
599 and not FcValueSave, explicitly handle the case of a null string.
600
982b5982
PL
6012005-12-06 Patrick Lam <plam@mit.edu>
602 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
603
604 Fix warnings.
605
c6103dfb
PL
6062005-12-05 Patrick Lam <plam@mit.edu>
607 * src/fcname.c (FcNameGetObjectType):
608
609 Don't assign types to user object names.
610
9ede93f1
PL
6112005-12-05 Patrick Lam <plam@mit.edu>
612 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
613
614 Don't free strings that have been returned from FcStrStaticName.
615
6059daed
PL
6162005-12-01 Patrick Lam <plam@mit.edu>
617 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
618
619 Add codepath for reading global cache files as well.
620
2c6fead7
PL
6212005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
622 reviewed by: plam
623
624 * conf.d/10-fonts.persian.conf:
625 * conf.d/Makefile.am:
626
627 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
628
6292005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
cb6d97eb
PL
630 reviewed by: plam
631
632 * src/fcxml.c (FcConfigParseAndLoad):
633
634 Only add a config file to the set of config files once.
635
93a27747
PL
6362005-11-29 Patrick Lam <plam@mit.edu>
637 * src/fcint.h (FcCacheBankToIndex);
638
639 Fix segfault by guarding array dereference.
640
b8948e85
PL
6412005-11-29 Dirk Mueller <dmueller@suse.de>
642 reviewed by: plam
643
644 * fc-lang/fc-lang.c:
645 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
646 FcCacheBankToIndex, FcCacheBankToIndexMTF,
647 FcCacheAddBankDir):
648 * src/fcint.h:
649
650 Refactor FcCacheBankToIndex into an inlineable part
651 (in fcint.h) which checks the front of the list and a
652 non-inlineable part which finds and moves the appropriate element
653 to the front of the list.
654
9fad72ab
PL
6552005-11-29 Patrick Lam <plam@mit.edu>
656 * src/fccfg.c (FcConfigBuildFonts):
657 * src/fccache.c (FcCacheReadDirs):
658
659 Make the perf guys hate me a bit less: hoist the directory-name
660 FcConfigAcceptFont check for cached fonts up to directory cache
661 read time, rather than running it for each font.
662
51af0509
PL
6632005-11-29 Patrick Lam <plam@mit.edu>
664 * src/fccfg.c (FcConfigBuildFonts):
665 * src/fcint.h:
666 * src/fcpat.c (FcPatternFindFullFname):
667
668 Don't make FcPatternFindFullFname available to fccfg, it's not
669 really safe. Instead go through FcPatternGetString (sorry,
670 perf guys.) Also, use globs for dirs as well.
671
e0421d02
PL
6722005-11-28 Patrick Lam <plam@mit.edu>
673 * src/fccfg.c (FcConfigBuildFonts):
674
675 Fix segfault.
676
ced3f0a0
PL
6772005-11-28 Patrick Lam <plam@mit.edu>
678 * src/fcint.h:
679 * src/fcpat.c (FcPatternFindFullFname):
680 * src/fccfg.c (FcConfigBuildFonts):
681
682 Fix problem dating back at least to 2.3.2 where globs weren't
683 being applied to patterns loaded from a cache.
684
6852005-11-28 Patrick Lam <plam@mit.edu>
686 * doc/fontconfig-user.sgml:
687
688 Fix some obvious spelling mistakes.
689
1ed98a0c
PL
6902005-11-28 Dirk Mueller <dmueller@suse.com>
691 Stephan Kulow <coolo@suse.de>
692 reviewed by: plam
693
694 * src/fcmatch.c (FcFontSetMatch):
695
696 Don't kill all fonts during match (oops!)
697
698
6992005-11-25 Dirk Mueller <dmueller@suse.com>
700 Stephan Kulow <coolo@suse.de>
701 Michael Matz <matz@suse.de>
702 reviewed by: plam
703
704 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
705 FcFontSetMatch):
706
707 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
708 inline FcCompare into FcFontSetMatch and reorder the
709 loops, adding a boolean array which blocks patterns from future
710 consideration if they're known to not be best on some past
711 criterion.
712
200a44fe
PL
7132005-11-26 Dirk Mueller <dmueller@suse.com>
714 reviewed by: plam
715
716 * src/fcmatch.c (FcCompareValueList):
717
718 Fix incorrect merge.
719
cbe1df81
PL
7202005-11-25 Patrick Lam <plam@mit.edu>
721 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
722
723 Don't do random matching when bad objects are passed into
724 FcCompareValueList.
725
81fe99fd
PL
7262005-11-25 Patrick Lam <plam@mit.edu>
727 * src/fcint.h:
728 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
729 FcPatternSerialize, FcPatternUnserialize,
730 FcValueListEnsureBank, FcValueListDistributeBytes,
731 FcValueListUnserialize):
732
733 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
734 _fcPatternElts, _fcValueLists for consistency.
735
d854eaf8
PL
7362005-11-25 Dirk Mueller <dmueller@suse.com>
737 reviewed by: plam
738
739 * src/fcmatch.c:
740
741 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
742
61571f3f
PL
7432005-11-25 Patrick Lam <plam@mit.edu>
744 * src/fcint.h:
745 * src/fccache.c (FcDirCacheConsume):
746 * src/fccharset.c (FcCharSetUnserialize):
747 * src/fcfs.c (FcFontSetUnserialize):
748 * src/fclang.c (FcLangSetUnserialize):
749 * src/fcname.c (FcObjectUnserialize):
750 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
751 FcPatternUnserialize):
752
753 Pass around FcCache *s to the Unserialize functions for extra
754 consistency (and less overhead, for what that's worth).
755
9ab79bdf
PL
7562005-11-24 Dirk Mueller <dmueller@suse.com>
757 reviewed by: plam
758
759 * src/fcint.h:
760 * src/fcmatch.c (FcCompare*, FcFontSetSort):
761 * src/fcname.c (FcNameUnparseValue):
762
763 Inline the *PtrU functions to gain perf.
764 Remove unneeded params for the FcCompare* functions.
765
7662005-11-24 Dirk Mueller <dmueller@suse.com>
1c9fdcca
PL
767 reviewed by: plam
768
769 * src/fcint.h, fontconfig/fontconfig.h:
770
771 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
772
773 * src/fcpat.c, src/fcint.h, src/fcname.c:
774
775 Check for type validity during FcPatternAddWithBinding, don't
776 verify type in FcFontMatch, don't call FcCanonicalize here
777 (which always does a deep copy).
778
4f8b266f
PL
7792005-11-24 Dirk Mueller <dmueller@suse.com>
780 reviewed by: plam
781
782 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
783 * src/fcpat.c (FcPatternAddWithBinding):
784
785 Make FcCompareString and FcCompareFamily less expensive.
786 Only add a value for FC_FAMILY if the proposed value is a string.
787
7882005-11-24 Dirk Mueller <dmueller@suse.com>
b97a34b5
PL
789 reviewed by: plam
790
791 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
792 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
793 * src/fcint.h (FcDebug):
794
795 Inline FcDebug invocations and only initialize once, in FcInit*.
796 Improve debug msg in FcPatternPrint.
797
f7c4624f
PL
7982005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
799 reviewed by: plam
800
801 * fontconfig/fontconfig.h:
802 * fc-cat/fc-cat.c:
803
804 Minor code warning cleanups.
805
435fc660
PL
8062005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
807 reviewed by: plam
808
809 * fc-match/fc-match.c (main):
810
811 Make getopt_long accept -s parameter to fc-match as well.
812
adac22f2
PL
8132005-11-21 Dirk Mueller <dmueller@suse.com>
814 reviewed by: plam
815
816 * src/fcmatch.c (FcCompareValueList):
817
818 Manually perform inlining & partial redundancy elimination to
819 reduce calls to FcValueListPtrU.
820
8212005-11-21 Dirk Mueller <dmueller@suse.com>
822 reviewed by: plam
823
824 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
825 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
826
827 Only invoke strlen() when really necessary.
828
8ebf7725
PL
8292005-11-19 Matthias Clasen <mclasen@redhat.com>
830 reviewed by: plam
831
832 * src/Makefile.am:
833 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
834 FcFontCapabilities):
8c24aa6b
PL
835 * src/ftglue.c:
836 * src/ftglue.h:
8ebf7725
PL
837
838 Get rid of the use of freetype internal headers in fcfreetype.c,
839 since those headers will go away with freetype 2.2. Replace with
840 public domain ftglue code from pango. Note that the patch removes
841 some extra error checking in FT_Get_BDF_Property() and comments
842 out the skipping of empty pcf fonts.
843
a151aced
PL
8442005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
845 reviewed by: plam
846
847 * fc-lang/fc-lang.c (main):
848
849 Further fix of patch from 2005-11-04: miscounted numbers count
850 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
851 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
852
853 Removed leafidx_count and numbers_count since they are the same
854 and replaced them with offset_count.
855
8f2a8078
PL
8562005-11-18 Frederic Crozat <fcrozat@mandriva.com>
857 reviewed by: plam
858
859 * fc-cat/fc-cat.c (main):
860
861 Don't crash when fc-cat invoked with no arguments.
862
8632005-11-18 Frederic Crozat <fcrozat@mandriva.com>
864 reviewed by: plam
865
866 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
867
868 Fix invalid read access caused by premature free and
869 GCC4 warnings in libxml2 codepath.
870
8712005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
82912b06
PL
872 reviewed by: plam
873
874 * src/fccfg.c (FcConfigValues):
875
876 List iteration not needed in FcConfigValues, since it's building
877 up the list itself; we can just strip FcVoid elements during
878 construction.
879
38b2ecad
PL
8802005-11-17 Patrick Lam <plam@mit.edu>
881 * src/fccfg.c (FcConfigValues):
882
883 Fix crash on invalid constants in config files (forgot to update
884 a pointer upon list iteration.)
885
f28472fd
PL
8862005-11-17 Frederic Crozat <fcrozat@mandriva.com>
887 reviewed by: plam
888
889 * src/fcxml.c (FcTypecheckExpr):
890
891 Complain about invalid constants in config files.
892
1c5b6345
PL
8932005-11-17 Andreas Schwab <schwab@suse.de>
894 reviewed by: plam
895
896 * src/fccache.c (FcGlobalCacheSave):
897
898 Don't add current_arch_start more than once.
899
9002005-11-16 Patrick Lam <plam@mit.edu>
901 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
902 * src/fcfs.c (FcFontSetUnserialize):
903 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
904 * src/fcpat.c (FcStrUnserialize):
905
906 Fix ordering of ALIGN with respect to saving block_ptr; add
907 another ALIGN to fcfs.c.
908
8e351527
PL
9092005-11-16 Patrick Lam <plam@mit.edu>
910 * src/fccache.c (FcDirCacheProduce)
911
912 Fix case where alignment bytes bumped up metadata->count
913 causing unwarranted failures to write cache files.
914 (Reported by Stephan Kulow).
915
7fd7221e
PL
9162005-11-16 Patrick Lam <plam@mit.edu>
917 * src/fccache.c (FcDirCacheProduce):
918 * src/fccharset.c (FcCharSetDistributeBytes):
919 * src/fcfs.c (FcFontSetDistributeBytes):
920 * src/fcint.h:
921 * src/fclang.c (FcLangSetDistributeBytes):
922 * src/fcname.c (FcObjectDistributeBytes):
923 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
924 FcStrNeededBytes):
925
926 Add *NeededBytesAlign(), which overestimates the padding which is
927 later added by the new ALIGN macro. Fix alignment problems on
928 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
929 version by Andreas Schwab).
930
9312005-11-16 Stephan Kulow <coolo@kde.org>
932 reviewed by: plam
933
934 * src/fccache.c:
935
936 Use sysconf to determine proper PAGESIZE value; this
937 appears to be POSIX-compliant. (reported by Andreas Schwab)
938
82f35f8b
PL
9392005-11-04 Patrick Lam <plam@mit.edu>
940 * fc-lang/fc-lang.c:
941 * src/fccharset.c:
942 * src/fcint.h:
943 * src/fclang.c:
944
945 Fix bug 2878 (excessive relocations at startup for charsets,
946 reported by Ross Burton): fc-lang/fc-lang now creates the
947 static form of the langset, not the dynamic form, so that
948 the charsets should now be in .rodata.
949
50544b13
PL
9502005-11-04 Patrick Lam <plam@mit.edu>
951 * src/fcdir.c (FcDirScanConfig):
952
953 Add test for validity of directory caches that
954 somehow got lost (reported by make distcheck).
955
e6d3e251
PL
9562005-11-04 Patrick Lam <plam@mit.edu>
957 * ChangeLog:
958 * README:
959 * configure.in:
960 * fontconfig/fontconfig.h:
961
962 Bump version to 2.3.92.
963
ea9726b6
PL
9642005-11-02 Patrick Lam <plam@mit.edu>
965 * src/fcpat.c (FcPatternDuplicate):
966
967 Fix argument ordering problem in call to FcPatternTransferFullFname.
968
7358dae4
PL
9692005-11-02 Patrick Lam <plam@mit.edu>
970 * src/fcfreetype.c (FcFreetypeQuery):
971 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
972 FcPatternTransferFullFname):
973
974 Fix warnings and embarrassing double-free error.
975
efa9f2bd
PL
9762005-11-02 Zhe Su <zsu@novell.com>
977 reviewed by: plam
978
979 * fonts.conf.in:
980
981 Change the rule for artificial emboldening in fonts.conf.in. This
982 enables the support for artificial emboldening included in cairo.
983
d7b3ac63
PL
9842005-11-02 Patrick Lam <plam@mit.edu>
985 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
986
987 Don't zero out full names for FC_REF_CONSTANT fonts;
988 also, duplicate full names when transferring, and free
989 full names when freeing the associated font.
990 Reported by Jinghua Luo.
991
303bcf9b
PL
9922005-11-02 Patrick Lam <plam@mit.edu>
993 * fc-cache/fc-cache.c (scanDirs):
994 * src/fcpat.c (FcValueListSerialize):
995
996 Revert the previous patch and commit the correct patch:
997 I forgot a canonicalization in FcValueListSerialize, so
998 that it would choke on already-serialized input files. Duh!
999
c6b75577
PL
10002005-11-02 Patrick Lam <plam@mit.edu>
1001 * fc-cache/fc-cache.c (scanDirs):
1002
1003 Forcibly rescan a directory before writing a fresh local
1004 cache file for that directory, fixing the losing-fonts
1005 problem reported by Mike Fabian and also apparently the
1006 font cache file corruption.
1007
9090cb9e
PL
10082005-11-02 Patrick Lam <plam@mit.edu>
1009 * src/fccache.c (FcGlobalCacheLoad):
1010
1011 Fix thinko: actually, the whole global cache is stale
1012 if the global cache is older than the (newest) config file.
1013
2b25f00c
PL
10142005-11-02 Patrick Lam <plam@mit.edu>
1015 * src/fccache.c (FcGlobalCacheLoad):
1016 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
1017 * src/fcint.h:
1018
1019 Declare the global cache of a directory's contents to be stale if
1020 the directory is newer than the (newest) configuration file.
1021
793154ed
PL
10222005-10-31 Patrick Lam <plam@mit.edu>
1023 * src/fcint.h:
1024 * src/fclist.c (FcListAppend):
1025 * src/fcmatch.c (FcFontRenderPrepare):
1026 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
1027 FcPatternFreeze, FcPatternBaseFreeze):
1028
1029 Copy the full pathname whenever duplicating an FcPattern; otherwise,
1030 applications continue breaking.
1031
d6946c1a
PL
10322005-10-31 Patrick Lam <plam@mit.edu>
1033 * fc-cat/fc-cat.c (FcCacheFileRead, main):
1034 * src/fcfreetype.c (FcFreeTypeQuery):
1035
1036 Fix small memory error (tried to free argv); use basename and
1037 dirname correctly (they can modify their arguments).
1038
e77c1718
PL
10392005-10-31 Patrick Lam <plam@mit.edu>
1040 * fc-cat/fc-cat.c:
1041 * src/fccache.c:
1042 * src/fcfreetype.c:
1043 * src/fcint.h:
1044 * src/fclist.c:
1045 * src/fcpat.c:
1046
1047 Reinstate basename patch, but keep a hash table linking FcPatterns
1048 to their fully-qualified font names for clients' benefit. Clients
1049 only pay for the font names once they request the FC_FILE property
1050 from an FcPattern, but the font name is malloc'd at that point (i.e.
1051 not mmapped: that's impossible, since it may vary between machines.)
1052 Clients do have to pay for a copy of the path name per cache file.
1053
1054 Note that FcPatternGetString now does some rewriting if you ask
1055 for an FC_FILE, appending the pathname as appropriate.
1056
10572005-10-31 Patrick Lam <plam@mit.edu>
1058 * src/fcfreetype.c (FcFreeTypeQuery):
1059
1060 Revert basename patch, which breaks fontconfig clients on my system.
1061
720298e7
PL
10622005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
1063 reviewed by: plam
1064
1065 * fontconfig/fonts.conf.in:
1066 * fontconfig/fontconfig.h:
1067 * src/fcdefault.c:
1068 * src/fcname.c:
1069
1070 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
1071 to load embedded bitmaps or not.
1072
961d9b99
PL
10732005-10-25 Patrick Lam <plam@mit.edu>
1074 * src/fcfreetype.c (FcFreeTypeQuery):
1075
1076 Only add basename to patterns' FC_FILE element, not any part of
1077 the dirname.
1078
573da729
PL
10792005-10-22 Patrick Lam <plam@mit.edu>
1080 * src/fcfreetype.c:
1081
1082 Add some more consts, fixing more GCC4 warnings.
1083
90442681
PL
10842005-10-22 Zhe Su <zsu@novell.com>
1085 reviewed by: plam
1086
1087 Support localized font family and style names.
1088 This has been reported to break old apps like xfd, but modern
1089 (gtk+/qt/mozilla) apps work fine.
1090
e58b50e8
PL
10912005-10-21 Patrick Lam <plam@mit.edu>
1092 * src/fccache.c (FcGlobalCacheLoad):
1093
1094 Destroy the global cache file if it's terminally broken. (reported by
1095 Mike Fabian)
1096
2fa3f27e
PL
10972005-10-21 Patrick Lam <plam@mit.edu>
1098 * fc-list/fc-list.c (main):
1099 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
1100 * fontconfig/fontconfig.h:
1101
e58b50e8
PL
1102 Prevent fc-list from escaping strings when printing them (reported by
1103 Matthias Clasen).
2fa3f27e 1104
250c1cd4
PL
11052005-10-20 Marcus Meissner <meissner@suse.de>
1106 reviewed by: plam
1107
1108 * fontconfig/fontconfig.h:
1109
1110 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
1111
11122005-10-14 Ross Burton <ross@burtonini.com>
21696e5b
PL
1113 reviewed by: plam
1114
1115 * fc-glyphname/fc-glyphname.c:
1116 * src/fclang.c:
1117
1118 Add consts to variables so as to move arrays into .rodata.
1119
15d7bd0a
PL
11202005-10-14 Mike Fabian <mfabian@suse.de>
1121 reviewed by: plam
1122
1123 * src/fccache.c (FcDirCacheUnlink):
1124
1125 Check existence of directory cache file before attempting to unlink.
1126
1178b569
PL
11272005-10-13 Patrick Lam <plam@mit.edu>
1128 * src/fccache.c (FcDirCacheUnlink):
1129
1130 Fix flipped return value on unlink. (Reported by Mike Fabian)
1131
11322005-10-12 Patrick Lam <plam@mit.edu>
1133
1134 * src/fccache.c:
1135 * src/fcdir.c (FcDirScanConfig):
1136 * src/fcint.h:
1137
1138 When fc-cache is run without --force, use directory cache files
1139 to speed up fc-cache run time. (Reported by Mike Fabian)
1140
23787a8f
PL
11412005-10-06 Patrick Lam <plam@mit.edu>
1142
1143 * src/fcname.c (FcObjectToPtr):
1144 * src/fcpat.c (FcStrStaticName):
1145
1146 Add padding to make valgrind and glibc not hate each other
1147 when calling strlen().
1148
328929f5
PL
11492005-10-05 Simos Xenitellis <simos74@gmx.net>
1150 reviewed by: plam & keithp
1151
1152 * fonts.conf.in:
1153
1154 Modify config file to use Greek fonts before Asian fonts with
1155 Greek glyphs.
1156
1ed67f65
PL
11572005-10-05 Christian Biesinger <cbiesinger@web.de>
1158 reviewed by: plam & keithp
1159
1160 * src/Makefile.am:
1161
1162 Use libtool -no-undefined flag on all platforms.
1163
751932dd
PL
11642005-10-05 Patrick Lam <plam@mit.edu>
1165 * src/fccache.c (FcCacheHaveBank):
1166
1167 Implement move-to-front array for banks (perf regression
1168 reported by Ronny V. Vindenes).
1169
55c8fa4f
PL
11702005-10-04 Patrick Lam <plam@mit.edu>
1171 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
1172 FcDirCacheHasCurrentArch):
1173 * fc-cache/fc-cache.c (scanDirs):
1174 * fontconfig/fontconfig.h:
1175
1176 Add new API which unlinks directory caches and checks dir caches
1177 for existence of appropriate sections. Fix fc-cache to unlink
1178 stale cache files and save directory caches that lack relevant
1179 sections.
1180
6bf23804
PL
11812005-10-03 Patrick Lam <plam@mit.edu>
1182 * src/fccache.c (FcDirCacheValid):
1183
1184 Ensure that a directory cache has the appropriate section
1185 before reporting that it is valid (reported by Matthias Clasen).
1186
e99f0f0a
PL
11872005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1188
1189 reviewed by: plam
1190
1191 * configure.in:
1192 * src/Makefile.am:
1193 * src/fcxml.c:
1194
1195 Use libxml2 if requested (with --enable-libxml2) or if
1196 expat is not available.
1197
649cc361
PL
11982005-09-29 Patrick Lam <plam@mit.edu>
1199 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
1200
1201 Fix multi-arch cache files: compute the position for the
1202 block to be added using info from OrigFile, not NewFile.
1203
cd310911
PL
12042005-09-28 Patrick Lam <plam@mit.edu>
1205 * src/fccache.c (FcCacheMachineSignature):
1206
1207 Cast results of sizeof() to unsigned int to get rid of
1208 warnings on x86_64 (thanks Matthias Clasen).
1209
12102005-09-27 Patrick Lam <plam@mit.edu>
9ecb9a9a
PL
1211 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
1212 FcDirCacheWrite):
1213
1214 Use FcAtomic to rewrite cache files.
1215
12162005-09-27 Patrick Lam <plam@mit.edu>
1217
1218 * src/fccache.c (FcDirCacheWrite):
1219
1220 Don't unlink the fonts.cache-2 file even if there's no data
1221 to write; just write an empty cache file. (thanks Lubos Lunak)
1222
12232005-09-27 Patrick Lam <plam@mit.edu>
1224
1225 * src/fccache.c (FcDirCacheWrite):
1226
1227 Allocate room for the subdirectory names in each
1228 directory cache. Thanks to James Cloos for finding
1229 and diagnosing this bug!
1230
12312005-09-22 Patrick Lam <plam@mit.edu>
1232
1233 * fc-cache/fc-cache.sgml:
1234 * src/fccache.c (FcDirCacheWrite):
1235 * src/fccache.h (struct FcCache):
1236
1237 Update documentation -- fc-cache's man page now says that you
1238 need to run fc-cache once per cached architecture; add some
1239 documentation to the FcCache structure.
1240
1241 Make fc-cache write out fonts.cache-2 files for directories with
1242 no fonts (i.e. only subdirectories).
1243
35c2c7f1
PL
12442005-09-22 Patrick Lam <plam@mit.edu>
1245 * doc/edit-sgml.c:
1246 * fc-cache/fc-cache.sgml:
1247 * fc-case/fc-case.c:
1248 * fc-glyphname/fc-glyphname.c:
1249 * src/fcdefault.c:
1250 * src/fcfreetype.c:
1251 * src/fcinit.c:
1252 * src/fcxml.c:
1253
1254 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
1255
1256 * Makefile.am:
1257 * configure.in:
1258 * fc-lang/fc-lang.c:
1259 * fontconfig/fcprivate.h:
1260 * fontconfig/fontconfig.h:
1261 * src/fccache.c:
1262 * src/fccfg.c:
1263 * src/fccharset.c:
1264 * src/fcdbg.c:
1265 * src/fcdir.c:
1266 * src/fcfs.c:
1267 * src/fcint.h:
1268 * src/fclang.c:
1269 * src/fclist.c:
1270 * src/fcmatch.c:
1271 * src/fcname.c:
1272 * src/fcpat.c:
1273
1274 Implement new mmaped cache for font information.
1275 Bump so revision to 2.3.90.
1276
8245771d
PL
12772005-07-25 Keith Packard <keithp@keithp.com>
1278
1279 * doc/fontconfig-user.sgml:
1280 * fc-glyphname/fc-glyphname.c: (scan), (main):
1281 * fc-lang/fc-lang.c: (FcConfigHome):
1282 * fc-match/fc-match.c: (main):
1283 * src/fccfg.c: (FcConfigHome):
1284 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1285 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
1286 (addtag), (FcFontCapabilities):
1287 * src/fcpat.c: (FcValueListEntCreate):
1288 * src/fcstr.c: (FcStrCaseWalkerInit):
1289 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
1290
1291 Various GCC 4 cleanups for signed vs unsigned char
1292
1293 Match only [0-9]*.conf files in <include>{directory}</include>
1294 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
1295
e1b9d091
PL
12962005-07-15 Carl Worth <cworth@cworth.org>
1297
1298 * src/fcint.h:
1299 * src/fcinit.c: (FcFini):
1300 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
1301 FcPatternFini.
1302
1303 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
1304 Pull the FcObjectStateName hash table out to file scope, and add
1305 FcObjectStaticNameFini so that FcFini will cleanup this hash table
1306 as well.
1307
1308 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
1309 fclose.
1310
f1a42f6b
KP
13112005-06-16 Patrick Lam <plam@MIT.EDU>
1312
1313 reviewed by: keithp
1314
1315 * src/fccfg.c: (FcConfigCompareValue):
1316 Make FcOpNotContains use FcStrStr for strings so that
1317 it matches semantics for !FcOpContains.
1318
adc7abac
KP
13192005-05-20 Keith Packard <keithp@keithp.com>
1320
1321 * debian/changelog:
1322 * debian/control:
1323 Move fontconfig source package to libs as per override
1324
a65a77ae
KP
13252005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
1326
1327 reviewed by: Mike Fabian
1328
1329 * fc-lang/ka.orth:
1330 The ka.orth file requires several characters which are not
1331 used anymore in modern Georgian and which are missing in the free
1332 Georgian TrueType fonts downloadable at:
1333
1334 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
1335
87c88746
KP
13362005-04-27 Keith Packard <keithp@keithp.com>
1337
1338 * README:
1339 * debian/changelog:
1340 Update date to real 2.3.2 release date.
1341 Fix change attributions
1342
13432005-04-27 Keith Packard <keithp@keithp.com>
1344
1345 * configure.in:
1346 Bump so revision for 2.3.2
1347 * fc-cache/fc-cache.c: (scanDirs):
1348 Fix a few minor leaks in error cases.
1349
1cb309ad
KP
13502005-04-23 Keith Packard <keithp@keithp.com>
1351
1352 * README:
1353 * configure.in:
1354 * debian/changelog:
1355 * fontconfig/fontconfig.h:
1356 Update for version 2.3.2
1357
716ac8b8
KP
13582005-04-21 Keith Packard <keithp@keithp.com>
1359
1360 * debian/fontconfig.postinst:
1361 Don't force bitmap font enable in default
1362 configuration; allows users to override this in
1363 ~/.fonts.conf
1364 * debian/po/cs.po:
1365 * debian/po/da.po:
1366 * debian/po/de.po:
1367 * debian/po/es.po:
1368 * debian/po/fr.po:
1369 * debian/po/ja.po:
1370 * debian/po/nl.po:
1371 * debian/po/pt.po:
1372 * debian/po/pt_BR.po:
1373 * debian/po/templates.pot:
1374 * debian/po/tr.po:
1375 * debian/po/zh_CN.po:
1376 Updated translations
1377
1378 * fc-cache/fc-cache.c: (main):
1379 Destroy font configuration on exit to help valgrind
1380
1381 * fonts.conf.in:
1382 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
1383 (FcFreeTypeCheckGlyph):
1384 Use own transcoding routines in preference to iconv
1385 which appears to have leaks in some translators.
1386 Call iconv_close after using iconv (oops).
1387
1388 Prefer unicode encoding of Euro char as some
1389 fonts mis-encode Euro in other ones.
1390
1391 Must fetch bitmap glyphs to get width values
1392 to check for monospace/dual-width fonts.
1393
2ff4f076
RB
13942005-04-13 Ross Burton <ross@burtonini.com>
1395
1396 * src/fcpat.c:
1397 Check that a pattern isn't already frozen in FcPatternFreeze.
1398
ae7d0f35
RB
13992005-03-31 Ross Burton <ross@burtonini.com>
1400
1401 * src/fclist.c:
1402 * src/fcmatch.c:
1403 * src/fcpat.c:
1404 Run all FcPattern objects through FcObjectStaticName, so that
1405 compares can be done on pointers instead of strings (#2659)
1406
15603274
TL
14072005-03-17 Tor Lillqvist <tml@novell.com>
1408
1409 * src/fontconfig.def.in: Add the .dll to the dll name.
1410
5f347d9c
KP
14112005-03-10 Keith Packard <keithp@keithp.com>
1412
1413 * debian/README.Debian:
1414 Update to reflect configuration changes
1415 * debian/changelog:
1416 * debian/fontconfig.postinst:
1417 Fix Autohint vs Autohinter mistake
1418 * debian/fontconfig.templates:
1419 Adopt changes from Josselin Mouette for configuration descriptions
1420 Update debian to version 2.3.1-2
1421
8c740260
KP
14222005-03-08 Keith Packard <keithp@keithp.com>
1423
1424 * debian/changelog:
1425 * debian/rules:
1426 Update debian for 2.3.1
1427
79da4fe9
TL
14282005-03-09 Tor Lillqvist <tml@novell.com>
1429
1430 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
1431 put it, not "lib".
1432
1433 * src/fccfg.c (FcConfigFileExists): Check also drive letter
1434 prefix on Win32.
1435
d49dde9f
KP
14362005-03-08 Keith Packard <keithp@keithp.com>
1437
1438 * README:
1439 * configure.in:
1440 * fontconfig/fontconfig.h:
1441 Update for 2.3.1
1442
76a8dfa3
KP
14432005-03-05 Keith Packard <keithp@keithp.com>
1444
1445 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
1446 Include space and remove numbers from valid script tags.
1447 This ensures that tags like 'lao ' work while rejecting
1448 those which have any digits.
1449 Eliminate a spurious debugging variable (len)
1450
219f7818
KP
14512005-03-05 Keith Packard <keithp@keithp.com>
1452
1453 * src/fcfreetype.c: (addtag), (GetScriptTags),
1454 (FcFontCapabilities):
1455 Rework GSUB/GPOS script parsing to survive broken fonts.
1456 Thanks for the broken font go to Manish Singh
1457
97bde49a
KP
14582005-03-05 Keith Packard <keithp@keithp.com>
1459
1460 Josselin Mouette:
1461 * debian/changelog:
1462 * debian/control:
1463 * debian/fontconfig.config:
1464 * debian/fontconfig.templates:
1465 * debian/rules:
1466 Include 2.3 release information in changelog
1467 Add Josselin Mouette as an Uploader
1468 Set hinting_type to low priority configuration option
1469
1470 Manish Singh:
1471 * debian/fontconfig.postinst:
1472 yes_bitmaps.conf -> yes-bitmaps.conf
1473
1474 Funda Wang:
1475 * src/fcfreetype.c:
1476 Johap -> Johab
1477
683dc3c4
KP
14782005-03-02 Keith Packard <keithp@keithp.com>
1479
1480 * Makefile.am:
1481 * conf.d/Makefile.am:
1482 * conf.d/autohint.conf:
1483 * conf.d/no-sub-pixel.conf:
1484 * conf.d/sub-pixel.conf:
1485 * conf.d/unhinted.conf:
1486 * debian/autohint.conf:
1487 * debian/fontconfig.install:
1488 * debian/fontconfig.postinst:
1489 * debian/fontconfig.templates:
1490 * debian/no-sub-pixel.conf:
1491 * debian/unhinted.conf:
1492 Move debian-specific conf file examples upstream.
1493
1494 Sub-pixel configuration examples must smash subpixel value
1495 as Xft always sets it from X.
1496
1497 Change sub-pixel rendering debconf descriptions from
1498 Enable/Disable to Always/Never.
1499
dc2e06ab
KP
15002005-03-02 Keith Packard <keithp@keithp.com>
1501
1502 * .cvsignore:
1503 * conf.d/.cvsignore:
1504 * doc/.cvsignore:
1505 Ignore more build detritus
1506
1507 * Makefile.am:
1508 Add debian package construction stuff.
1509
1510 * config/config.guess:
1511 * config/config.sub:
1512 Update to newer versions of these tools
1513
1514 * doc/Makefile.am:
1515 Get library manuals to build again (we love automake).
1516
1517 * debian/README.Debian:
1518 * debian/autohint.conf:
1519 * debian/changelog:
1520 * debian/compat:
1521 * debian/control:
1522 * debian/copyright:
1523 * debian/fontconfig-udeb.install:
1524 * debian/fontconfig.config:
1525 * debian/fontconfig.defoma:
1526 * debian/fontconfig.dirs:
1527 * debian/fontconfig.install:
1528 * debian/fontconfig.postinst:
1529 * debian/fontconfig.postrm:
1530 * debian/fontconfig.templates:
1531 * debian/libfontconfig1-dev.install:
1532 * debian/libfontconfig1.install:
1533 * debian/local.conf.md5sum:
1534 * debian/no-sub-pixel.conf:
1535 * debian/po/POTFILES.in:
1536 * debian/po/cs.po:
1537 * debian/po/da.po:
1538 * debian/po/de.po:
1539 * debian/po/es.po:
1540 * debian/po/fr.po:
1541 * debian/po/ja.po:
1542 * debian/po/nl.po:
1543 * debian/po/pt.po:
1544 * debian/po/pt_BR.po:
1545 * debian/po/templates.pot:
1546 * debian/po/tr.po:
1547 * debian/po/zh_CN.po:
1548 * debian/rules:
1549 * debian/unhinted.conf:
1550 Update debian build system to switch maintainers and
1551 deal with 2.3 functionality
1552
4afc00ca
KP
15532005-03-01 Keith Packard <keithp@keithp.com>
1554
1555 * README:
1556 * configure.in:
1557 * fontconfig/fontconfig.h:
1558 Update for 2.3.0
1559
0c009d2b
KP
15602005-03-01 Keith Packard <keithp@keithp.com>
1561
1562 * doc/Makefile.am:
1563 Generate and install PDF versions of the manuals
1564
1565 * doc/fcpattern.fncs:
1566 Fix formatting
1567
1568 * doc/fcstring.fncs:
1569 Add missing exported functions, fix data types
1570
1571 * doc/fontconfig-devel.sgml:
1572 Add missing pattern elements.
1573
1574 * doc/fontconfig-user.sgml:
1575 Add missing pattern elements. Document conf.d usage,
1576 clarify available orthography list. Fix some config file
1577 attributes. Complete list of constants.
1578
1579 * fontconfig/fontconfig.h:
1580 Mark FC_SOURCE deprecated.
1581
1582 * src/fcfreetype.c: (FcFreeTypeQuery):
1583 Don't set FC_SOURCE any longer.
1584
414f7202
KP
15852005-02-28 Keith Packard <keithp@keithp.com>
1586
1587 * Makefile.am:
1588 * conf.d/Makefile.am:
1589 * conf.d/README:
1590 * conf.d/no-bitmaps.conf:
1591 * conf.d/sub-pixel.conf:
1592 * conf.d/yes-bitmaps.conf:
1593 * configure.in:
1594 Create prototype /etc/fonts/conf.d directory with a few
1595 sample configuration files.
1596 Deprecate use of local.conf for local customizations in favor of
1597 this directory based scheme which is more easily integrated into
1598 installation systems.
1599
1600 * src/fcname.c:
1601 Tag FC_EMBOLDEN as a boolean variable
1602
47b49bf1
KP
16032005-02-10 Keith Packard <keithp@keithp.com>
1604
1605 reviewed by: pborelli@katamail.com
1606
1607 * src/fcdir.c: (FcFileScanConfig):
1608 Free patterns from fonts which are rejected by configuration
1609 (bug #2518)
1610
845a0bf3
KP
16112005-01-28 Keith Packard <keithp@keithp.com>
1612
1613 * README:
afca7836
KP
1614 * configure.in:
1615 * fontconfig/fontconfig.h:
1616 Update for version 2.2.99
1617
16182005-01-28 Keith Packard <keithp@keithp.com>
1619
1620 * README:
1621 Add a few pointers (#2284, #2285)
845a0bf3 1622
ca60d2b5
KP
16232005-01-28 Keith Packard <keithp@keithp.com>
1624
1625 * src/fcint.h:
1626 * src/fcname.c: (FcNameBool):
1627 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1628 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1629 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1630 Polite typechecking for test and edit expressions. Helps
afca7836 1631 catch errors in the font configuration. (bug 229)
ca60d2b5 1632
59e149e7
KP
16332005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1634
1635 reviewed by: Keith Packard <keithp@keithp.com>
1636
1637 * configure.in:
1638 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1639
d8ae9c92
KP
16402005-01-13 Keith Packard <keithp@keithp.com>
1641
1642 * doc/fontconfig-user.sgml:
1643 Add SEE ALSO section (bug 2085)
1644
16452005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1646
1647 reviewed by: Keith Packard <keithp@keithp.com>
1648
1649 * Makefile.am:
1650 * configure.in:
1651 * doc/Makefile.am:
1652 * fc-case/Makefile.am:
1653 * fc-glyphname/Makefile.am:
1654 * fc-lang/Makefile.am:
1655 * src/fontconfig.def.in:
1656 Cross compiling fixes (bug 280)
1657
8759822e
KP
16582005-01-13 Keith Packard <keithp@keithp.com>
1659
1660 * fonts.conf.in:
1661 Update blanks list (Closes bug 86)
1662
fce87a18
KP
16632005-01-04 Keith Packard <keithp@keithp.com>
1664
1665 * src/fccache.c: (FcCacheFontSetAdd):
1666 Verify that every font pattern loaded from cache has
1667 both FC_FILE and FC_FAMILY entries.
1668 Attempt to fix bug #2219.
1669
d5346181
KP
16702004-12-29 Keith Packard <keithp@keithp.com>
1671
1672 * README:
1673 * configure.in:
1674 * fontconfig/fontconfig.h:
1675 Update for version 2.2.98
1676
479f551f
KP
16772004-12-29 Keith Packard <keithp@keithp.com>
1678
1679 * fontconfig/fontconfig.h:
1680 Document ASCII limitations of Fc character conversion macros
1681 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1682 Fix off-by-one error in utf-8 case walking code.
1683 Add FcStrDowncase (useful for testing case conversion functions)
1684
02748dd3
KP
16852004-12-29 Keith Packard <keithp@keithp.com>
1686
1687 * .cvsignore:
1688 * fc-case/.cvsignore:
1689 clean up CVS ignore lists
1690 * fc-lang/iso-3166.txt:
1691 Add territory database
1692
16932004-12-29 Tor Andersson <tor.andersson@gmail.com>
1694
1695 Reviewed by: Keith Packard
1696
1697 * fc-lang/ko.orth:
1698 Remove Han characters from Korean orthography
1699
2ba729ed
KP
17002004-12-29 Keith Packard <keithp@keithp.com>
1701
1702 * Makefile.am:
1703 Reorder utility programs to make sure fc-case is run before fc-lang
1704 as fc-lang uses fcstr.c which uses fccase.h
1705 * fonts.conf.in:
1706 Fix broken XML
1707
192296d8
KP
17082004-12-29 Keith Packard <keithp@keithp.com>
1709
1710 * fonts.conf.in:
1711 Adopt some RedHat suggestions for standard font configuration.
1712
1713 * Makefile.am:
1714 * configure.in:
1715 * fc-case/CaseFolding.txt:
1716 * fc-case/Makefile.am:
1717 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1718 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1719 (dump), (parseRaw), (caseFoldReadRaw), (main):
1720 * fc-case/fccase.tmpl.h:
1721 Add new helper program 'fc-case' to construct case folding
1722 tables from standard Unicode CaseFolding.txt file
1723
1724 * src/fcint.h:
1725 * src/fclist.c: (FcListValueHash):
1726 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1727 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1728 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1729 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1730 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1731 Re-implement case insensitive functions with Unicode
1732 aware versions (including full case folding mappings)
1733
5cf8c536
KP
17342004-12-13 Keith Packard <keithp@keithp.com>
1735
1736 reviewed by: Owen Taylor <otaylor@redhat.com>
1737
1738 * src/fcmatch.c: (FcFontSetSort):
1739 I changed FcFontSetSort to respect the generic aliases better
1740 in the face of language matching.
1741
1742 What I did was to ammend the strict sort order used by FcFontSort so
1743 that it 'satisfies' the language specified in the pattern by locating
1744 the best matching font supporting each pattern language and then
1745 ignores language in the remaining fonts for purposes of matching.
1746
1747 So, when asking for 'sans:lang=en', you'll get an English font first,
1748 and then the remaining fonts sorted with respect to the 'sans' alias
1749 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
1750
46a10637
KP
17512004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
1752
1753 reviewed by: Keith Packard <keithp@keithp.com>
1754
1755 * fontconfig/fontconfig.h:
1756 * fonts.conf.in:
1757
1758 Configuration changes to request synthetic emboldening of
1759 fonts. The actual emboldening code will live in Xft.
1760
9af19286
KP
17612004-12-09 John Thacker <thacker@math.cornell.edu>
1762
1763 reviewed by: Keith Packard <keithp@keithp.com>
1764
1765 * fc-lang/ru.orth:
1766
1767 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
1768 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
1769 и), and don't even appear in KOI8-R. (The hypothesis that they
1770 don't appear in KOI8-R due to their similarity with Latin I and i is
1771 eliminated by their presence in KOI8-U.) I have a couple of fonts
1772 with Russian support that don't have the letter.
1773
1774 Therefore, 0406 and 0456 should be removed from or commented out of
1775 ru.orth
1776
1c52c0f0
KP
17772004-12-06 michael meeks <mmeeks@novell.com>
1778
1779 Reviewed by: Keith Packard <keithp@keithp.com>
1780
1781 * src/fcinit.c: (FcMemReport):
1782 * src/fcint.h:
1783 * src/fclist.c: (FcObjectSetAdd):
1784 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
1785 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
1786 * src/fcxml.c: (FcParsePatelt):
1787 memoize strings and share a single copy for all uses. Note that
1788 this could be improved further by using statically allocated blocks
1789 and gluing multiple strings together, but I'm basically lazy.
1790 In my environment with 800 font files, I get a savings of about 90KB.
1791
46b51147
KP
17922004-12-06 Keith Packard <keithp@keithp.com>
1793
1794 * COPYING:
1795 * Makefile.am:
1796 * config/Makedefs.in:
1797 * configure.in:
1798 * doc/edit-sgml.c:
1799 * doc/fcatomic.fncs:
1800 * doc/fcblanks.fncs:
1801 * doc/fccharset.fncs:
1802 * doc/fcconfig.fncs:
1803 * doc/fcconstant.fncs:
1804 * doc/fcfile.fncs:
1805 * doc/fcfontset.fncs:
1806 * doc/fcfreetype.fncs:
1807 * doc/fcinit.fncs:
1808 * doc/fcmatrix.fncs:
1809 * doc/fcobjectset.fncs:
1810 * doc/fcobjecttype.fncs:
1811 * doc/fcpattern.fncs:
1812 * doc/fcstring.fncs:
1813 * doc/fcstrset.fncs:
1814 * doc/fcvalue.fncs:
1815 * doc/fontconfig-devel.sgml:
1816 * doc/fontconfig-user.sgml:
1817 * doc/func.sgml:
1818 * doc/version.sgml.in:
1819 * fc-cache/Makefile.am:
1820 * fc-cache/fc-cache.c:
1821 * fc-glyphname/Makefile.am:
1822 * fc-glyphname/fc-glyphname.c:
1823 * fc-glyphname/fcglyphname.tmpl.h:
1824 * fc-lang/Makefile.am:
1825 * fc-lang/aa.orth:
1826 * fc-lang/ab.orth:
1827 * fc-lang/af.orth:
1828 * fc-lang/am.orth:
1829 * fc-lang/ar.orth:
1830 * fc-lang/ast.orth:
1831 * fc-lang/ava.orth:
1832 * fc-lang/ay.orth:
1833 * fc-lang/az.orth:
1834 * fc-lang/az_ir.orth:
1835 * fc-lang/ba.orth:
1836 * fc-lang/bam.orth:
1837 * fc-lang/be.orth:
1838 * fc-lang/bg.orth:
1839 * fc-lang/bh.orth:
1840 * fc-lang/bho.orth:
1841 * fc-lang/bi.orth:
1842 * fc-lang/bin.orth:
1843 * fc-lang/bn.orth:
1844 * fc-lang/bo.orth:
1845 * fc-lang/br.orth:
1846 * fc-lang/bs.orth:
1847 * fc-lang/bua.orth:
1848 * fc-lang/ca.orth:
1849 * fc-lang/ce.orth:
1850 * fc-lang/ch.orth:
1851 * fc-lang/chm.orth:
1852 * fc-lang/chr.orth:
1853 * fc-lang/co.orth:
1854 * fc-lang/cs.orth:
1855 * fc-lang/cu.orth:
1856 * fc-lang/cv.orth:
1857 * fc-lang/cy.orth:
1858 * fc-lang/da.orth:
1859 * fc-lang/de.orth:
1860 * fc-lang/dz.orth:
1861 * fc-lang/el.orth:
1862 * fc-lang/en.orth:
1863 * fc-lang/eo.orth:
1864 * fc-lang/es.orth:
1865 * fc-lang/et.orth:
1866 * fc-lang/eu.orth:
1867 * fc-lang/fa.orth:
1868 * fc-lang/fc-lang.c:
1869 * fc-lang/fc-lang.man:
1870 * fc-lang/fclang.tmpl.h:
1871 * fc-lang/fi.orth:
1872 * fc-lang/fj.orth:
1873 * fc-lang/fo.orth:
1874 * fc-lang/fr.orth:
1875 * fc-lang/ful.orth:
1876 * fc-lang/fur.orth:
1877 * fc-lang/fy.orth:
1878 * fc-lang/ga.orth:
1879 * fc-lang/gd.orth:
1880 * fc-lang/gez.orth:
1881 * fc-lang/gl.orth:
1882 * fc-lang/gn.orth:
1883 * fc-lang/gu.orth:
1884 * fc-lang/gv.orth:
1885 * fc-lang/ha.orth:
1886 * fc-lang/haw.orth:
1887 * fc-lang/he.orth:
1888 * fc-lang/hi.orth:
1889 * fc-lang/ho.orth:
1890 * fc-lang/hr.orth:
1891 * fc-lang/hu.orth:
1892 * fc-lang/hy.orth:
1893 * fc-lang/ia.orth:
1894 * fc-lang/ibo.orth:
1895 * fc-lang/id.orth:
1896 * fc-lang/ie.orth:
1897 * fc-lang/ik.orth:
1898 * fc-lang/io.orth:
1899 * fc-lang/is.orth:
1900 * fc-lang/iso639-2:
1901 * fc-lang/it.orth:
1902 * fc-lang/iu.orth:
1903 * fc-lang/ja.orth:
1904 * fc-lang/ka.orth:
1905 * fc-lang/kaa.orth:
1906 * fc-lang/ki.orth:
1907 * fc-lang/kk.orth:
1908 * fc-lang/kl.orth:
1909 * fc-lang/km.orth:
1910 * fc-lang/kn.orth:
1911 * fc-lang/ko.orth:
1912 * fc-lang/kok.orth:
1913 * fc-lang/ks.orth:
1914 * fc-lang/ku.orth:
1915 * fc-lang/ku_ir.orth:
1916 * fc-lang/kum.orth:
1917 * fc-lang/kv.orth:
1918 * fc-lang/kw.orth:
1919 * fc-lang/ky.orth:
1920 * fc-lang/la.orth:
1921 * fc-lang/lb.orth:
1922 * fc-lang/lez.orth:
1923 * fc-lang/lo.orth:
1924 * fc-lang/lt.orth:
1925 * fc-lang/lv.orth:
1926 * fc-lang/mg.orth:
1927 * fc-lang/mh.orth:
1928 * fc-lang/mi.orth:
1929 * fc-lang/mk.orth:
1930 * fc-lang/ml.orth:
1931 * fc-lang/mn.orth:
1932 * fc-lang/mo.orth:
1933 * fc-lang/mr.orth:
1934 * fc-lang/mt.orth:
1935 * fc-lang/my.orth:
1936 * fc-lang/nb.orth:
1937 * fc-lang/nds.orth:
1938 * fc-lang/ne.orth:
1939 * fc-lang/nl.orth:
1940 * fc-lang/nn.orth:
1941 * fc-lang/no.orth:
1942 * fc-lang/ny.orth:
1943 * fc-lang/oc.orth:
1944 * fc-lang/om.orth:
1945 * fc-lang/or.orth:
1946 * fc-lang/os.orth:
1947 * fc-lang/pl.orth:
1948 * fc-lang/ps_af.orth:
1949 * fc-lang/ps_pk.orth:
1950 * fc-lang/pt.orth:
1951 * fc-lang/rm.orth:
1952 * fc-lang/ro.orth:
1953 * fc-lang/ru.orth:
1954 * fc-lang/sa.orth:
1955 * fc-lang/sah.orth:
1956 * fc-lang/sco.orth:
1957 * fc-lang/se.orth:
1958 * fc-lang/sel.orth:
1959 * fc-lang/sh.orth:
1960 * fc-lang/si.orth:
1961 * fc-lang/sk.orth:
1962 * fc-lang/sl.orth:
1963 * fc-lang/sm.orth:
1964 * fc-lang/sma.orth:
1965 * fc-lang/smj.orth:
1966 * fc-lang/smn.orth:
1967 * fc-lang/sms.orth:
1968 * fc-lang/so.orth:
1969 * fc-lang/sq.orth:
1970 * fc-lang/sr.orth:
1971 * fc-lang/sv.orth:
1972 * fc-lang/sw.orth:
1973 * fc-lang/syr.orth:
1974 * fc-lang/ta.orth:
1975 * fc-lang/te.orth:
1976 * fc-lang/tg.orth:
1977 * fc-lang/th.orth:
1978 * fc-lang/ti_er.orth:
1979 * fc-lang/ti_et.orth:
1980 * fc-lang/tig.orth:
1981 * fc-lang/tk.orth:
1982 * fc-lang/tl.orth:
1983 * fc-lang/tn.orth:
1984 * fc-lang/to.orth:
1985 * fc-lang/tr.orth:
1986 * fc-lang/ts.orth:
1987 * fc-lang/tt.orth:
1988 * fc-lang/tw.orth:
1989 * fc-lang/tyv.orth:
1990 * fc-lang/ug.orth:
1991 * fc-lang/uk.orth:
1992 * fc-lang/ur.orth:
1993 * fc-lang/uz.orth:
1994 * fc-lang/ven.orth:
1995 * fc-lang/vi.orth:
1996 * fc-lang/vo.orth:
1997 * fc-lang/vot.orth:
1998 * fc-lang/wa.orth:
1999 * fc-lang/wen.orth:
2000 * fc-lang/wo.orth:
2001 * fc-lang/xh.orth:
2002 * fc-lang/yap.orth:
2003 * fc-lang/yi.orth:
2004 * fc-lang/yo.orth:
2005 * fc-lang/zh_cn.orth:
2006 * fc-lang/zh_hk.orth:
2007 * fc-lang/zh_mo.orth:
2008 * fc-lang/zh_sg.orth:
2009 * fc-lang/zh_tw.orth:
2010 * fc-lang/zu.orth:
2011 * fc-list/Makefile.am:
2012 * fc-list/fc-list.c:
2013 * fc-match/Makefile.am:
2014 * fc-match/fc-match.1:
2015 * fc-match/fc-match.c:
2016 * fontconfig/fcfreetype.h:
2017 * fontconfig/fcprivate.h:
2018 * fontconfig/fontconfig.h:
2019 * src/fcatomic.c:
2020 * src/fcblanks.c:
2021 * src/fccache.c:
2022 * src/fccfg.c:
2023 * src/fccharset.c:
2024 * src/fcdbg.c:
2025 * src/fcdefault.c:
2026 * src/fcdir.c:
2027 * src/fcfreetype.c:
2028 * src/fcfs.c:
2029 * src/fcinit.c:
2030 * src/fcint.h:
2031 * src/fclang.c:
2032 * src/fclist.c:
2033 * src/fcmatch.c:
2034 * src/fcmatrix.c:
2035 * src/fcname.c:
2036 * src/fcpat.c:
2037 * src/fcstr.c:
2038 * src/fcxml.c:
2039 Change files from ISO-Latin-1 to UTF-8
2040
fc2cc873
KP
20412004-12-04 Keith Packard <keithp@keithp.com>
2042
2043 * INSTALL:
2044 Update links to new freedesktop.org locations
2045 * Makefile.am:
2046 Add uninstall-local to get rid of fonts.conf and local.conf if they
2047 match the distributed versions. Fixes 'make distcheck'
2048
308dc9c3
KP
20492004-12-04 Keith Packard <keithp@keithp.com>
2050
2051 * README:
2052 * configure.in:
2053 * fontconfig/fontconfig.h:
2054 Updates for version 2.2.97
2055
54560b01
KP
20562004-12-04 Owen Taylor <otaylor@redhat.com>
2057
2058 reviewed by: Keith Packard <keithp@keithp.com>
2059
2060 * fc-cache/fc-cache.c: (main):
2061 Sleep for two seconds before exiting to make sure timestamps
2062 for future changes have distinct mod times in the file system.
2063 Bug #1982.
2064 * fc-lang/pa.orth:
2065 Add Punjabi orthography. Bug #1671.
2066
c5a0b541
KP
20672004-12-04 Keith Packard <keithp@keithp.com>
2068
2069 * fonts.conf.in:
2070 Just remove the FC_FONTDATE -- it has locale issues and
2071 annoys redhat multi-arch installs. Now that all X fonts are
2072 included without prejudice, the chances of the date being at
54560b01 2073 all interesting are rather limited. Bug #505.
c5a0b541
KP
2074 * src/Makefile.am:
2075 Add copyright and license
2076
2d9c79c0
KP
20772004-12-04 Keith Packard <keithp@keithp.com>
2078
2079 * configure.in:
2080 Change default set of fonts to include all of
2081 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
2082 * doc/fontconfig-user.sgml:
2083 Document new <include>directory-name</include> semantics
2084 * fonts.conf.in:
2085 add <include ignore_missing="yes">conf.d</include>
2086 * local.conf:
2087 Add selectfont to ignore bitmap fonts, add comment for
2088 selectfont which accepts bitmap fonts.
2089 * src/fcdir.c:
2090 * src/fcint.h:
2091 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
2092 Allow <include> configuration elements to reference directories.
2093 Parse and load all files of the form [0-9]* in sorted order.
2094
38e528e7
KP
20952004-12-04 Keith Packard <keithp@keithp.com>
2096
2097 * autogen.sh:
2098 Report command line for $srcdir/configure accurately.
2099 Bug #212.
2100
e4125ef9
KP
21012004-12-04 Keith Packard <keithp@keithp.com>
2102
2103 * src/fcfreetype.c: (FcFreeTypeQuery):
2104 Check for non-empty face->family_name and face->style_name
2105 before using those for the font. Empty names match everything.
38e528e7 2106 Bug #210.
e4125ef9 2107
537e3d23
KP
21082004-12-04 Keith Packard <keithp@keithp.com>
2109
2110 * configure.in:
2111 * fontconfig/fontconfig.h:
2112 * src/fcfreetype.c: (FcFreeTypeQuery):
2113 * src/fcname.c:
2114 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
2115 available. This provides font file format information (BDF, Type 1,
2116 PCF, TrueType) for each font. Closes #109.
2117
dbf68dd5
KP
21182004-12-04 Daniel Glassey <danglassey@ntlworld.com>
2119
2120 reviewed by: Keith Packard <keithp@keithp.com>
2121
2122 * doc/fontconfig-user.sgml:
2123 Fix typo.
2124
2125 * fontconfig/fontconfig.h:
2126 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
2127 (GetScriptTags), (FcFontCapabilities):
2128 * src/fcname.c:
2129 Add detection for font capabilities (bug #105)
2130
4f27c1c0
KP
21312004-12-04 Keith Packard <keithp@keithp.com>
2132
2133 * Makefile.am:
2134 Move existing fonts.conf to fonts.conf.bak
2135
2136 * configure.in:
2137 Add detection of iconv
2138
2139 * doc/fcpattern.fncs:
2140 * doc/fontconfig-devel.sgml:
2141 * doc/fontconfig-user.sgml:
2142 * fonts.dtd:
2143 Document new selectfont elements
2144
2145 * fc-lang/nb.orth:
2146 Switch to UTF-8 in comment
2147
2148 * fontconfig/fontconfig.h:
2149 * src/fcname.c:
2150 Add fullname, and family/style/fullname language entries
2151
2152 * src/fccache.c: (FcCacheFontSetAdd):
2153 * src/fcdir.c: (FcFileScanConfig):
2154 Respect selectfont/*/glob
2155
2156 * src/fcint.h:
2157 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
2158 (FcConfigCompareValue), (FcConfigPatternsAdd),
2159 (FcConfigPatternsMatch), (FcConfigAcceptFont):
2160 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
2161 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
2162 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
2163 Add support for selectfont
2164
2165 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
2166 (FcStringInPatternElement), (FcFreeTypeQuery):
2167 Add multi-lingual family/style/fullname support
2168
2169 * src/fclist.c: (FcListPatternMatchAny):
2170 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
2171
2172 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
2173 (FcObjectStaticName):
2174 Add new FcPatternRemove/FcPatternAppend.
2175 FcObjectStaticName stores computed pattern element names which
2176 are required to be static.
2177
c641c77d
KP
21782004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
2179
2180 reviewed by: keithp
2181
2182 * Makefile.am:
2183 Remove spurious / after $(DESTDIR)
2184
b5f36ca0
KP
21852004-06-30 Keith Packard <keithp@keithp.com>
2186
2187 * README:
2188 * configure.in:
2189 * fontconfig/fontconfig.h:
2190 Update for 2.2.96
2191
28f93bc4
KP
21922004-06-30 Keith Packard <keithp@keithp.com>
2193
2194 Provided by: Lubos Lunak <l.lunak@suse.cz>
2195
2196 * src/fccfg.c: (FcConfigUptoDate):
2197 However FcConfigUptoDate() doesn't seem to work. See the attached
2198 patch. First there's an obvious misplaced parenthesis making it
2199 return always false, and second, even this call fails to detect font
2200 changes (e.g. adding a new font to
2201 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
2202 well. The problem seems to be triggered by my fonts.conf specifying
2203 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
2204 doesn't include subdirs, unlike config->fontDirs.
2205
3d1ea0e5
KP
22062004-06-03 Keith Packard <keithp@keithp.com>
2207
2208 * fontconfig/fontconfig.h:
2209 Remove comma at end of FcResult enum definition.
2210
087d899c
KP
22112004-05-29 Keith Packard <keithp@keithp.com>
2212
2213 * INSTALL:
2214 Add steps to md5sum release
2215
d81271eb
KP
22162004-05-29 Keith Packard <keithp@keithp.com>
2217
2218 * README:
2219 * configure.in:
2220 * fontconfig/fontconfig.h:
2221 Update for 2.2.95
2222
ec0c740e
KP
22232004-05-29 Keith Packard <keithp@keithp.com>
2224
2225 * fontconfig/fontconfig.h:
2226 * src/fcmatch.c: (FcFontSetMatch):
2227 Add FcResultOutOfMemory to provide an accurate error when
2228 FcFontSetMatch fails in this way
2229
2230 * src/fcfreetype.c:
2231 Make #warning about lacking various FreeType features indicate
2232 which version those features appeared so users know how to
2233 fix the problem (Thanks to Anton Tropashko)
2234
55a69bd0
KP
22352004-05-05 Keith Packard <keithp@keithp.com>
2236
2237 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
2238 Replace MIN/MAX/ABS macros which happen to have come
2239 from FreeType with fontconfig-specific ones (FC_*)
2240
bd0ddac8
KP
22412004-04-23 Keith Packard <keithp@keithp.com>
2242
2243 * INSTALL:
2244 Extend release preparation instructions to include
2245 notification and distribution steps
2246
626a7016
KP
22472004-04-23 Keith Packard <keithp@keithp.com>
2248
2249 * README:
2250 * configure.in:
2251 * fontconfig/fontconfig.h:
2252 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
2253
7969113f
KP
22542004-04-23 Keith Packard <keithp@keithp.com>
2255
2256 * .cvsignore:
2257 Ignore a few more autotool files
2258
6ae6acf3
KP
22592004-04-14 Keith Packard <keithp@keithp.com>
2260
2261 * INSTALL:
2262 Add instructions for doing a release
2263
2264 * fontconfig.spec.in:
2265 clean up .spec file; perhaps this will be useful to somebody...
2266
2267 * README:
2268 * configure.in:
2269 * fontconfig/fontconfig.h:
2270 Update to 2.2.93
2271
2272 * fc-lang/fc-lang.c:
2273 Make 'scanopen' static so GCC doesn't whine about lacking prototype
2274
2275 * fc-glyphname/Makefile.am:
2276 * fc-lang/Makefile.am:
2277 * fc-list/Makefile.am:
2278 * fc-match/Makefile.am:
2279 * src/Makefile.am:
2280 Add WARN_CFLAGS to pass -W flags for GCC systems
2281
2282 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
2283 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
2284 Change various char types around to match across
2285 function calls.
2286 Fixed bug in using available_sizes[i].height which
2287 is in pixels, not 64ths of a pixel.
2288
89e28590
KP
22892004-03-06 Keith Packard <keithp@keithp.com>
2290
2291 * src/fcfreetype.c: (FcFreeTypeQuery):
2292 Force FC_FOUNDRY and FC_WIDTH to always be set so that
2293 matches looking for explicit values prefer exact matches
2294
02638f1a
KP
22952004-03-02 Keith Packard <keithp@keithp.com>
2296
2297 Supplied by: mfabian@suse.de (Mike FABIAN)
2298
2299 * src/fcfreetype.c: (FcFreeTypeQuery):
2300 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
2301 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
2302
de66e750
MS
23032004-02-21 Manish Singh <yosh@gimp.org>
2304
2305 * fc-glyphname/fc-glyphname.c: (main):
2306 Cast strlen to int for printf, so we're 64-bit clean.
2307
208a720f
KP
23082004-02-11 Keith Packard <keithp@keithp.com>
2309
2310 * configure.in:
2311 * src/fcfreetype.c: (FcGetPixelSize):
2312 Ok, so I messed up the test for y_ppem. Let's see if I
2313 got it right this time.
2314
4f38fa81
KP
23152004-02-10 Keith Packard <keithp@keithp.com>
2316
2317 * configure.in:
2318 * src/fcfreetype.c: (FcGetPixelSize):
2319 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
2320 FT_Bitmap_Size record. Add a configure.in test for this
2321 and change the code accordingly (using height instead).
2322
b68b9646
KP
23232004-02-06 Keith Packard <keithp@keithp.com>
2324
2325 * fc-lang/nds.orth:
2326 Add Low Saxon orthography
2327 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
2328
2329 * src/fccfg.c: (FcConfigNewestFile):
2330 Oops. Left 'newest.set' unset, which would miscompute
2331 the newest file
2332
2333 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
2334 (FcFreeTypeCheckGlyph):
2335 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
2336 font properties (which report the wrong value in current FreeType)
2337
2338 Don't attempt to check for empty glyphs in non-scalable fonts; they
2339 have no outlines...
2340
f4c52909
TL
23412004-02-01 Tor Lillqvist <tml@iki.fi>
2342
2343 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
2344 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
2345 cache if config->cache is NULL, which happens if FcConfigHome() is
2346 NULL. Guard against that by using the temp folder in that case.
2347
d3481737
RP
23482004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
2349
2350 * fc-lang/az_ir.orth:
2351 * fc-lang/ku_ir.orth:
2352 * fc-lang/ps_af.orth:
2353 * fc-lang/ps_pk.orth:
2354 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
2355 (Afghan and Pakistani).
2356 * fc-lang/ur.orth:
2357 Updated Urdu orthography with real data.
2358
d098e4eb
CW
23592003-12-11 Carl Worth <cworth@east.isi.edu>
2360
2361 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
2362 USEDOCBOOK' block.
2363
2364 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
2365 USEDOCBOOK' block.
2366 (all-local): Remove excessive whitespace.
2367
2368 * autogen.sh: Add 'set -e' to abort when any program fails,
2369 (avoids printing of 'now type make' after configure aborts).
2370
408dd9c0
KP
23712003-11-17 Eric Christopherson <rakko@charter.net>
2372
2373 reviewed by: Keith Packard <keithp@keithp.com>
2374
2375 * doc/Makefile.am:
2376 * fontconfig/fcfreetype.h:
2377 * src/fcfreetype.c:
2378 Switch to FreeType 2.1.7 style includes. Bug #150.
2379
8e8fcda4
NL
23802003-11-16 Noah Levitt <nlevitt@columbia.edu>
2381
2382 * fc-list/fc-list.sgml: Add some example usages.
2383
344a0e33
RP
23842003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
2385
2386 * src/fcxml.c:
2387 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
2388 separators.
2389
23902003-10-27 Keith Packard <keith@keithp.com>
27143fc9
KP
2391
2392 * configure.in:
2393 * fontconfig/fontconfig.h:
2394 Update to version 2.2.92
2395
4cbc3ee8
KP
23962003-10-27 Keith Packard <keithp@keithp.com>
2397
2398 * Makefile.am:
2399 * configure.in:
2400 * doc/Makefile.am:
2401 * fc-cache/Makefile.am:
2402 * fc-glyphname/Makefile.am:
2403 * fc-lang/Makefile.am:
2404 * fc-list/Makefile.am:
2405 * fc-match/Makefile.am:
2406 * test/Makefile.am:
2407 * test/run-test.sh:
2408 Yet more cleanups to finish getting 'make distcheck' working
2409 This has been tested to ensure that it even works from a _build
2410 directory.
2411
394b2bf0
KP
24122003-10-26 Keith Packard <keithp@keithp.com>
2413
2414 * configure.in:
2415 * doc/Makefile.am:
2416 * fc-cache/Makefile.am:
2417 * fc-glyphname/Makefile.am:
2418 * fc-lang/Makefile.am:
2419 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
2420 * fc-list/Makefile.am:
2421 * fc-match/Makefile.am:
2422 Attempts to fix 'make distcheck' work. Things are
2423 progressing pretty well, but there are still failures
2424 long into the process dealing with docs (as always).
2425
2426 The big changes here are mostly to make $(srcdir) != "."
2427 work correctly, fixing the docbook related sections and
2428 fc-lang were particularily tricky. Docbook refuses to load
2429 system entities from anywhere other than where the original .sgml
2430 file was located, so no luck looking in "." for the
2431 configure-generated version.sgml and confdir.sgml files.
2432
2433 fc-lang needed help finding .orth files; added a -d option
2434 to set the directory as the least evil of many options.
2435
2436 Now to go use a faster machine and try and wring out the last
2437 issues.
2438
3541556b
KP
24392003-10-26 Keith Packard <keithp@keithp.com>
2440
2441 Tag version 2.2.91
2442
e99043ac
KP
24432003-10-26 Keith Packard <keithp@keithp.com>
2444
2445 * doc/Makefile.am:
2446 Include confdir.sgml.in in EXTRA_DIST
2447
75839218
JM
24482003-10-09 Josselin Mouette <joss@debian.org>
2449
2450 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
2451 * fc-list/fc-list.sgml fc-list/Makefile.am:
2452 Replace fc-cache and fc-list manpages with more detailed, SGML
2453 versions.
2454
f077d662
OT
24552003-09-23 Owen Taylor <otaylor@redhat.com>
2456
2457 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
2458 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
2459 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
2460 (Bug #117)
2461
44f59f71
OT
24622003-09-23 Owen Taylor <otaylor@redhat.com>
2463
2464 * fc-lang/ka.orth: Remove Georgian capitals, they
2465 aren't used for normal writing. (Bug #116)
2466
a05d257f
NL
24672003-09-06 Noah Levitt <nlevitt@columbia.edu>
2468
2469 * doc/fontconfig-devel.sgml:
2470 * doc/fontconfig-user.sgml:
2471 * fontconfig/fontconfig.h:
2472 * src/fcname.c:
2473 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
2474 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
2475
2476 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
2477 monospace and dual-width fonts, allow roughly a 3% variance in the
2478 advances.
2479
3ef32bcd
MS
24802003-08-31 Manish Singh <yosh@gimp.org>
2481
2482 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
2483 use default config.
2484
34cd0514
CW
24852003-08-15 Carl Worth <cworth@isi.edu>
2486
2487 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
2488 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
2489
2490 * src/fcpat.c (FcValueListEntDestroy): New function to support
2491 FcFini memory cleanup. Some statistics are not kept in
2492 synch. here.
2493 (FcValueListFreeze): Move hashTable outside this function so it
2494 can be accessed by FcValueListThawAll.
2495 (FcValueListThawAll): New function complements FcValueListFreeze.
2496 (FcPatternBaseFreeze): Move hashTable outside this function so it
2497 can be accessed by FcPatternBaseThawAll.
2498 (FcPatternBaseThawAll): New function complements
2499 FcPatternBaseFreeze.
2500 (FcPatternThawAll): New function complements FcPatternFreeze.
2501
2502 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
2503
2504 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
2505 allocated FcCharLeafEnt "blocks" so they can be freed later.
2506 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
2507 can be accessed by FcCharSetThawAllLeaf.
2508 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
2509 (FcCharSetFreezeBase): Move hashTable outside this function so it
2510 can be accessed by FcCharSetThawAll.
2511 (FcCharSetThawAll): New function complements FcCharSetFreeze.
2512
2513 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
2514 (FcConfigDestroy): Fic leak of FcBlanks.
2515
2516 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
2517 (main): Add call to FcFini when finished.
2518
2519 * fc-glyphname/fc-glyphname.c: Mark several local functions as
2520 static. Add prototypes.
2521
2522 * doc/fcinit.fncs: Add documentation for FcFini function.
2523
2524 * doc/edit-sgml.c: Mark several local functions as static. Add
2525 prototypes.
2526
2527 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
2528
c3941ba9
TL
25292003-06-15 Tor Lillqvist <tml@iki.fi>
2530
231051f4
TL
2531 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
2532 before comparing (needed on Windows).
2533
c3941ba9
TL
2534 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
2535
ee1d8125
TL
25362003-06-13 Tor Lillqvist <tml@iki.fi>
2537
2538 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
2539 man pages.
2540
2541 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
2542 WINDOWSFONTDIR token.
2543
2544 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
2545 end, not to confuse libtool, which expects the EXPORTS line to be
2546 the first. Add FcConfigEnableHome.
2547
e5206dbc
TL
2548 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
2549 built as a DLL on Win32.
2550
4ae7f71c
KP
25512003-06-09 Keith Packard <keithp@keithp.com>
2552
2553 * Tag version 2.2.90
2554
8edb970e
KP
25552003-06-09 Keith Packard <keithp@keithp.com>
2556
2557 * Optimization in FcLangSetIndex was broken, occasionally
2558 returning a pointer to the wrong location on miss
2559
2560 * Add fc-match to test font matching from the command line.
2561
25622003-05-31 Keith Packard <keithp@keithp.com>
2563
2564 * (Bug 85) add support for culmus fonts
2565 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
2566 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
2567
25682003-05-28 James Su <suzhe@turbolinux.com.cn>
2569
2570 * Fix "contains" op for strings and langsets.
2571
25722003-05-17 Keith Packard <keithp@keithp.com>
2573
2574 * Fix build error with BDF prop local. Free langset after query
2575
25762003-05-14 Keith Packard <keithp@keithp.com>
2577
2578 * Extract spacing from XLFD atom
2579
25802003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2581
2582 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2583 disappeared in 1.30.
2584
2585 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2586
25872003-05-12 Keith Packard <keithp@keithp.com>
2588
2589 * Use FcIsWidth to share code
2590
2591 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2592 misclassifying some Han fonts as monospaced.
2593
25942003-05-07 Keith Packard <keithp@keithp.com>
2595
2596 * Add filename-based accept/reject to ammend available fonts.
2597
2598 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2599 older FreeType releases.
2600
26012003-05-06 Keith Packard <keithp@keithp.com>
2602
2603 * Remove 0b82 and Tamil numbers from tamil
2604 orthography (Jungshik Shin <jshin@mailaps.org>)
2605
26062003-05-04 Keith Packard <keithp@keithp.com>
86b12431
KP
2607
2608 + Map glyph names in fonts with adobe custom encoding to unicode
2609
8edb970e
KP
26102003-05-02 Keith Packard <keithp@keithp.com>
2611
2612 * Add FC_WEIGHT_BOOK as weight 75
2613
26142003-04-30 Keith Packard <keithp@keithp.com>
2615
2616 * Typo in bitstream foundry name
2617
26182003-04-24 Keith Packard <keithp@keithp.com>
2619
2620 * Eliminate italic_angle check for PS fonts
2621
26222003-04-23 Noah Levitt <nlevitt@columbia.edu>
2623
2624 * Getting closer to fixing /etc/fonts hard-coding.
2625
26262003-04-22 Keith Packard <keithp@keithp.com>
2627
2628 * Update autogen.sh to work with newer automake versions
2629 * Handle pattern elements moving during multiple edits
2630
8c87b429
KP
26312003-04-23 James Henstridge <james@daa.com.au>
2632
2633 * doc/fontconfig-devel.sgml: close the <para> element.
2634
2635 * doc/fcpattern.fncs: close the <para> element.
2636
2637 * doc/func.sgml: close the <refsynopsisdiv> element.
2638
8edb970e
KP
26392003-04-22 Keith Packard <keithp@keithp.com
2640
2641 * Update autogen.sh to work with newer automake versions
2642 * Handle pattern elements moving during multiple edits
2643
12d49d3c
CW
26442003-04-17 Colin Walters <walters@debian.org>
2645
2646 + Remove some unused variables, and initialize some other ones so
2647 gcc doesn't warn us.
2648
ab06f005
KP
26492003-04-16 Keith Packard <keithp@keithp.com>
2650
2651 + tag version 2.1.94
2652
26532003-04-16 Keith Packard <keithp@keithp.com>
2654
2655 + add BDF property fetching support for foundry
2656 (from Juliusz Chroboczek)
2657 + add BDF property fetching support for width
2658
26592003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2660
2661 + Implemented foundry generation for Type 1 and TrueType
2662
26632003-04-11 Gerard Escalante <g2@magestudios.net>
2664
2665 + Retrieve information from Type1 FontInfo dictionaries
2666
8c8caabd
CW
26672003-04-07 Colin Walters <walters@verbum.org>
2668
2669 + src/Makefile.am: Fix dummy makefile target names when
2670 MS_LIB_AVAILABLE isn't set.
2671
daeed6e0
TL
26722003-03-22 Tor Lillqvist <tml@iki.fi>
2673
2674 Changes for Windows:
2675
2676 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2677
2678 + We don't want to hardcode the fonts.conf file location in the
2679 DLL, so we look up the DLL location at run-time in a DllMain()
2680 function. The fonts.conf location is deduced from that.
2681
2682 + The colon can't be used as path separator on Windows,
2683 semicolon is used instead. File path components can be separated
2684 with either slash or backslash. Absolute paths can also begin
2685 with a drive letter.
2686
2687 + Add internal function FcStrLastSlash that strrchr's the last
2688 slash, or backslash on Windows.
2689
2690 + There is no link() on Windows. For atomicity checks, mkdir a
2691 lock directory instead.
2692
2693 + In addition to HOME, also look for USERPROFILE.
2694
2695 + Recognize the special font directory token WINDOWSFONTDIR, to
2696 use the system's font directory.
2697
2698 + Remove the fontconfig-def.cpp that was obsolete. Add
2699 fontconfig.def(.in), without internal functions.
2700
2701 + Add a fontconfig-zip(.in) script, used to build a binary
2702 distribution.
2703
dbe9a11e
MH
2704Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2705 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2706 to main package and man3/* to devel package
2707
2708 + Added missing defattr(-, root, root) to main RPM package
2709
2710 + Added HTML and text development documentation to -devel subpackage
2711
c92abf78
MH
2712Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2713 + Added back the configure macro options --disable-docs, otherwise
2714 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2715 version number) unconditionally, causing RPM to fail the build due
2716 to _unpackaged_files_terminate_build. We pick up the pregenerated
2717 docs with %doc already.
2718
b06766e4
MH
2719Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2720 + Removed commented out rpm macro define at top of spec file,
2721 replacing it with a simple explanation, since rpm macros are
2722 expanded by rpm even in comments.
2723
2724 + Changed /usr/bin to _bindir in BuildRequires lines
2725
2726 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2727
2728 + Reorganized file manifest lists
2729
2730Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
22dc6fc6
OT
2731
2732 + fontconfig.spec.in: Improvements from Red Hat spec file.
2733
2734 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2735
2736 + docs/*.sgml: SGML fixes.
2737
8fc10a72
KP
2738Sat Mar 1 17:28:53 PST 2003 keithp
2739 + Ok, so the ChangeLog is a bit out of date
2740
2741 + Lots of bugs fixed; most are in bugzilla, the
2742 biggest problems were in cache management where
2743 Owen discovered the library would lose badly when
2744 combining fonts-cache and ~/.fonts-cache data
2745
2746 + Converted from autoconf to automake. This after
2747 getting patches accepted into libtool to allow
2748 the '-version-number' argument which lets
2749 packages set version numbers explicitly rather
2750 than the roundabout libtool way
2751
2752 + Converted documentation to SGML using the docbook
2753 DTD. Now .txt and .html documents are installed
2754 in /usr/share/doc/fontconfig and there's no
2755 man page. Perhaps a man version can be written
2756 at some point.
2757
c2022f99
KP
2758Sat Aug 31 15:21:22 PDT 2002 keithp
2759 + Xrender and Xft had several bugs related to
2760 rendering manually placed or poly-face text
2761
2762 + Added more complete memory tracing in fontconfig
2763 Checked with (patched) mozilla and found no leaks
2764
2765 + Updated Latin orthographies by comparing those from
2766 evertype.com with those from eki.ee. Tried to make
2767 sensible choices, including chars that occured in both
2768 and leaving some optional chars out that occured only
2769 in one.
2770
2458a6d8 2771Mon Aug 26 16:33:04 PDT 2002 keithp
c2022f99 2772 + Owen discovered that FcLangSetHasLang wasn't actually
2458a6d8
KP
2773 checking the language set.
2774
5d6788ac
KP
2775Mon Aug 26 13:37:23 PDT 2002 keithp
2776 + Append a version number to cache filenames
2777
47d4f950
KP
2778Thu Aug 22 11:36:18 PDT 2002 keithp
2779
2780 + Add "contains" and "not_contains" operators and elements to
2781 font configuration
2782
2783 + Changed semantics of eq operator for LangSets to check for
2784 FcLangEqual so that any match will do
2785
2786 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
2787 of FcValueEqual to check for identical values when inserting into
2788 the results. This broke when the above semantic change was made,
2789 now it uses FcValueEqual which is "more correct" in any case.
2790
d8d73958
KP
2791Thu Aug 22 00:32:29 PDT 2002 keithp
2792
2793 + Reimplement FC_LANG as new datatype. Lists of strings
2794 was consuming over a megabyte of memory for 401 fonts.
2795
2796 + Freeze patterns loaded from cache files. This shares
2797 common value lists and common patterns which saves
2798 considerable memory.
2799
2800 + Change the denotation of 'constant' charsets to use special
2801 ref value instead of separate boolean.
2802
2803 + Clean up leak tracing stuff, found several unannoted alloc/free
2804 calls
2805
2806Tue Aug 20 16:17:37 PDT 2002 keithp
2807
2808 + Fix memory leak when parsing matrices from XML
2809
2810Mon Aug 19 11:57:27 PDT 2002 keithp
2811
fa244f3d
KP
2812 + Fix autoconf files to pass FONTCONFIG_PATH on
2813 compile line so that ${prefix} gets substituted
2814 correctly.
2815
2816 + Use getc_unlocked/putc_unlocked on systems that
2817 provide them to avoid damage done to stdio by posix
2818
2819 + Eliminate FC_PATTERN and FcTypePattern in favor of
2820 an extended api for FcConfigSubstitute which takes
2821 both the font and the pattern.
2822
2823 + Add 'sans serif' alias for 'sans-serif' as some apps
2824 can't handle hyphens in family names
2825
2826 + Eliminate pretense of support for libxml2
2827
2828 + Comment origins of Han orthographies
2829
aefb2c41
KP
2830Tue Jul 30 18:37:09 PDT 2002 keithp
2831
2832 + Add binding property to edit element so that strong
2833 binding values may be inserted by the config file.
2834 The default remains weak.
2835
2836Sun 28 Jul 04:16:55 PDT 2002 keithp
2837
2838 + Tagged release candidate 1 in the CVS tree and
2839 placed fcpackage.rc1.tar.gz for distribution
2840
2841Thu Aug 1 08:55:08 PDT 2002 keithp
2842
2843 + Fixed autoconf builds to always specify install
2844 target files (for BSD). Also fixed to
2845 define FONTCONFIG_PATH in config.h so that
2846 nonstandard installs will actually work.