]> git.wh0rd.org Git - fontconfig.git/commitdiff
Create prototype /etc/fonts/conf.d directory with a few sample
authorKeith Packard <keithp@keithp.com>
Mon, 28 Feb 2005 18:56:15 +0000 (18:56 +0000)
committerKeith Packard <keithp@keithp.com>
Mon, 28 Feb 2005 18:56:15 +0000 (18:56 +0000)
    configuration files. Deprecate use of local.conf for local
    customizations in favor of this directory based scheme which is more
    easily integrated into installation systems.
Tag FC_EMBOLDEN as a boolean variable

ChangeLog
Makefile.am
conf.d/Makefile.am [new file with mode: 0644]
conf.d/README [new file with mode: 0644]
conf.d/no-bitmaps.conf [new file with mode: 0644]
conf.d/sub-pixel.conf [new file with mode: 0644]
conf.d/yes-bitmaps.conf [new file with mode: 0644]
configure.in
src/fcname.c

index a67f61917c0b872efb086c41cc7aae6b0b5fc904..5447b40057d45c9dbb9708613c4d650b3502c9b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2005-02-28  Keith Packard  <keithp@keithp.com>
+
+       * Makefile.am:
+       * conf.d/Makefile.am:
+       * conf.d/README:
+       * conf.d/no-bitmaps.conf:
+       * conf.d/sub-pixel.conf:
+       * conf.d/yes-bitmaps.conf:
+       * configure.in:
+       Create prototype /etc/fonts/conf.d directory with a few
+       sample configuration files.
+       Deprecate use of local.conf for local customizations in favor of
+       this directory based scheme which is more easily integrated into
+       installation systems.
+       
+       * src/fcname.c:
+       Tag FC_EMBOLDEN as a boolean variable
+
 2005-02-10  Keith Packard  <keithp@keithp.com>
 
        reviewed by: pborelli@katamail.com
index 16d2f218e34eff8ceba3f77a36d6935e0d3360dc..44a506d5326fd1f9aa3ae14689f9d08989e1a547 100644 (file)
 #  PERFORMANCE OF THIS SOFTWARE.
 
 DOCSRC=@DOCSRC@
-SUBDIRS=fontconfig fc-case fc-lang fc-glyphname src fc-cache fc-list fc-match $(DOCSRC) test
+SUBDIRS=fontconfig fc-case fc-lang fc-glyphname src \
+       fc-cache fc-list fc-match conf.d $(DOCSRC) test
 
 EXTRA_DIST = \
         fontconfig.pc.in \
         fonts.conf.in \
        fonts.dtd \
-       local.conf \
         fontconfig.spec.in \
         fontconfig.spec \
        fontconfig-zip.in
@@ -58,15 +58,6 @@ install-data-local:
          echo " $(INSTALL_DATA) fonts.conf $(DESTDIR)$(configdir)/fonts.conf"; \
          $(INSTALL_DATA) fonts.conf $(DESTDIR)$(configdir)/fonts.conf; \
        fi; fi
-       if [ -f $(DESTDIR)$(configdir)/local.conf ]; then \
-         echo "not overwriting existing $(DESTDIR)$(configdir)/local.conf"; \
-       else if [ -f $(srcdir)/local.conf ]; then \
-         echo " $(INSTALL_DATA) $(srcdir)/local.conf $(DESTDIR)$(configdir)/local.conf"; \
-         $(INSTALL_DATA) $(srcdir)/local.conf $(DESTDIR)$(configdir)/local.conf; \
-       else if [ -f local.conf ]; then \
-         echo " $(INSTALL_DATA) local.conf $(DESTDIR)$(configdir)/local.conf"; \
-         $(INSTALL_DATA) local.conf $(DESTDIR)$(configdir)/local.conf; \
-       fi; fi; fi
        if $(RUN_FC_CACHE_TEST); then \
            echo " fc-cache/fc-cache -f -v"; \
            fc-cache/fc-cache -f -v; \
@@ -90,14 +81,3 @@ uninstall-local:
             rm -f $(DESTDIR)$(configdir)/fonts.conf; \
          fi; \
        fi; fi
-       if [ -f $(srcdir)/local.conf ]; then \
-         if cmp -s $(srcdir)/local.conf $(DESTDIR)$(configdir)/local.conf; then \
-            echo " uninstall standard $(DESTDIR)$(configdir)/local.conf"; \
-            rm -f $(DESTDIR)$(configdir)/local.conf; \
-         fi; \
-       else if [ -f local.conf ]; then \
-         if cmp -s local.conf $(DESTDIR)$(configdir)/local.conf; then \
-            echo " uninstall standard $(DESTDIR)$(configdir)/local.conf"; \
-            rm -f $(DESTDIR)$(configdir)/local.conf; \
-         fi; \
-       fi; fi
diff --git a/conf.d/Makefile.am b/conf.d/Makefile.am
new file mode 100644 (file)
index 0000000..410a418
--- /dev/null
@@ -0,0 +1,34 @@
+# 
+#  $Id$
+# 
+#  Copyright © 2005 Keith Packard
+# 
+#  Permission to use, copy, modify, distribute, and sell this software and its
+#  documentation for any purpose is hereby granted without fee, provided that
+#  the above copyright notice appear in all copies and that both that
+#  copyright notice and this permission notice appear in supporting
+#  documentation, and that the name of Keith Packard not be used in
+#  advertising or publicity pertaining to distribution of the software without
+#  specific, written prior permission.  Keith Packard makes no
+#  representations about the suitability of this software for any purpose.  It
+#  is provided "as is" without express or implied warranty.
+# 
+#  KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+#  EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+#  PERFORMANCE OF THIS SOFTWARE.
+
+CONF_FILES = \
+       no-bitmaps.conf \
+       yes-bitmaps.conf \
+       sub-pixel.conf
+
+EXTRA_DIST = $(CONF_FILES)
+
+configdir=$(CONFDIR)
+confddir=$(configdir)/conf.d
+
+confd_DATA=$(CONF_FILES)
diff --git a/conf.d/README b/conf.d/README
new file mode 100644 (file)
index 0000000..7e6cd2c
--- /dev/null
@@ -0,0 +1,8 @@
+conf.d/README
+
+Each file in this directory is a fontconfig configuration file.  Fontconfig
+scans this directory, loading all files of the form [0-9][0-9]*, so if you
+want to use any of these options, link them to a name of that form.  E.g.
+
+       $ ln -s no-bitmaps.conf 10no-bitmaps.conf
+
diff --git a/conf.d/no-bitmaps.conf b/conf.d/no-bitmaps.conf
new file mode 100644 (file)
index 0000000..e8fb6a9
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!-- /etc/fonts/conf.d/no-bitmaps.conf -->
+<fontconfig>
+<!-- Reject bitmap fonts -->
+ <selectfont>
+  <rejectfont>
+   <pattern>
+     <patelt name="scalable"><bool>false</bool></patelt>
+   </pattern>
+  </rejectfont>
+ </selectfont>
+</fontconfig>
diff --git a/conf.d/sub-pixel.conf b/conf.d/sub-pixel.conf
new file mode 100644 (file)
index 0000000..f3933c8
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!-- conf.d/sub-pixel.conf -->
+<fontconfig>
+<!--  Enable sub-pixel rendering --> 
+  <match target="font">
+    <test qual="all" name="rgba">
+      <const>unknown</const>
+    </test>
+    <edit name="rgba" mode="assign"><const>rgb</const></edit>
+  </match>
+</fontconfig>
diff --git a/conf.d/yes-bitmaps.conf b/conf.d/yes-bitmaps.conf
new file mode 100644 (file)
index 0000000..c539c70
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!-- conf.d/yes-bitmaps.conf -->
+<fontconfig>
+<!-- Accept bitmap fonts -->
+ <selectfont>
+  <acceptfont>
+   <pattern>
+     <patelt name="scalable"><bool>false</bool></patelt>
+   </pattern>
+  </acceptfont>
+ </selectfont>
+</fontconfig>
index 22d8bc6dc44d28b3ad650f53ffbf6655622c639b..6d9ca65140b5b4412c29c718d5e89432e0f7cac0 100644 (file)
@@ -467,6 +467,7 @@ fc-glyphname/Makefile
 fc-case/Makefile
 src/Makefile
 src/fontconfig.def
+conf.d/Makefile
 fc-cache/Makefile
 fc-list/Makefile
 fc-match/Makefile
index 1cce324a912210b3064d4ec1f302bdc5f7b081d9..3b9454dd477abb682f930da391342e4c2a93920d 100644 (file)
@@ -69,6 +69,7 @@ static const FcObjectType _FcBaseObjectTypes[] = {
     { FC_FONTVERSION,  FcTypeInteger },
     { FC_CAPABILITY,   FcTypeString },
     { FC_FONTFORMAT,   FcTypeString },
+    { FC_EMBOLDEN,     FcTypeBool },
 };
 
 #define NUM_OBJECT_TYPES    (sizeof _FcBaseObjectTypes / sizeof _FcBaseObjectTypes[0])