1. 28 Oct, 2019 2 commits
    • Matthieu Herrb's avatar
      Avoid chmod() calls on directories · 7058a177
      Matthieu Herrb authored
      There are several reasons for that:
      - the reason that triggered this patch is that the pledge() sandboxing
      system on OpenBSD forbids chmod() by default in many pledged
      applications. When one of these needs to rebuild the font cache it
      will fail because of these unneeded chmod() calls.
      - trying to change existing directories access rights isn't a good idea
      - and lastly doing mkdir() && chmod() is racy. Use umask() to make shure
      the directory is created with the proper access rights from start.
      Signed-off-by: Matthieu Herrb's avatarMatthieu Herrb <matthieu@herrb.eu>
    • Akira TAGOH's avatar
      Read latest cache in paths · c9862b6e
      Akira TAGOH authored
      Right now fontconfig uses a cache found first in a path and
      cachedirs are the order of the system-wide path and then the user path.
      this is due to avoid writing caches into the user path when running as root.
      However, changing caches by certain config only, e.g. using <match target="scan">
      may not take effect by this behavior, because it may be stored into the user path.
      Thus, needing to find the latest cache out from paths.
      Fixes fontconfig/fontconfig#182
  2. 21 Oct, 2019 1 commit
  3. 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.
  4. 29 Aug, 2019 1 commit
  5. 28 Aug, 2019 1 commit
  6. 21 Aug, 2019 1 commit
  7. 09 Aug, 2019 1 commit
  8. 07 Aug, 2019 1 commit
  9. 31 Jul, 2019 1 commit
  10. 30 Jul, 2019 1 commit
  11. 29 Jul, 2019 1 commit
  12. 26 Jul, 2019 2 commits
    • Akira TAGOH's avatar
      Add 35-lang-normalize.conf · f555f50a
      Akira TAGOH authored
      This avoids a situation where the score of lang becomes lower or equal to others
      and then figures out the best font according to other properties and the order
      of family names.
      This typically happens only when our orthography files are the subset of lang
      in patterns. i.e. fc-match :lang=en-us to match on en.orth.
      In this case, the score is lower than the exact match (en to en) and the partial
      match (en to en-us). thus, the result of 'fc-match :lang=en-us' isn't necessarily
      same to 'fc-match :lang=en'.
      So 35-lang-normalize.conf contains languages only which is available as orth
      without countries and tries to update properties to match on orth exactly like:
          <test name="lang" compare="contains">
          <edit name="lang" mode="assign" binding="same">
      Fixes fontconfig/fontconfig#155
    • Akira TAGOH's avatar
  13. 23 Jul, 2019 4 commits
  14. 22 Jul, 2019 1 commit
  15. 09 Jul, 2019 2 commits
    • Akira TAGOH's avatar
      Add English name first into a cache · 29603916
      Akira TAGOH authored
      In some cases, non-English languages might appears first in current order.
      and when having English name with non-English language ID like Google Noto CJK TC,
      English name with English language ID will be dropped due to duplicate.
      This fixes that issue.
    • Akira TAGOH's avatar
      Fix a typo · a57f22bf
      Akira TAGOH authored
  16. 08 Jul, 2019 1 commit
  17. 02 Jul, 2019 1 commit
  18. 26 Jun, 2019 1 commit
  19. 21 Jun, 2019 1 commit
  20. 19 Jun, 2019 1 commit
  21. 18 Jun, 2019 1 commit
    • Akira TAGOH's avatar
      Fix a typo on masking face id · c0dc7626
      Akira TAGOH authored
      Most of functionality should be moved to FcFreeTypeQueryAll()
      for varfonts now though, if doing the same to FcFreeTypeQuery()
      returns Null pattern because of inappropriate masking.
      This might be not that big deal for varfonts support. but
      Fixes fontconfig/fontconfig#162
      Reported by Kevin Scott
  22. 10 Jun, 2019 2 commits
  23. 06 Jun, 2019 1 commit
  24. 03 Jun, 2019 1 commit
  25. 09 May, 2019 1 commit
  26. 08 May, 2019 1 commit
  27. 15 Apr, 2019 2 commits
  28. 04 Apr, 2019 5 commits