skia2/third_party/fontconfig
commit-bot@chromium.org 83f56922e2 Fix Mac fontconfig build (try 2)
The Mac fontconfig just #defines the cache directory, which works fine if fontconfig never has to look up any fonts (the case until now). If it has to actually find fonts from the disk, the cache directory and config directory need to be properly defined as well as running fc-cache to populate the cache directory.

Populating the cache directory can take some time, but should only happen on a clean build. To remove this extra time, we have to not build poppler on Mac, which can now be accomplished with GYP_DEFINES="skia_mac_poppler=0"

R=epoger@google.com

Author: vandebo@chromium.org

Review URL: https://codereview.chromium.org/132333002

git-svn-id: http://skia.googlecode.com/svn/trunk@13007 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-01-09 22:54:26 +00:00
..
config Fix Mac fontconfig build (try 2) 2014-01-09 22:54:26 +00:00
LICENSE Add libpoppler for PDF rendering, take 2 2013-08-20 18:57:01 +00:00
LICENSE.win Add libpoppler for PDF rendering, take 2 2013-08-20 18:57:01 +00:00
process-template.py Fix Mac fontconfig build (try 2) 2014-01-09 22:54:26 +00:00
README.chromium Fix Mac fontconfig build (try 2) 2014-01-09 22:54:26 +00:00

Name: fontconfig
Short Name: fontconfig
URL: git://anongit.freedesktop.org/fontconfig
Version: 2.10.93
License: MIT, except for Windows-specific files, which are LGPL
License File: LICENSE
Security Critical: No

Description:
A library for configuring and customizing font access.
Used in Skia as a dependency of libpoppler, for PDF rasterization during
testing.

Local Modifications:
No changes to files from the upstream repository.
Platform-specific configuration files added to
third_party/fontconfig/config/(platform):
  config.h
  fcstdint.h
  src/fcalias.h
  src/fcaliastail.h
  src/fcftalias.h
  src/fcftaliastail.h
  These are Windows replacements for POSIX headers:
    dirent.c
    dirent.h
    unistd.h

Autogenerated files (consistent across platforms) added to
third_party/fontconfig/config:
  fc-case/fccase.h
  fc-glyphname/fcglyphname.h
  fc-lang/fclang.h
  src/fcobjshash.h

On Mac, these are the files generated by
  ./configure --with-add-fonts=/System/Library/Fonts,/Library/Fonts
config/mac/config.h.template then has a section added to the top:

+/* Manually added template defines */
+#define FC_CACHEDIR "@FC_CACHEDIR@"
+#define FONTCONFIG_PATH "@FONTCONFIG_PATH@"

On Windows, the configuration files were from
http://comments.gmane.org/gmane.comp.fonts.fontconfig/4438
(fontconfig development list).