1. 01 Feb, 2022 1 commit
  2. 31 Jan, 2022 2 commits
  3. 28 Jan, 2022 1 commit
  4. 17 Jan, 2022 1 commit
  5. 13 Jan, 2022 5 commits
  6. 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.
      ```
      7b09c81d
  7. 21 Dec, 2021 2 commits
  8. 09 Dec, 2021 3 commits
  9. 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.
      ce00010b
  10. 16 Nov, 2021 1 commit
  11. 11 Nov, 2021 1 commit
  12. 09 Nov, 2021 2 commits
  13. 08 Nov, 2021 1 commit
  14. 28 Oct, 2021 1 commit
  15. 14 Oct, 2021 1 commit
  16. 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
      /path/to/realpath/foo.conf
      $ FONTCONFIG_FILE=/path/to/foo.conf fc-cache -v
      Font directories:
              /path/to/fonts
      /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/relpath/fonts
      /path/to/realpath/fonts: skipping, existing cache is valid: 1 fonts, 0 dirs
      /path/to/cachedir: cleaning cache directory
      fc-cache: succeeded
      
      Fixes #290
      1d766999
  17. 08 Oct, 2021 1 commit
  18. 05 Oct, 2021 1 commit
  19. 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.
      6e414d61
    • 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.
      efc71a3c
  20. 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.
      6e687630
  21. 25 Aug, 2021 1 commit
  22. 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
      c7891755
    • 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.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1981500
      5d84745e
  23. 18 Aug, 2021 1 commit
  24. 20 Jul, 2021 3 commits
  25. 19 Jul, 2021 1 commit
    • Ryan Schmidt's avatar
      Restore fcatomic compatibility with Mac OS X 10.4. · 3a7ad1b4
      Ryan Schmidt authored and Akira TAGOH's avatar Akira TAGOH committed
      Reverts the part of 6def6616 that
      removed the fc_atomic_ptr_cmpexch compatibility code for systems earlier
      than Mac OS X 10.5.
      
      Reverts the part of 447b9ccc that moved
      the definition of fc_atomic_ptr_get into the Mac OS X > 10.4 block. That
      code is still needed on 10.4 and is implemented using functions that are
      available on 10.4.
      
      Compare against MAC_OS_X_VERSION_MIN_REQUIRED using a number not a
      constant because the constant is not available on earlier SDKs.
      3a7ad1b4
  26. 14 Jul, 2021 2 commits