1. 30 Nov, 2018 1 commit
  2. 03 Sep, 2018 1 commit
  3. 16 Jul, 2018 1 commit
    • Tom Anderson's avatar
      Return canonicalized paths from FcConfigRealFilename · d1f48f11
      Tom Anderson authored
      FcConfigRealFilename() follows symlinks, but the link may be relative to the
      directory containing the link.  For example, on my system, I have this file:
      
      /etc/fonts/conf.d/99-language-selector-zh.conf ->
          ../conf.avail/99-language-selector-zh.conf
      
      Since /etc/fonts/conf.d is probably not in PATH, open()ing the file would fail.
      This change makes FcConfigRealFilename() return the canonicalized filename
      instead.  So for the example above, it would return:
      
      /etc/fonts/conf.avail/99-language-selector-zh.conf
      
      This was causing bad font rendering in Chromium [1] after the regression I
      introduced in 7ad010e8.
      
      [1] https://bugs.chromium.org/p/chromium/issues/detail?id=857511
      d1f48f11
  4. 11 Jun, 2018 1 commit
  5. 25 May, 2018 3 commits
  6. 11 May, 2018 1 commit
  7. 16 Apr, 2018 1 commit
    • Tom Anderson's avatar
      Fix undefined-shift UBSAN errors · c60ed9ef
      Tom Anderson authored
      The expression "1 << 31" will cause UBSAN to complain with this error message:
      runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
      
      The same operation on unsigned types is fine, however.  This CL replaces the
      strings "1 <<" with "1U <<".
      c60ed9ef
  8. 05 Feb, 2018 1 commit
  9. 04 Jan, 2018 1 commit
  10. 18 Dec, 2017 2 commits
  11. 20 Nov, 2017 3 commits
  12. 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.
      9a0fcb94
  13. 12 Sep, 2017 2 commits
  14. 07 Jul, 2017 1 commit
  15. 01 Mar, 2017 1 commit
  16. 06 Apr, 2016 1 commit
  17. 12 Jan, 2016 1 commit
    • Patrick Haller's avatar
      Optimizations in FcStrSet · d570a841
      Patrick Haller authored
      Applied optimizations:
      - skip duplicate check in FcStrSetAppend for values originating from readdir()
      - grow FcStrSet in 64-element bulks for local FcStrSets (FcConfig layout unaltered)
      
      Starting gedit is measured to
      
                              Unoptimized     Optimized
      user[s]                         0,806         0,579
      sys[s]                          0,062         0,062
      Total Instr Fetch Cost: 1.658.683.750   895.069.820
      Cachegrind D Refs:        513.917.619   312.000.436
      Cachegrind Dl Misses:       8.605.632     4.954.639
      d570a841
  18. 15 Oct, 2015 1 commit
  19. 13 Oct, 2015 1 commit
  20. 14 Aug, 2015 1 commit
  21. 27 Jun, 2015 1 commit
    • Behdad Esfahbod's avatar
      Revert changes made to FcConfigAppFontAddDir() recently · 46ec6a52
      Behdad Esfahbod authored
      In 32ac7c75 the behavior of
      FcConfigAppFontAddFile/Dir() were changed to return false
      if not fonts were found.  While this is welldefined and useful
      for AddFile(), it's quite problematic for AddDir().  For example,
      if the directory is empty, is that a failure or success?  Worse,
      the false value from AddDir() was being propagated all the way
      to FcInit() returning false now.  This only happened upon memory
      allocation failure before, and some clients assert that FcInit()
      is successful.
      
      With this change, AddDir() is reverted back to what it was.
      AddFont() change (which was actually in fcdir.c) from the original
      commit is left in.
      46ec6a52
  22. 17 Jun, 2015 1 commit
  23. 12 Jun, 2015 1 commit
  24. 09 Jun, 2015 1 commit
  25. 08 Jun, 2015 1 commit
    • Akira TAGOH's avatar
      Add one more debugging option to see transformation on font-matching · 10a57edd
      Akira TAGOH authored
      just setting FC_MATCH=3 shows a lot of information and hard to keep on track for informamtion
      which is really necessary to see. to use this more effectively, added FC_DBG_MATCH_FILTER to
      see for what one really want to see. it takes a comma-separated-list of object names.
      If you want to see family name only, try like this:
      
      FC_DBG_MATCH_FILTER=family FC_DEBUG=4096 fc-match
      
      debugging output will be filtered out and see family only in the result.
      10a57edd
  26. 27 May, 2015 2 commits
  27. 22 May, 2015 1 commit
  28. 25 Dec, 2014 1 commit
  29. 24 Jul, 2014 1 commit
  30. 17 Jun, 2014 1 commit
  31. 12 Jun, 2014 1 commit
  32. 05 Jun, 2014 1 commit
  33. 16 May, 2014 1 commit
    • Behdad Esfahbod's avatar
      Rewrite hashing to use FT_Stream directly · 3f992254
      Behdad Esfahbod authored
      This is more robust but introduces a small change in behavior:
      For .pcf.gz fonts, the new code calculates the hash of the uncompressed
      font data whereas the original code was calculating the hash of the
      compressed data.
      
      No big deal IMO.
      3f992254