]> git.wh0rd.org Git - fontconfig.git/log
fontconfig.git
15 years agoFix comparison of family names to ignore leading space properly
Behdad Esfahbod [Wed, 31 Dec 2008 23:06:07 +0000 (18:06 -0500)]
Fix comparison of family names to ignore leading space properly

Previously fc-match "xxx,nazli" matched Nazli, but "xxx, nazli" didn't.
This was because of a bug in FcCompareFamily's short-circuit check
that forgot to ignore spaces.

15 years agoImplement FcPatternFormat and use it in cmdline tools (bug #17107)
Behdad Esfahbod [Tue, 30 Dec 2008 01:00:26 +0000 (20:00 -0500)]
Implement FcPatternFormat and use it in cmdline tools (bug #17107)

Still need to add more features, but the API is there, and used
by cmdline tools with -f or --format.

15 years ago[.gitignore] Update
Behdad Esfahbod [Tue, 30 Dec 2008 00:27:00 +0000 (19:27 -0500)]
[.gitignore] Update

15 years agoRemove special-casing of FC_FILE in FcPatternPrint()
Behdad Esfahbod [Mon, 29 Dec 2008 23:58:29 +0000 (18:58 -0500)]
Remove special-casing of FC_FILE in FcPatternPrint()

I can't understand why the special case is needed.  Indeed, removing it
does not make any difference in the "fc-match --verbose" output, and
that's the only time fc-match uses FcPatternPrint.

15 years agoExplicitly chmod() directories (bug #18934)
Behdad Esfahbod [Sun, 28 Dec 2008 21:54:44 +0000 (16:54 -0500)]
Explicitly chmod() directories (bug #18934)

Two changes:

  - after mkdir(), we immediately chmod(), such that we are not affected
    by stupid umask's.

  - if a directory we want to use is not writable but exists, we try a
    chmod on it.  This is to recover from stupid umask's having affected
    us with older versions.

15 years agoDon't use identifier named complex
Behdad Esfahbod [Sun, 28 Dec 2008 14:03:29 +0000 (09:03 -0500)]
Don't use identifier named complex

15 years ago[65-fonts-persian.conf] Set foundry in target=scan instead of target=font
Behdad Esfahbod [Sun, 28 Dec 2008 13:06:07 +0000 (08:06 -0500)]
[65-fonts-persian.conf] Set foundry in target=scan instead of target=font

15 years agoFix Sinhala coverage (bug #19288)
Harshula Jayasuriya [Sun, 28 Dec 2008 11:13:19 +0000 (06:13 -0500)]
Fix Sinhala coverage (bug #19288)

15 years agoUse human-readable file names in the docs (bug #16278)
Alexey Khoroshilov [Sun, 28 Dec 2008 10:15:45 +0000 (05:15 -0500)]
Use human-readable file names in the docs (bug #16278)

15 years agoImplement fc-list --quiet ala grep (bug #17141)
Behdad Esfahbod [Sun, 28 Dec 2008 09:58:14 +0000 (04:58 -0500)]
Implement fc-list --quiet ala grep (bug #17141)

Exits 1 if no fonts matched, 0 otherwise.

15 years agoFix compile with old FreeType that doesn't have FT_Select_Size() (bug #17498)
Behdad Esfahbod [Sun, 28 Dec 2008 09:48:54 +0000 (04:48 -0500)]
Fix compile with old FreeType that doesn't have FT_Select_Size() (bug #17498)

15 years agoUse __builtin_popcount() when available (bug #17592)
Behdad Esfahbod [Sun, 28 Dec 2008 09:26:26 +0000 (04:26 -0500)]
Use __builtin_popcount() when available (bug #17592)

15 years agoAdd config for new Indic fonts (bug #17856)
Rahul Bhalerao [Sun, 28 Dec 2008 09:10:53 +0000 (04:10 -0500)]
Add config for new Indic fonts (bug #17856)

15 years agoConsistently use FcStat() over stat() in all places
Behdad Esfahbod [Sun, 28 Dec 2008 09:06:01 +0000 (04:06 -0500)]
Consistently use FcStat() over stat() in all places

15 years ago[fccache] Consistently use FcStat() over stat() (bug #18195)
Behdad Esfahbod [Sun, 28 Dec 2008 09:00:09 +0000 (04:00 -0500)]
[fccache] Consistently use FcStat() over stat() (bug #18195)

15 years agoCleanup symlinks in "make uninstall" (bug #18885)
Behdad Esfahbod [Sun, 28 Dec 2008 08:40:21 +0000 (03:40 -0500)]
Cleanup symlinks in "make uninstall" (bug #18885)

15 years agoDon't use variables named 'bool' (bug #18851)
Harald Fernengel [Sun, 28 Dec 2008 08:23:58 +0000 (03:23 -0500)]
Don't use variables named 'bool' (bug #18851)

15 years ago[.gitignore] Update
Behdad Esfahbod [Sun, 28 Dec 2008 08:08:38 +0000 (03:08 -0500)]
[.gitignore] Update

15 years agoFix two more doc typos
Behdad Esfahbod [Tue, 2 Dec 2008 11:07:41 +0000 (06:07 -0500)]
Fix two more doc typos

15 years agoDon't call FcPatternGetCharSet in FcSortWalk unless we need to (#17361)
Behdad Esfahbod [Mon, 22 Sep 2008 22:51:11 +0000 (18:51 -0400)]
Don't call FcPatternGetCharSet in FcSortWalk unless we need to (#17361)

15 years agoDon't leak FcValues string loaded through fcxml.c (#17661)
Behdad Esfahbod [Mon, 22 Sep 2008 22:16:30 +0000 (18:16 -0400)]
Don't leak FcValues string loaded through fcxml.c (#17661)

Patch from Caolan McNamara.

15 years agoReduce number of allocations during FcSortWalk().
Chris Wilson [Wed, 23 Apr 2008 08:07:28 +0000 (09:07 +0100)]
Reduce number of allocations during FcSortWalk().

The current behaviour of FcSortWalk() is to create a new FcCharSet on
each iteration that is the union of the previous iteration with the next
FcCharSet in the font set. This causes the existing FcCharSet to be
reproduced in its entirety and then allocates fresh leaves for the new
FcCharSet. In essence the number of allocations is quadratic wrt the
number of fonts required.

By introducing a new method for merging a new FcCharSet with an existing
one we can change the behaviour to be effectively linear with the number
of fonts - allocating no more leaves than necessary to cover all the
fonts in the set.

For example, profiling 'gedit UTF-8-demo.txt'
    Allocator     nAllocs     nBytes
Before:
    FcCharSetFindLeafCreate 62886     2012352
    FcCharSetPutLeaf        9361     11441108
After:
    FcCharSetFindLeafCreate 1940     62080
    FcCharSetPutLeaf        281     190336

The savings are even more significant for applications like firefox-3.0b5
which need to switch between large number of fonts.
Before:
    FcCharSetFindLeafCreate 4461192     142758144
    FcCharSetPutLeaf     1124536     451574172
After:
    FcCharSetFindLeafCreate 80359     2571488
    FcCharSetPutLeaf     18940     9720522

Out of interest, the next most frequent allocations are
    FcPatternObjectAddWithBinding 526029    10520580
    tt_face_load_eblc     42103     2529892

15 years agoDocument how to free return value of FcNameUnparse()
Behdad Esfahbod [Fri, 22 Aug 2008 22:25:22 +0000 (18:25 -0400)]
Document how to free return value of FcNameUnparse()

15 years agoAdd FcConfigReference() (#17124)
Behdad Esfahbod [Fri, 22 Aug 2008 22:08:07 +0000 (18:08 -0400)]
Add FcConfigReference() (#17124)

15 years agoDocument when config can be NULL (#17105)
Behdad Esfahbod [Fri, 22 Aug 2008 21:49:02 +0000 (17:49 -0400)]
Document when config can be NULL (#17105)

Note that this also fixes a bug with FcFontList() where previously
it was NOT checking whether the config is up-to-date.  May want to
keep the old behavior and document that ScanInterval is essentially
unused internally (FcFontSetList uses it, but we can remove that
too).

15 years agoHandle -h and --help according to GNU Coding Standards (#17104)
Behdad Esfahbod [Fri, 22 Aug 2008 20:51:33 +0000 (16:51 -0400)]
Handle -h and --help according to GNU Coding Standards (#17104)

Added -h instead of -?.  And upon -h and --help, write usave to stdout
instead of stdin, and return 0 instead of 1.

-? still works like before as that's what getopt returns upon unknown
arguments.

15 years agoAdd WenQuanYi fonts to default conf (#17262, from Mandriva)
Behdad Esfahbod [Fri, 22 Aug 2008 17:02:14 +0000 (13:02 -0400)]
Add WenQuanYi fonts to default conf (#17262, from Mandriva)

15 years agoAdd Sindhi .orth file. (#17140)
Behdad Esfahbod [Fri, 22 Aug 2008 07:51:57 +0000 (03:51 -0400)]
Add Sindhi .orth file. (#17140)

15 years agoUpdate sr.orth to actul subset of Cyrillic used by Serbian (#17208)
Behdad Esfahbod [Thu, 21 Aug 2008 21:17:04 +0000 (17:17 -0400)]
Update sr.orth to actul subset of Cyrillic used by Serbian (#17208)

15 years agoFix docs re 'orig' argument of FcPatternBuild and family
Behdad Esfahbod [Thu, 14 Aug 2008 19:27:16 +0000 (15:27 -0400)]
Fix docs re 'orig' argument of FcPatternBuild and family

Now call it 'p' or 'pattern', since it's modified in place.
There is no copying.

15 years ago[doc] Fix signature of FcConfigHome()
Behdad Esfahbod [Wed, 13 Aug 2008 20:45:18 +0000 (16:45 -0400)]
[doc] Fix signature of FcConfigHome()

We should write a test to automatically cross-check signatures
from public headers to docs.

15 years agoGet rid of $Id$ tags
Behdad Esfahbod [Wed, 13 Aug 2008 07:30:23 +0000 (03:30 -0400)]
Get rid of $Id$ tags

15 years ago[doc] Document that a zero rescanInterval disables automatic checks (#17103)
Behdad Esfahbod [Wed, 13 Aug 2008 07:16:39 +0000 (03:16 -0400)]
[doc] Document that a zero rescanInterval disables automatic checks (#17103)

15 years agoAdd FcPatternFilter() (#13016)
Behdad Esfahbod [Wed, 13 Aug 2008 06:50:35 +0000 (02:50 -0400)]
Add FcPatternFilter() (#13016)

15 years ago[doc] Add const decorator for FcPatternDuplicate()
Behdad Esfahbod [Wed, 13 Aug 2008 06:47:12 +0000 (02:47 -0400)]
[doc] Add const decorator for FcPatternDuplicate()

15 years agoImplement fc-list --verbose (#13015)
Behdad Esfahbod [Wed, 13 Aug 2008 06:24:42 +0000 (02:24 -0400)]
Implement fc-list --verbose (#13015)

A private FcObjectGetSet() is implemented that provides an
FcObjectSet of all registered elements.  FcFontSetList() is
then modified to use the object set from FcObjectGetSet() if
provided object-set is NULL.

Alternatively FcObjectGetSet() can be made public.  In that
case fc-list can use that as a base if --verbose is included,
and also add any elements provided by the user (though that has
no effect, as all elements from the cache are already registered).
Currently fc-list ignores user-provided elements if --verbose
is specified.

15 years agoAdd fc-query (#13019)
Behdad Esfahbod [Wed, 13 Aug 2008 05:31:18 +0000 (01:31 -0400)]
Add fc-query (#13019)

15 years agoUpdate man pages
Behdad Esfahbod [Wed, 13 Aug 2008 04:42:12 +0000 (00:42 -0400)]
Update man pages

15 years ago[fc-match] Fix list of getopt options in --help
Behdad Esfahbod [Wed, 13 Aug 2008 03:44:44 +0000 (23:44 -0400)]
[fc-match] Fix list of getopt options in --help

15 years agoAdd ~/.fonts.conf.d to default config (#17100)
Behdad Esfahbod [Tue, 12 Aug 2008 22:00:35 +0000 (18:00 -0400)]
Add ~/.fonts.conf.d to default config (#17100)

15 years agoUpdate Thai default families (#16223)
Behdad Esfahbod [Tue, 12 Aug 2008 21:54:45 +0000 (17:54 -0400)]
Update Thai default families (#16223)

Patch from Theppitak Karoonboonyanan

15 years ago[doc] Fix signatures of FcPatternGetFTFace and FcPatternGetLangSet (#16272)
Behdad Esfahbod [Tue, 12 Aug 2008 21:52:02 +0000 (17:52 -0400)]
[doc] Fix signatures of FcPatternGetFTFace and FcPatternGetLangSet (#16272)

15 years agoReplace RCS Id tags with the file name
Behdad Esfahbod [Tue, 12 Aug 2008 20:34:24 +0000 (16:34 -0400)]
Replace RCS Id tags with the file name

15 years agoAdd orth file for Maithili mai.orth (#15821)
Behdad Esfahbod [Tue, 12 Aug 2008 20:11:29 +0000 (16:11 -0400)]
Add orth file for Maithili mai.orth (#15821)

15 years agoWhen canonizing filenames, squash // and remove final / (#bug 16286)
Behdad Esfahbod [Tue, 12 Aug 2008 19:10:04 +0000 (15:10 -0400)]
When canonizing filenames, squash // and remove final / (#bug 16286)

The fact that we now drop final slashes from all filenames without
checking that the file name represents a directory may surprise some,
but it doesn't bother me really.

15 years ago[doc] Fix inaccuracy in FcFontRenderPrepare docs (#16985)
Behdad Esfahbod [Tue, 12 Aug 2008 18:32:40 +0000 (14:32 -0400)]
[doc] Fix inaccuracy in FcFontRenderPrepare docs (#16985)

15 years agoAvoid C99ism in Win32 code (#16651)
Behdad Esfahbod [Tue, 12 Aug 2008 18:10:03 +0000 (14:10 -0400)]
Avoid C99ism in Win32 code (#16651)

15 years agoRemove build manpage logfile if it exists
Benjamin Close [Wed, 11 Feb 2009 23:53:40 +0000 (10:23 +1030)]
Remove build manpage logfile if it exists

16 years agoMake sure alias files are built first (bug 16464)
Peter [Sun, 22 Jun 2008 16:21:05 +0000 (09:21 -0700)]
Make sure alias files are built first (bug 16464)

Signed-off-by: Keith Packard <keithp@keithp.com>
16 years agoBump version to 2.6.0 2.6.0
Keith Packard [Sun, 1 Jun 2008 02:24:35 +0000 (19:24 -0700)]
Bump version to 2.6.0

16 years agoBump version to 2.5.93 2.5.93
Keith Packard [Sun, 25 May 2008 00:52:41 +0000 (17:52 -0700)]
Bump version to 2.5.93

16 years agoIgnore empty <dir></dir> elements
Keith Packard [Sun, 25 May 2008 00:14:24 +0000 (17:14 -0700)]
Ignore empty <dir></dir> elements

An empty element would cause every file starting with the current
directory to be scanned, probably not what the user wanted.

16 years agoOops. Fix for bug 15928 used wrong path for installed fc-cache.
Keith Packard [Sun, 25 May 2008 00:01:12 +0000 (17:01 -0700)]
Oops. Fix for bug 15928 used wrong path for installed fc-cache.

fc-cache lives in $(bindir)/fc-cache, not $(bindir)/fc-cache/fc-cache.

16 years agoLibs.private needs freetype libraries
Keith Packard [Sat, 24 May 2008 23:32:27 +0000 (16:32 -0700)]
Libs.private needs freetype libraries

To make static linking work, fontconfig.pc needs @FREETYPE_LIBS@ in
Libs.private.

16 years agoFcConfigUptoDate breaks if directory mtime is in the future. Bug 14424.
Sayamindu Dasgupta [Sat, 24 May 2008 23:15:27 +0000 (16:15 -0700)]
FcConfigUptoDate breaks if directory mtime is in the future. Bug 14424.

At OLPC, we came across a bug where the Browse activity (based on xulrunner)
took 100% CPU after an upgrade/. It turns out the Mozilla uses
FcConfigUptoDate() to check if new fonts have been added to the system, and
this function was always returning FcFalse since we have the mtimes of some
font directories set in the future. The attached patch makes
FcConfigUptoDate() print a warning and return FcTrue if mtime of directories
are in the future.

16 years agoFix index/offset for 'decorative' matcher. Bug 15890.
Evgeniy Stepanov [Sat, 24 May 2008 23:09:17 +0000 (16:09 -0700)]
Fix index/offset for 'decorative' matcher. Bug 15890.

It seems indices in _FcMatchers array are slightly mixed up, MATCH_DECORATIVE
should be 10, not 11.

And MATCH_RASTERIZER_INDEX should be 13, not 12, right?

16 years agoFix Win32 build error: install tries to run fc-cache locally (bug 15928).
Glen Low [Sat, 24 May 2008 22:59:35 +0000 (15:59 -0700)]
Fix Win32 build error: install tries to run fc-cache locally (bug 15928).

When building in Win32 e.g. with MinGW, the install tries to run fc-cache
locally but the required DLL's are not in the path. I've included a patch for
this to fix Makefile.in to run fc-cache from bindir but obviously this should
be applied to Makefile.am instead.

(the second part of this patch was already in the tree)

16 years agoAdd Secwepemctsin Orthography. Bug 15996.
Neskie Manuel [Sat, 24 May 2008 22:51:41 +0000 (15:51 -0700)]
Add Secwepemctsin Orthography. Bug 15996.

16 years agoPersian conf update. (bug 16066).
Behdad Esfahbod [Sat, 24 May 2008 22:48:00 +0000 (15:48 -0700)]
Persian conf update. (bug 16066).

16 years agoFix FcStrDirname documentation. (bug 16068)
Alexey Khoroshilov [Sat, 24 May 2008 22:44:00 +0000 (15:44 -0700)]
Fix FcStrDirname documentation. (bug 16068)

Description of FcStrDirname is absent in the official documentation of
fontconfig-2.5.92. At the same time the source documentation contains
description of the function.

The problem is a consequence of a misprint in the format of the source
documentation file 'fcstring.fncs'. The finish mark of description of the
previous function is absent.

16 years agoAdd a copy of dolt.m4 to acinclude.m4.
Keith Packard [Mon, 5 May 2008 15:30:44 +0000 (08:30 -0700)]
Add a copy of dolt.m4 to acinclude.m4.

An ancient version of dolt.m4 was installed on my system leading to a broken
build on non-Linux systems.

16 years agoFreetype 2.3.5 (2007-jul-02) fixes indic font hinting. re-enable (bug 15822)
Keith Packard [Mon, 5 May 2008 02:08:31 +0000 (19:08 -0700)]
Freetype 2.3.5 (2007-jul-02) fixes indic font hinting. re-enable (bug 15822)

Autohinting for Indic fonts has been disabled since freetype could not handle
it properly. But since freetype-2.3.5, the hinting problems for indic fonts
have been fixed. Thus this is a request to enable the autohinting in
fontconfig again for all the indic fonts.

16 years agoAdd extended, caps, dunhill style mappings.
Keith Packard [Sun, 4 May 2008 08:27:42 +0000 (01:27 -0700)]
Add extended, caps, dunhill style mappings.

extended -> expanded.
caps, dunhill -> decorative

16 years agoFix a few memory tracking mistakes.
Keith Packard [Sun, 4 May 2008 08:26:40 +0000 (01:26 -0700)]
Fix a few memory tracking mistakes.

The built-in memory tracking code in fontconfig relies on a lot of manual
function call tracking. A pain, but it helps debug leaks.

16 years agoCall FcFini to make memory debugging easier
Keith Packard [Sun, 4 May 2008 08:25:04 +0000 (01:25 -0700)]
Call FcFini to make memory debugging easier

FcFini frees all libary data structures so valgrind should report 0
allocations in use when the program exits.

16 years agoBump version to 2.5.92 2.5.92
Keith Packard [Sun, 4 May 2008 03:39:07 +0000 (20:39 -0700)]
Bump version to 2.5.92

16 years agogit ignore doltcompile
Keith Packard [Sun, 4 May 2008 03:38:29 +0000 (20:38 -0700)]
git ignore doltcompile

16 years agoAllow for RC versions in README update
Keith Packard [Sun, 4 May 2008 03:37:49 +0000 (20:37 -0700)]
Allow for RC versions in README update

16 years agoDeal with libtool 2.2 which doesn't let us use LT_ variables. (bug 15692)
Keith Packard [Sun, 4 May 2008 03:23:37 +0000 (20:23 -0700)]
Deal with libtool 2.2 which doesn't let us use LT_ variables. (bug 15692)

Libtool-2.2 introduces new restrictions. So now it does not allow LT_*
variables as it includes marcros:

m4_pattern_forbid([^_?LT_[A-Z_]+$])

Rename the LT_ variables to LIBT_ to work around this restriction.

16 years agoAdd FreeType-dependent functions to fontconfig.def file. (bug 15415)
Carlo Bramini [Sun, 4 May 2008 03:17:16 +0000 (20:17 -0700)]
Add FreeType-dependent functions to fontconfig.def file. (bug 15415)

With PUBLIC_FILES no longer containing the freetype-dependent symbols, those
must be added to the fontconfig.def file build process.

16 years agoMake fc-match behave better when style is unknown (bug 15332)
Keith Packard [Sun, 4 May 2008 03:14:07 +0000 (20:14 -0700)]
Make fc-match behave better when style is unknown (bug 15332)

16 years agoUse of ":=" in src/Makefile.am is unportable (bug 14420)
Keith Packard [Sun, 4 May 2008 03:07:35 +0000 (20:07 -0700)]
Use of ":=" in src/Makefile.am is unportable (bug 14420)

Building 2.5.91 on Solaris with the native make(1) yields

...
Making all in src
make: Fatal error in reader: Makefile, line 313: Unexpected end of line seen
Current working directory /tmp/fontconfig-2.5.91/src
*** Error code 1

This is due to the following line (src/Makefile.am:143):

    CLEANFILES := $(ALIAS_FILES)

Changing that to a standard assignment ("=") fixes the problem.

I believe the ":=" is a typo. ALIAS_FILES is just a statically assigned
variable; it's not like evaluating it more than once would be a problem.

16 years agoRemove doltcompile in distclean
Keith Packard [Sun, 4 May 2008 03:06:48 +0000 (20:06 -0700)]
Remove doltcompile in distclean

16 years agofontconfig build fails if "head" is missing or unusable (bug 14304)
Ryan Schmidt [Sun, 4 May 2008 02:49:07 +0000 (19:49 -0700)]
fontconfig build fails if "head" is missing or unusable (bug 14304)

If the /usr/bin/head program is missing or unusable, or if an unusable head
program is listed first in the PATH, fontconfig fails to build

using "sed -n 1p" instead of "head -1" would be a suitable workaround.

16 years agoProper config path for static libraries in win32
Dennis Schridde [Sun, 4 May 2008 02:45:31 +0000 (19:45 -0700)]
Proper config path for static libraries in win32

Since fontconfig didn't have special handling for paths in static Windows
libraries, I've created a patch which should fix this.

Basically it does this:
fccfg.c:
If fontconfig_path was uninitialised it tries to get the directory the exe is
in and uses a fonts/ dir inside that.
fcxml.c:
In case the fonts.conf lists a <dir>CUSTOMFONTDIR</dir>, it searches for a
fonts/ directory where the exe is located.

16 years agoKorean font in the default config - replacing baekmuk with un (bug 13569)
Changwoo Ryu [Sun, 4 May 2008 02:39:56 +0000 (19:39 -0700)]
Korean font in the default config - replacing baekmuk with un (bug 13569)

I propose to replace the default Baekmuk Korean fonts with Un fonts.

Some people don't agree but most Korean people prefer Un fonts to Baekmuk
ones.  Un fonts just look better, at least in the most common Linux desktops
(antialiased, GNOME or KDE, high resolution).

16 years agoFontconfig options for freetype sub-pixel filter configuration
Sylvain Pasche [Sun, 4 May 2008 02:33:45 +0000 (19:33 -0700)]
Fontconfig options for freetype sub-pixel filter configuration

David Turner has modified FreeType to be able to render sub-pixel decimated
glyphs using different methods of filtering. Fontconfig needs new
configurables to support selecting these new filtering options. A patch
follows that would correspond to one available for Cairo in bug 10301.

16 years agoMerge some of Mandriva configuration into upstream configuration. Bug 13247
Frederic Crozat [Sun, 4 May 2008 02:26:09 +0000 (19:26 -0700)]
Merge some of Mandriva configuration into upstream configuration. Bug 13247

This is merging some parts of Mandriva fontconfig changes, mostly adding and
documenting fonts to common aliases.

16 years agoAdd --all flag to fc-match to show the untrimmed list. Bug 13018.
Keith Packard [Sun, 4 May 2008 02:09:57 +0000 (19:09 -0700)]
Add --all flag to fc-match to show the untrimmed list. Bug 13018.

16 years agoAdd some sample cursive and fantasy families.
Keith Packard [Sun, 4 May 2008 01:04:32 +0000 (18:04 -0700)]
Add some sample cursive and fantasy families.

16 years agoRemove size and dpi values from bitmap fonts. Bug 8765.
Keith Packard [Sun, 4 May 2008 00:43:39 +0000 (17:43 -0700)]
Remove size and dpi values from bitmap fonts. Bug 8765.

The only relevant information is the pixel size; don't report anything else.

16 years agoWork around for bitmap-only TrueType fonts that are missing the glyf table.
Keith Packard [Sun, 4 May 2008 00:19:43 +0000 (17:19 -0700)]
Work around for bitmap-only TrueType fonts that are missing the glyf table.

Bitmap-only TrueType fonts without a glyf table will not load a glyph when
FT_LOAD_NO_SCALE is set. Work around this by identifying TrueType fonts that have no
glyphs and select a single strike to measure the glyph map with.

16 years agoUse DOLT if available
Keith Packard [Sun, 4 May 2008 00:18:01 +0000 (17:18 -0700)]
Use DOLT if available

16 years agoFix build with !ENABLE_DOCS and no built manpages.
Eric Anholt [Fri, 18 Apr 2008 18:52:41 +0000 (11:52 -0700)]
Fix build with !ENABLE_DOCS and no built manpages.

16 years agoBump version to 2.5.91 2.5.91
Keith Packard [Thu, 10 Jan 2008 18:58:25 +0000 (10:58 -0800)]
Bump version to 2.5.91

16 years agogit-tag requires space after -m flag
Keith Packard [Thu, 10 Jan 2008 18:58:22 +0000 (10:58 -0800)]
git-tag requires space after -m flag

16 years agonew-version.sh was mis-editing files
Keith Packard [Thu, 10 Jan 2008 18:56:52 +0000 (10:56 -0800)]
new-version.sh was mis-editing files

16 years agoAdd more files to .gitignore
Keith Packard [Thu, 10 Jan 2008 18:48:00 +0000 (10:48 -0800)]
Add more files to .gitignore

16 years agoDistribute khmer font aliases
Keith Packard [Thu, 10 Jan 2008 18:43:33 +0000 (10:43 -0800)]
Distribute khmer font aliases

16 years agoCreate new-version.sh to help with releases, update INSTALL instructions
Keith Packard [Thu, 10 Jan 2008 18:40:41 +0000 (10:40 -0800)]
Create new-version.sh to help with releases, update INSTALL instructions

16 years agoDistribute new fcftint.h file
Keith Packard [Thu, 10 Jan 2008 16:58:57 +0000 (08:58 -0800)]
Distribute new fcftint.h file

16 years agoEliminate references to freetype from utility Makefile.am's
Keith Packard [Tue, 8 Jan 2008 20:34:19 +0000 (12:34 -0800)]
Eliminate references to freetype from utility Makefile.am's

The utility programs don't use any freetype interfaces, so they
don't need to directly refer to freetype headers or libraries.

16 years agoInclude fcftaliastail.h so that the freetype funcs are exported.
Keith Packard [Tue, 8 Jan 2008 00:31:06 +0000 (16:31 -0800)]
Include fcftaliastail.h so that the freetype funcs are exported.

This header file needs to be included at the end of every file that
exports any freetype symbols.

16 years agoRemove freetype requirement for build-time applications.
Keith Packard [Wed, 2 Jan 2008 16:47:14 +0000 (08:47 -0800)]
Remove freetype requirement for build-time applications.

This avoids requiring the freetype development files when cross compiling

16 years agoFix OOM failure case in FcPStackPush.
Keith Packard [Sun, 23 Dec 2007 22:06:41 +0000 (14:06 -0800)]
Fix OOM failure case in FcPStackPush.

When allocation for the node attributes fail, clean up the node allocation
and report failure.

16 years agoNot_contain should use strstr, not strcmp on strings. (bug 13632)
Hongbo Zhao [Thu, 13 Dec 2007 05:47:33 +0000 (21:47 -0800)]
Not_contain should use strstr, not strcmp on strings. (bug 13632)

For Version 2.5.0, (same for previous version 2.4.2), in source file fccfg.c,
on line 700,

Original:
      ret = FcStrCmpIgnoreCase (left.u.s, right.u.s) == 0;

Should change to:
      ret = FcStrStrIgnoreCase (left.u.s, right.u.s) == 0;

I think this is just a mistake when copy-n-paste similar codes in the same
function. Apparently, return for "Not_contain" should be just the inverse of
"Contain", not the same as "Equal".

16 years agoMove conf.avail/README to conf.d/README (bug 13392)
Keith Packard [Mon, 26 Nov 2007 00:35:55 +0000 (16:35 -0800)]
Move conf.avail/README to conf.d/README (bug 13392)

Because conf.d is where most people look first.  And the comment at the top
of the README file says conf.d/README too.

17 years agoBump version number to 2.5 2.5.0
Keith Packard [Wed, 14 Nov 2007 02:56:44 +0000 (18:56 -0800)]
Bump version number to 2.5

17 years agoWorkaround for stat() brokenness in Microsoft's C library (bug 8526)
Tor Lillqvist [Wed, 14 Nov 2007 00:41:55 +0000 (16:41 -0800)]
Workaround for stat() brokenness in Microsoft's C library (bug 8526)

Fix a couple of longstanding problems with fontconfig on Windows that
manifest themselves especially in GIMP. The root cause to the problems is in
Microsoft's incredibly stupid stat() implementation. Basically, stat()
returns wrong timestamp fields for files on NTFS filesystems on machines
that use automatic DST switching.

See for instance http://bugzilla.gnome.org/show_bug.cgi?id=154968 and
http://www.codeproject.com/datetime/dstbugs.asp

As fccache.c now looks at more fields in the stat struct I fill in them all.
I noticed that fstat() is used only on a fd just after opening it, so on
Win32 I just call my stat() replacement before opening instead...
Implementing a good replacement for fstat() would be harder because the code
in fccache.c wants to compare inode numbers. There are no (readily
accessible) inode numbers on Win32, so I fake it with the hash of the full
file name, in the case as it is on disk. And fstat() doesn't know the full
file name, so it would be rather hard to come up with a inode number to
identify the file.

The patch also adds similar handling for the cache directory as for the fonts
directory: If a cachedir element in fonts.conf contains the magic string
"WINDOWSTEMPDIR_FONTCONFIG_CACHE" it is replaced at runtime with a path under
the machine's (or user's) temp folder as returned by GetTempPath(). I don't
want to hardcode any pathnames in a fonts.conf intended to be distributed to
end-users, most of which who wouldn't know how to edit it anyway. And
requiring an installer to edit it gets complicated.

17 years agoRevert "Remove fcprivate.h, move the remaining macros to fcint.h."
Keith Packard [Tue, 13 Nov 2007 23:48:30 +0000 (15:48 -0800)]
Revert "Remove fcprivate.h, move the remaining macros to fcint.h."

This reverts commit b607922909acfc7ae96de688ed34efd19cd038ac.

Conflicts:

src/Makefile.am

Xft still uses the macros that are in fcprivate.h. Document those macros and
include fcprivate.h in the published header files.