1. 27 Dec, 2020 1 commit
  2. 14 Dec, 2020 1 commit
  3. 02 Nov, 2020 1 commit
    • Akira TAGOH's avatar
      Use memcpy instead of strcpy · 88156415
      Akira TAGOH authored
      To work around a warning with GCC10 on Win32
      warning: '__builtin___strncpy_chk' specified bound depends on the length of the source argument [-Wstringop-overflow=]
  4. 18 Aug, 2020 1 commit
    • Jan Tojnar's avatar
      Turn unknown attributes into warning · 9133e799
      Jan Tojnar authored
      As far as I can tell, fontconfig can recover from encountering an unknown attribute.
      And unknown elements already print a warning instead of an error, so let's make this a warning too.
  5. 27 Jul, 2020 1 commit
  6. 21 Oct, 2019 1 commit
  7. 08 Oct, 2019 1 commit
    • Akira TAGOH's avatar
      Warn as well if no directory name for cachedir provided · 75eadca2
      Akira TAGOH authored
      cachedir is used to determine where cache files are stored.
      the empty directory will ends up to put them under the top of
      directory of XDG_CACHE_HOME. that messes it up and must be avoided.
      As a note, if you want to read/write something from the top of
      XDG_DATA_HOME (dir) and/or XDG_CACHE_HOME (cachedir),
      put "." instead of the empty.
  8. 28 Aug, 2019 1 commit
  9. 23 Jul, 2019 1 commit
  10. 22 Jul, 2019 1 commit
  11. 26 Jun, 2019 1 commit
  12. 03 Apr, 2019 7 commits
    • Akira TAGOH's avatar
    • Akira TAGOH's avatar
      Fix make check fail on MinGW again · ad3f335c
      Akira TAGOH authored
    • Akira TAGOH's avatar
      Fix build issues on MinGW · b1bcc0cb
      Akira TAGOH authored
    • Akira TAGOH's avatar
      Add salt attribute to dir and remap-dir elements · 2e8ce635
      Akira TAGOH authored
      'salt' attribute affects a cache filename to generate different name from directory name.
      This is useful when sharing caches with host on sandbox and/or give a filename differently:
          <dir salt="randomdata">/usr/share/fonts</dir>
          <remap-dir as-path="/usr/share/fonts" salt="salt for /usr/share/fonts on host">/run/host/fonts</remap-dir>
      Applications can read caches as-is for fonts on /run/host/fonts where is mounted from host.
      and write a cache for their own fonts on /usr/share/fonts with different name.
    • Akira TAGOH's avatar
      Add reset-dirs element · def1d000
      Akira TAGOH authored
      This element removes all of fonts directories where added by
      dir elements. it is useful to override fonts dirs from system
      to their own dirs only.
    • Akira TAGOH's avatar
    • Keith Packard's avatar
      Replace UUID file mechanism with per-directory 'map' attribute [v2] · c4324f54
      Keith Packard authored
      The UUID files would be placed in each font directory to provide the
      unique cache name, independent of path, for that directory. The UUID
      files are undesireable for a couple of reasons:
       1) They must be placed in the font directories to be useful. This
          requires modifying the font directories themselves, introducing
          potential visible timestamp changes when running multiple
          applications, and makes the cache processing inconsistent between
          applications with permission to write to the font directories and
          applications without such permission.
       2) The UUID contents were generated randomly, which makes the font
          cache not reproducible across multiple runs.
      One proposed fix for 2) is to make the UUID dependent on the font
      directory path, but once we do that, we can simply use the font
      directory path itself as the key as the original MD5-based font cache
      naming mechanism did.
      The goal of the UUID file mechanism was to fix startup time of
      flatpaks; as the font path names inside the flatpak did not match the
      font path names in the base system, the font cache would need to be
      reconstructed the first time the flatpak was launched.
      The new mechanism for doing this is to allow each '<dir>' element in
      the configuration include a 'map' attribute. When looking for a cache
      file for a particular directory, if the directory name starts with the
      contents of the <dir> element, that portion of the name will be
      replaced with the value of the 'map' attribute.
      Outside of the flatpak, nothing need change -- fontconfig will build
      cache files using real directory names.
      Inside the flatpak, the custom fonts.conf file will now include
      mappings such as this:
      	<dir map="/usr/share/fonts">/run/host/fonts</dir>
      When scanning the directory /run/host/fonts/ttf, fontconfig will
      use the name /usr/share/fonts/ttf as the source for building the cache
      file name.
      The existing FC_FILE replacement code used for the UUID-based
      implementation continues to correctly adapt font path names seen by
      	Leave FcDirCacheCreateUUID stub around to avoid removing
      	public API function.
      	Document 'map' attribute of <dir> element in
      Suggested-by: Akira TAGOH's avatarAkira TAGOH <akira@tagoh.org>
      Signed-off-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
  13. 23 Jan, 2019 1 commit
  14. 30 Nov, 2018 1 commit
  15. 04 Oct, 2018 1 commit
  16. 02 Oct, 2018 1 commit
    • Akira TAGOH's avatar
      Add more prefix support in <dir> element · 1aa8b700
      Akira TAGOH authored
      Added two prefix modes:
        "relative" that makes the relative path be relative to current file
        "cwd" for relative to current working directory which implies current behavior.
      Resolves: #15
  17. 26 Jul, 2018 1 commit
  18. 25 Jul, 2018 2 commits
  19. 19 Jul, 2018 1 commit
  20. 25 May, 2018 2 commits
  21. 13 May, 2018 1 commit
  22. 17 Apr, 2018 1 commit
    • Tom Anderson's avatar
      Use realfilename for FcOpen in _FcConfigParse · 7ad010e8
      Tom Anderson authored
      realfilename is the file name after sysroot adjustments.  It should be used
      instead of filename in the call to FcOpen() which forwards the name directly to
      Though I don't explicitly request a sysroot, I was getting error messages saying
      "failed reading config file".  This CL fixes the error spam.
  23. 05 Feb, 2018 1 commit
  24. 23 Jan, 2018 1 commit
  25. 03 Jan, 2018 1 commit
  26. 16 Nov, 2017 1 commit
  27. 07 Nov, 2017 1 commit
    • Akira TAGOH's avatar
      Add the ruleset description support · 9a0fcb94
      Akira TAGOH authored
      Trying to address what these configuration files really do.
      This change allows to see the short description that mention
      the purpose of the content in the config file and obtain
      them through API.
      This change also encourage one who want to make some UI for
      the user-specific configuration management. it is the main
      purpose of this change for me though.
      Aside from that, I've also made programs translatable. so
      we see more dependencies on the build time for gettext,
      and itstool to generate PO from xml.
  28. 12 Oct, 2017 1 commit
  29. 21 Sep, 2017 2 commits
  30. 12 Sep, 2017 1 commit
  31. 13 Aug, 2017 1 commit