Difference between revisions of "FontConfig"
(I added the "Contents" section from BLFS.) |
|||
(17 intermediate revisions by 5 users not shown) | |||
Line 2: | Line 2: | ||
|-valign="top" | |-valign="top" | ||
!Download Source: | !Download Source: | ||
− | | http://fontconfig.org/release/fontconfig- | + | | http://fontconfig.org/release/fontconfig-{{FontConfig-Version}}.tar.gz |
|} | |} | ||
---- | ---- | ||
− | + | {{Package-Introduction|Fontconfig is a library for font customization and configuration.|http://fontconfig.org/wiki/}} | |
− | |||
− | |||
== Dependencies == | == Dependencies == | ||
Line 16: | Line 14: | ||
* [[FreeType]] | * [[FreeType]] | ||
* [[expat]] | * [[expat]] | ||
+ | |||
=== Optional === | === Optional === | ||
+ | * [[LibXML2]] | ||
* [[DocBook Utils]] | * [[DocBook Utils]] | ||
− | + | {{Note|If you have DocBook-utils installed and you remove the <i>--disable-docs</i> parameter from the configure command below, you must have [[Perl Module SGMLS|SGMLS]] and [[JadeTeX]] installed also, or the Fontconfig build will fail.}} | |
+ | |||
+ | == Configuration Information == | ||
+ | |||
+ | {|style="text-align: left;" | ||
+ | |- | ||
+ | |<i>--enable-libxml2</i>: use libxml2 instead of Expat. | ||
+ | |} | ||
== Non-Multilib == | == Non-Multilib == | ||
Line 26: | Line 33: | ||
./configure --prefix=/usr --sysconfdir=/etc \ | ./configure --prefix=/usr --sysconfdir=/etc \ | ||
− | --disable-docs --localstatedir=/var --without-add-fonts | + | --disable-docs --localstatedir=/var --without-add-fonts && |
− | + | ||
make | make | ||
Line 35: | Line 42: | ||
install -v -m644 doc/*.3 /usr/share/man/man3 && | install -v -m644 doc/*.3 /usr/share/man/man3 && | ||
install -v -m644 doc/*.5 /usr/share/man/man5 && | install -v -m644 doc/*.5 /usr/share/man/man5 && | ||
− | install -v -m755 | + | install -v -m755 -d /usr/share/doc/fontconfig-{{FontConfig-Version}}/fontconfig-devel && |
− | + | install -v -m644 doc/*.{html,pdf,txt} /usr/share/doc/fontconfig-{{FontConfig-Version}} && | |
− | install -v -m644 doc/*.{html,pdf,txt} | + | install -v -m644 doc/fontconfig-devel/* /usr/share/doc/fontconfig-{{FontConfig-Version}}/fontconfig-devel |
− | |||
− | install -v -m644 doc/fontconfig-devel/* | ||
− | |||
=== Command Explanations === | === Command Explanations === | ||
Line 48: | Line 52: | ||
--without-add-fonts: This switch disables the automatic search for X Window System fonts which, if found, may confuse some applications. | --without-add-fonts: This switch disables the automatic search for X Window System fonts which, if found, may confuse some applications. | ||
− | --with-docdir=/usr/share/doc/fontconfig- | + | --with-docdir=/usr/share/doc/fontconfig-{{FontConfig-Version}}: Though this parameter seems counter-intuitive following the preceding parameter to the '''configure''' command, it is used so that if the builder removes the --disable-docs parameter, the documentation will be installed in a versioned directory name instead of the default /usr/share/doc/fontconfig. |
== Multilib == | == Multilib == | ||
Line 56: | Line 60: | ||
Compile the package: | Compile the package: | ||
− | USE_ARCH=32 CC="gcc ${BUILD32}" ./configure --prefix=/usr \ | + | USE_ARCH=32 CC="gcc ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \ |
− | --sysconfdir=/etc --localstatedir=/var --disable-docs --without-add-fonts | + | ./configure --prefix=/usr \ |
− | + | --sysconfdir=/etc --localstatedir=/var --disable-docs --without-add-fonts && | |
make | make | ||
Line 69: | Line 73: | ||
Compile the package: | Compile the package: | ||
− | USE_ARCH=n32 CC="gcc ${BUILDN32}" ./configure --prefix=/usr \ | + | USE_ARCH=n32 CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \ |
+ | ./configure --prefix=/usr \ | ||
--sysconfdir=/etc --localstatedir=/var --disable-docs --without-add-fonts \ | --sysconfdir=/etc --localstatedir=/var --disable-docs --without-add-fonts \ | ||
− | |||
--libdir=/usr/lib32 && | --libdir=/usr/lib32 && | ||
make | make | ||
Line 83: | Line 87: | ||
Compile the package: | Compile the package: | ||
− | USE_ARCH=64 CC="gcc ${BUILD64}" ./configure --prefix=/usr \ | + | USE_ARCH=64 CC="gcc ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \ |
+ | ./configure --prefix=/usr \ | ||
--sysconfdir=/etc --localstatedir=/var --disable-docs --without-add-fonts \ | --sysconfdir=/etc --localstatedir=/var --disable-docs --without-add-fonts \ | ||
− | -- | + | --libdir=/usr/lib64 --with-freetype-config=/usr/bin/freetype-config && |
− | |||
make | make | ||
Line 94: | Line 98: | ||
install -v -m644 doc/*.3 /usr/share/man/man3 && | install -v -m644 doc/*.3 /usr/share/man/man3 && | ||
install -v -m644 doc/*.5 /usr/share/man/man5 && | install -v -m644 doc/*.5 /usr/share/man/man5 && | ||
− | install -v -m755 | + | install -v -m755 -d /usr/share/doc/fontconfig-{{FontConfig-Version}}/fontconfig-devel && |
− | + | install -v -m644 doc/*.{html,pdf,txt} /usr/share/doc/fontconfig-{{FontConfig-Version}} && | |
− | install -v -m644 doc/*.{html,pdf,txt} | + | install -v -m644 doc/fontconfig-devel/* /usr/share/doc/fontconfig-{{FontConfig-Version}}/fontconfig-devel |
− | |||
− | install -v -m644 doc/fontconfig-devel/* | ||
− | |||
= Contents = | = Contents = | ||
Line 105: | Line 106: | ||
{| style="text-align: left;" | {| style="text-align: left;" | ||
|-valign="top" | |-valign="top" | ||
− | ! Installed Programs: | + | !Installed Programs: |
− | | fc-cache, fc-list, and fc-match | + | |fc-cache, fc-list, and fc-match |
|-valign="top" | |-valign="top" | ||
− | ! Installed Libraries: | + | !Installed Libraries: |
− | | libfontconfig.{so,a} | + | |libfontconfig.{so,a} |
|-valign="top" | |-valign="top" | ||
− | ! Installed Directories: | + | !Installed Directories: |
− | | /etc/fonts, /usr/include/fontconfig | + | |/etc/fonts, /usr/include/fontconfig, /usr/share/doc/fontconfig-{{FontConfig-Version}} |
|} | |} | ||
Line 119: | Line 120: | ||
{| style="text-align: left;" | {| style="text-align: left;" | ||
|-valign="top" | |-valign="top" | ||
− | ! fc-cache | + | !fc-cache |
− | | is used to create font information caches. | + | |is used to create font information caches. |
|-valign="top" | |-valign="top" | ||
− | ! fc-list | + | !fc-list |
− | | is used to create font lists. | + | |is used to create font lists. |
|-valign="top" | |-valign="top" | ||
− | ! fc-match | + | !fc-match |
− | | is used to match available fonts, or find fonts that match a given pattern. | + | |is used to match available fonts, or find fonts that match a given pattern. |
|-valign="top" | |-valign="top" | ||
− | ! libfontconfig.{so,a} | + | !libfontconfig.{so,a} |
− | | contains functions used by the Fontconfig programs and also by other programs to configure or customize font access. | + | |contains functions used by the Fontconfig programs and also by other programs to configure or customize font access. |
|} | |} | ||
+ | |||
+ | [[Category:Graphics Libraries]] |
Latest revision as of 18:11, 5 December 2010
Download Source: | http://fontconfig.org/release/fontconfig-2.8.0.tar.gz |
---|
Contents
Introduction to FontConfig
Fontconfig is a library for font customization and configuration.
Project Homepage: http://fontconfig.org/wiki/
Dependencies
Required
Optional
Configuration Information
--enable-libxml2: use libxml2 instead of Expat. |
Non-Multilib
Compile the package:
./configure --prefix=/usr --sysconfdir=/etc \ --disable-docs --localstatedir=/var --without-add-fonts && make
Install the package
make install && install -v -m644 doc/*.3 /usr/share/man/man3 && install -v -m644 doc/*.5 /usr/share/man/man5 && install -v -m755 -d /usr/share/doc/fontconfig-2.8.0/fontconfig-devel && install -v -m644 doc/*.{html,pdf,txt} /usr/share/doc/fontconfig-2.8.0 && install -v -m644 doc/fontconfig-devel/* /usr/share/doc/fontconfig-2.8.0/fontconfig-devel
Command Explanations
--disable-docs: This switch avoids building the documentation (the release tarball includes pre-generated documentation).
--without-add-fonts: This switch disables the automatic search for X Window System fonts which, if found, may confuse some applications.
--with-docdir=/usr/share/doc/fontconfig-2.8.0: Though this parameter seems counter-intuitive following the preceding parameter to the configure command, it is used so that if the builder removes the --disable-docs parameter, the documentation will be installed in a versioned directory name instead of the default /usr/share/doc/fontconfig.
Multilib
32Bit
Compile the package:
USE_ARCH=32 CC="gcc ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \ ./configure --prefix=/usr \ --sysconfdir=/etc --localstatedir=/var --disable-docs --without-add-fonts && make
Install the package
make install
N32
Compile the package:
USE_ARCH=n32 CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \ ./configure --prefix=/usr \ --sysconfdir=/etc --localstatedir=/var --disable-docs --without-add-fonts \ --libdir=/usr/lib32 && make
Install the package
make install
64Bit
Compile the package:
USE_ARCH=64 CC="gcc ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \ ./configure --prefix=/usr \ --sysconfdir=/etc --localstatedir=/var --disable-docs --without-add-fonts \ --libdir=/usr/lib64 --with-freetype-config=/usr/bin/freetype-config && make
Install the package
make install && install -v -m644 doc/*.3 /usr/share/man/man3 && install -v -m644 doc/*.5 /usr/share/man/man5 && install -v -m755 -d /usr/share/doc/fontconfig-2.8.0/fontconfig-devel && install -v -m644 doc/*.{html,pdf,txt} /usr/share/doc/fontconfig-2.8.0 && install -v -m644 doc/fontconfig-devel/* /usr/share/doc/fontconfig-2.8.0/fontconfig-devel
Contents
Installed Programs: | fc-cache, fc-list, and fc-match |
---|---|
Installed Libraries: | libfontconfig.{so,a} |
Installed Directories: | /etc/fonts, /usr/include/fontconfig, /usr/share/doc/fontconfig-2.8.0 |
Short Descriptions
fc-cache | is used to create font information caches. |
---|---|
fc-list | is used to create font lists. |
fc-match | is used to match available fonts, or find fonts that match a given pattern. |
libfontconfig.{so,a} | contains functions used by the Fontconfig programs and also by other programs to configure or customize font access. |