1. 07 Dec, 2020 1 commit
    • Ben Wagner's avatar
      Remove abort from FcCompareSize. · 97d54185
      Ben Wagner authored
      There doesn't appear to be a good reason to abort when 'v1' has type
      FcTypeRange. If there does turn out to be a good reason for this then it
      should be better documented and the code for handling this case removed.
      At worst it seems -1 should be returned as it is for other unknown
      types. It is possible this is left over debug code from the initial
      implementation.
      97d54185
  2. 04 Dec, 2020 2 commits
    • Ben Wagner's avatar
      Skip leading whitespace in style name. · 3d692638
      Ben Wagner authored
      Found by Clang-Tidy. The intent seems to have been to skip all leading
      whitespace in the 'style' string, but instead this loop was an odd
      looking no-op. Remove the 'break' from the loop so that it will
      continue until end of string or a non-space character is found.
      3d692638
    • Akira TAGOH's avatar
      Add back fullname property at scan matching phase · 93c93689
      Akira TAGOH authored
      There seems to be a lot of config files using fullname property in the world.
      To keep the backward compatibility, fullname property is back to a cache at
      the scan matching phase but will be rebuilt once it is done according to family
      and style property in the pattern no matter what changes one made in fullname
      property during that.
      
      Ref. https://bugzilla.redhat.com/show_bug.cgi?id=1902881
      93c93689
  3. 28 Nov, 2020 11 commits
  4. 19 Nov, 2020 1 commit
  5. 05 Nov, 2020 1 commit
  6. 04 Nov, 2020 1 commit
  7. 02 Nov, 2020 3 commits
    • Akira TAGOH's avatar
      Evaluate mingw64_env to setup properly on CI · 1c0e7885
      Akira TAGOH authored
      1c0e7885
    • 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=]
      88156415
    • Ben Wagner's avatar
      Fix fc_atomic_ptr_get and use. · 447b9ccc
      Ben Wagner authored
      Before this change building with ThreadSanitizer and running
      test/test-pthread generated a large number of threading issues. These
      mostly stemmed from fc_atomic_ptr_get not doing an atomic load and using
      "acquire load" instead of "load acquire". After making these changes it
      was still necessary to use fc_atomic_ptr_get where it was needed.
      
      This also documents the current memory barrier requirements for the
      atomic primitives.
      447b9ccc
  8. 30 Oct, 2020 1 commit
  9. 24 Oct, 2020 1 commit
  10. 04 Oct, 2020 3 commits
  11. 02 Oct, 2020 1 commit
    • Chun-wei Fan's avatar
      meson: Look for FreeType using CMake too · e50fbc1b
      Chun-wei Fan authored
      Some systems build FreeType using CMake rather than autotools (such as Visual
      Studio), which will give us CMake config files rather than pkg-config files, so
      if we can't find FreeType using pkg-config, try again using CMake.
      
      Please note that according to FreeType's docs/VERSIONS.TXT, the version we want
      when checking with CMake is 2.8.1 or later.
      e50fbc1b
  12. 29 Sep, 2020 2 commits
  13. 21 Sep, 2020 2 commits
  14. 16 Sep, 2020 3 commits
  15. 15 Sep, 2020 2 commits
  16. 03 Sep, 2020 1 commit
    • Akira TAGOH's avatar
      Make more clearer the license terms · 3ae08a86
      Akira TAGOH authored
      COPYING is missing non-expat license terms for some files and some files is also missing license terms. This is changes to makes it clearer and update.
      
      Fixes #219
      3ae08a86
  17. 30 Aug, 2020 1 commit
    • Matthias Clasen's avatar
      Fix a problem in FcConfigSubstitute · e735abcf
      Matthias Clasen authored
      We were using the family names from the pattern without
      copying, and this was leading to a valgrind warning:
      ==53167== Invalid read of size 1
      ==53167==    at 0x58B0238: FcStrCaseWalkerNextNonBlank (fcstr.c:198)
      ==53167==    by 0x58B0238: FcStrCaseWalkerNextNonBlank (fcstr.c:186)
      ==53167==    by 0x58B02C7: FcStrCmpIgnoreBlanksAndCase (fcstr.c:281)
      ==53167==    by 0x58A4D44: FcHashTableFind (fchash.c:109)
      ==53167==    by 0x5895E76: FamilyTableAdd (fccfg.c:1634)
      ==53167==    by 0x589646A: FcConfigAdd.isra.0 (fccfg.c:1823)
      ==53167==    by 0x58988CF: IA__FcConfigSubstituteWithPat.part.0 (fccfg.c:2228)
      ==53167==    by 0x55F4F1A: pango_cairo_fc_font_map_fontset_key_substitute (pangocairo-fcfontmap.c:106)
      ==53167==    by 0x5B88AF6: pango_fc_default_substitute (pangofc-fontmap.c:1795)
      ==53167==    by 0x5B88D15: pango_fc_font_map_get_patterns (pangofc-fontmap.c:1850)
      ==53167==    by 0x5B88FC7: pango_fc_font_map_load_fontset (pangofc-fontmap.c:1952)
      ==53167==    by 0x5623627: pango_font_map_load_fontset (pango-fontmap.c:161)
      ==53167==    by 0x5621743: pango_context_get_metrics (pango-context.c:1782)
      ==53167==  Address 0x150d3450 is 0 bytes inside a block of size 10 free'd
      ==53167==    at 0x483B9F5: free (vg_replace_malloc.c:538)
      ==53167==    by 0x58ABE70: FcValueListDestroy (fcpat.c:147)
      ==53167==    by 0x5898A08: IA__FcConfigSubstituteWithPat.part.0 (fccfg.c:2203)
      ==53167==    by 0x55F4F1A: pango_cairo_fc_font_map_fontset_key_substitute (pangocairo-fcfontmap.c:106)
      ==53167==    by 0x5B88AF6: pango_fc_default_substitute (pangofc-fontmap.c:1795)
      ==53167==    by 0x5B88D15: pango_fc_font_map_get_patterns (pangofc-fontmap.c:1850)
      ==53167==    by 0x5B88FC7: pango_fc_font_map_load_fontset (pangofc-fontmap.c:1952)
      ==53167==    by 0x5623627: pango_font_map_load_fontset (pango-fontmap.c:161)
      ==53167==    by 0x5621743: pango_context_get_metrics (pango-context.c:1782)
      
      Use copies of the strings as keys in the hash table to avoid this.
      e735abcf
  18. 27 Aug, 2020 1 commit
  19. 26 Aug, 2020 1 commit
    • Akira TAGOH's avatar
      Integrate python scripts to autotools build · ef28c783
      Akira TAGOH authored
      Recently some python scripts has been added to the build toolchain for meson build support. but we don't want to maintain multiple files for one purpose. since autotools build support will be guradually discontinued, integrating those scripts into autotools would be better.
      ef28c783
  20. 25 Aug, 2020 1 commit
    • Matthias Clasen's avatar
      Fix up FC_LIKELY macros · ff7d314a
      Matthias Clasen authored
      __builtin_expect returns the same type as the expression,
      so enforce that we pass in a boolean expression.
      
      Pointed out by Emmanuele Bassi.
      ff7d314a