Keith Packard [Wed, 30 Jun 2004 18:42:58 +0000 (18:42 +0000)]
Provided by: Lubos Lunak <l.lunak@suse.cz>
However FcConfigUptoDate() doesn't seem to work. See the attached patch.
First there's an obvious misplaced parenthesis making it return always
false, and second, even this call fails to detect font changes (e.g.
adding a new font to /usr/X11R6/lib/X11/fonts/truetype). The patch
should fix that as well. The problem seems to be triggered by my
fonts.conf specifying only /usr/X11R6/lib/X11/fonts , and therefore
config->configDirs doesn't include subdirs, unlike config->fontDirs.
Keith Packard [Tue, 30 Mar 2004 17:17:20 +0000 (17:17 +0000)]
Use code from HEAD in computing pixel sizes of fonts so that vageries in
FreeType over y_ppem/height issues don't affect what pixel size values
are used.
Tor Lillqvist [Sun, 28 Mar 2004 23:31:31 +0000 (23:31 +0000)]
Merge from HEAD:
If FcConfigHome() is NULL, use the temp folder. (I guess this branch
doesn't crash on a NULL config->cache, but still a good idea to have a
cache file, for performance, isn't it?)
Fix cut&paste error.
Remove CRs from the out file before comparing (needed on Windows).
Add share/doc directory. Add Fc*.3 man pages.
Move the LIBRARY and VERSION lines to the end, not to confuse libtool,
which expects the EXPORTS line to be the first. Add FcConfigEnableHome.
Check also for DLL_EXPORT as indication of being built as a DLL on Win32.
Tor Lillqvist [Sat, 22 Mar 2003 21:25:34 +0000 (21:25 +0000)]
Changes for Windows:
On Windows with gcc (a.k.a. mingw) build as a DLL.
We don't want to hardcode the fonts.conf file location in the DLL, so we
look up the DLL location at run-time in a DllMain() function. The
fonts.conf location is deduced from that.
The colon can't be used as path separator on Windows, semicolon is used
instead. File path components can be separated with either slash or
backslash. Absolute paths can also begin with a drive letter.
Add internal function FcStrLastSlash that strrchr's the last slash, or
backslash on Windows.
There is no link() on Windows. For atomicity checks, mkdir a lock directory
instead.
In addition to HOME, also look for USERPROFILE.
Recognize the special font directory token WINDOWSFONTDIR, to use the
system's font directory.
Remove the fontconfig-def.cpp that was obsolete. Add fontconfig.def(.in),
without internal functions.
Add a fontconfig-zip(.in) script, used to build a binary distribution.
Mike A. Harris [Wed, 5 Mar 2003 10:08:08 +0000 (10:08 +0000)]
Added back the configure macro options --disable-docs because otherwise
fontconfig installs docs into /usr/share/doc/fontconfig (with no
version number) unconditionally, causing RPM to fail the build due to
_unpackaged_files_terminate_build. We pick up the pregenerated docs
with %doc already.
Mike A. Harris [Wed, 5 Mar 2003 09:08:41 +0000 (09:08 +0000)]
Replace commented out %define at top of specfile with a comment preceding
the freetype2 define, since rpm expands macros in comments. Also remove
-j flag from make, as _smp_mflags expands to -jN already.
Owen Taylor [Mon, 3 Mar 2003 01:13:11 +0000 (01:13 +0000)]
Sun Mar 2 14:16:17 2003 Owen Taylor <otaylor@redhat.com>
fontconfig.spec.in: Improvements from Red Hat spec file.
{fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
docs/*.sgml: SGML fixes.
Keith Packard [Sun, 2 Mar 2003 19:12:23 +0000 (19:12 +0000)]
Switch back to -version-info for fontconfig as its at minor 0. Add
--system-only to fc-cache. Fix FC_VERSION to match product version
rather than .so version