1. 04 Feb, 2022 3 commits
  2. 01 Feb, 2022 1 commit
  3. 31 Jan, 2022 2 commits
  4. 28 Jan, 2022 1 commit
  5. 17 Jan, 2022 1 commit
  6. 13 Jan, 2022 5 commits
  7. 09 Jan, 2022 1 commit
    • Nirbheek Chauhan's avatar
      meson: Remove summary() from version_compare() block · 7b09c81d
      Nirbheek Chauhan authored
      The version_compare() block is redundant because we require meson 0.56
      now, and it fixes a spurious warning:
      fontconfig| WARNING: Project targeting '>= 0.53' but tried to use feature introduced in '0.54.0': list_sep arg in summary.
  8. 21 Dec, 2021 2 commits
  9. 09 Dec, 2021 3 commits
  10. 06 Dec, 2021 1 commit
    • Ben Wagner's avatar
      Actually skip leading spaces in style name · ce00010b
      Ben Wagner authored
      Because the loop body is just 'break' the loop never loops and at most
      one leading space is skipped. Remove the body to allow the loop to
      continue. Found with ClangTidy.
  11. 16 Nov, 2021 1 commit
  12. 11 Nov, 2021 1 commit
  13. 09 Nov, 2021 2 commits
  14. 08 Nov, 2021 1 commit
  15. 28 Oct, 2021 1 commit
  16. 14 Oct, 2021 1 commit
  17. 11 Oct, 2021 1 commit
    • Akira TAGOH's avatar
      Resolves symlinks against <dir prefix="relative"> · 1d766999
      Akira TAGOH authored
      When a config file is symlinked and obtaining an relative path from it for <dir>,
      it behaved like:
      $ realpath /path/to/foo.conf
      $ FONTCONFIG_FILE=/path/to/foo.conf fc-cache -v
      Font directories:
      /path/to/fonts: skipping, existing cache is valid: 1 fonts, 0 dirs
      /path/to/cachedir: cleaning cache directory
      fc-cache: succeeded
      And after this change:
      $ FONTCONFIG_FILE=/path/to/foo.conf fc-cache -v
      Font directories:
      /path/to/realpath/fonts: skipping, existing cache is valid: 1 fonts, 0 dirs
      /path/to/cachedir: cleaning cache directory
      fc-cache: succeeded
      Fixes #290
  18. 08 Oct, 2021 1 commit
  19. 05 Oct, 2021 1 commit
  20. 06 Sep, 2021 2 commits
    • Ben Wagner's avatar
      Extend test thread args lifetime · 6e414d61
      Ben Wagner authored and Akira TAGOH's avatar Akira TAGOH committed
      The argument passed to each thread in test-pthread.c indicates a thread
      number to report when finished. This value is read out by the thread
      into a local variable early in the thread's execution. Currently, the
      address passed as this argument is the address of a loop local. However,
      it is possible that the created thread will not be scheduled to run or
      will not read the argument before the thread creation loop finishes and
      the local is destroyed. This can lead to odd behavior, usually observed
      as multiple threads reporting the same thread_num.
      Fix this issue by storing the thread arguments in a parallel array to
      the array of threads. This ensures that the thread arguments are in
      scope as long as the threads themselves.
      Discovered with tests/test-pthread with AddressSanitizer enabled.
    • Ben Wagner's avatar
      Free local FcCache lock on contention · efc71a3c
      Ben Wagner authored and Akira TAGOH's avatar Akira TAGOH committed
      If two threads attempt to create the FcCache lock in lock_cache at the
      same time, both threads may create and initialize a local FcMutex. One
      thread will atomically make cache_lock point to its FcMutex. The other
      thread currently calls FcMutexFinish on the local lock, but does not
      free it. Change this behavior to free the unused lock.
      Found with test/test-pthread on an LeakSanitizer enabled build.
  21. 31 Aug, 2021 1 commit
    • Ben Wagner's avatar
      Add memory order constraints to C11 atomics · 6e687630
      Ben Wagner authored
      Reduce the strength of the C11 atomics from memory_order_seq_cst to the
      actually required memory order constraints for each operation. In
      addition to reflecting the already documented memory order constraints,
      this should allow for better code generation.
  22. 25 Aug, 2021 1 commit
  23. 24 Aug, 2021 2 commits
    • Akira TAGOH's avatar
      Reflect matching results to binding in FcPattern · c7891755
      Akira TAGOH authored
      This change allows applications to see what property was matched perfectly
      and help to filter out for their needs.
      Fixes #294
    • Akira TAGOH's avatar
      Bump the cache version to 8 · 5d84745e
      Akira TAGOH authored
      Bump the cache version to avoid unexpected behavior in
      older version of fontconfig.
      There was no real incompatible features introduced in a cache.
      But the older version of fontconfig can't deal with variable fonts
      and then it failed. To avoid this breakage, you may want to choose
      one of options like:
      1) Applying this change to fontconfig in host and remove all the
      fontconfig caches and then regenerate them by fc-cache linked with
      older one and new one. or simply run applications.
      You'll see two versions of caches in the cache directories.
      2) Remove variable fonts on system and remove all the fontconfig
      caches too. then regenerate caches. You'll still see one version of
      caches there but without the entries of variable fonts.
      After that, the problem should be gone.
  24. 18 Aug, 2021 1 commit
  25. 20 Jul, 2021 3 commits