1. 19 Jul, 2018 1 commit
  2. 14 Mar, 2018 1 commit
  3. 12 Mar, 2018 1 commit
  4. 20 Sep, 2017 2 commits
    • Behdad Esfahbod's avatar
      Add FcDontCare value to FcBool · 2544bc53
      Behdad Esfahbod authored
      This can be used for FC_VARIABLE=FcDontCare for example, to opt into getting
      variable fonts for clients that support using them.
      2544bc53
    • Behdad Esfahbod's avatar
      Print ranges as closed as opposed to half-open · f034c867
      Behdad Esfahbod authored
      There's nothing assymetrical about how we match them.  Previously we "considered"
      them half-open because the OS/2 spec had usLowerOpticalPointSize as inclusive
      and usUpperOpticalPointSize as exclusive.  But we do not respect that.
      
      Note that the parsing code accepts both anyway, because of the way our sscanf()
      usage is written...
      f034c867
  5. 27 May, 2015 3 commits
  6. 25 Jul, 2014 1 commit
  7. 26 Mar, 2014 1 commit
    • Akira TAGOH's avatar
      Bug 71287 - size specific design selection support in OS/2 table version 5 · 3cd573fc
      Akira TAGOH authored
      This feature requires the FreeType 2.5.1 or later at the build time.
      
      Besides <range> element allows <double> elements with this changes.
      
      This may breaks the cache but not bumping in this change sets at this moment.
      please be aware if you want to try it and run fc-cache before/after to
      avoid the weird thing against it.
      3cd573fc
  8. 05 Nov, 2013 1 commit
    • Alan Coopersmith's avatar
      Avoid null pointer dereference in FcNameParse if malloc fails · 0b7f42f7
      Alan Coopersmith authored
      Reported by parfait 1.3:
      Error: Null pointer dereference (CWE 476)
         Read from null pointer t
              at line 423 of src/fcname.c in function 'FcNameParse'.
                Function _FcObjectLookupOtherTypeByName may return constant 'NULL'
                 at line 63, called at line 122 of src/fcobjs.c in function
                 'FcObjectLookupOtherTypeByName'.
                Function FcObjectLookupOtherTypeByName may return constant 'NULL'
                 at line 122, called at line 67 of src/fcname.c in function
                 'FcNameGetObjectType'.
                Function FcNameGetObjectType may return constant 'NULL' at line 67,
                 called at line 422 in function 'FcNameParse'.
                Null pointer introduced at line 63 of src/fcobjs.c in function
                 '_FcObjectLookupOtherTypeByName'.
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      0b7f42f7
  9. 28 Jun, 2013 1 commit
  10. 26 Jun, 2013 1 commit
  11. 24 May, 2013 1 commit
  12. 06 Feb, 2013 1 commit
  13. 02 Jan, 2013 4 commits
  14. 01 Jan, 2013 1 commit
  15. 30 Dec, 2012 3 commits
  16. 11 Jun, 2012 1 commit
  17. 24 Apr, 2012 1 commit
    • Akira TAGOH's avatar
      Bug 27765 - FcMatch() returns style in wrong language · 7587d1c9
      Akira TAGOH authored
      Add "namelang" object to obtain the localized name in the font regardless
      of the lang object. it's applied to "familylang", "stylelang" and
      "fullnamelang" alltogether. this would helps if one wants to enforce
      selecting them in the specific language if any.  the default value for
      the namelang object is determined from current locale.
      7587d1c9
  18. 28 Mar, 2012 1 commit
  19. 21 Feb, 2012 2 commits
    • Mike Frysinger's avatar
      FcObjectValidType: tweak -1 checking · d9c44627
      Mike Frysinger authored
      Newer gcc doesn't like when you switch on an enum and use a value
      that isn't declared:
      
      fcname.c: In function 'FcObjectValidType':
      fcname.c:299:2: warning: case value '4294967295'
      	not in enumerated type 'FcType' [-Wswitch]
      
      So tweak the logic to avoid this warning.
      Signed-off-by: Mike Frysinger's avatarMike Frysinger <vapier@gentoo.org>
      d9c44627
    • Mike Frysinger's avatar
      FcName{,Get}Constant: constify string input · 123d344f
      Mike Frysinger authored
      These funcs don't modify the incoming string, so add const markings.
      This is the "right thing", shouldn't change the ABI, and fixes some
      gcc warnings:
      
      fccfg.c: In function 'FcConfigEvaluate':
      fccfg.c:916:2: warning: passing argument 1 of 'IA__FcNameConstant'
      	discards 'const' qualifier from pointer target type [enabled by default]
      fcalias.h:253:34: note: expected 'FcChar8 *' but
      	argument is of type 'const FcChar8 *'
      
      fcxml.c: In function 'FcTypecheckExpr':
      fcxml.c:604:2: warning: passing argument 1 of 'IA__FcNameGetConstant'
      	discards 'const' qualifier from pointer target type [enabled by default]
      fcalias.h:251:37: note: expected 'FcChar8 *' but
      	argument is of type 'const FcChar8 *'
      Signed-off-by: Mike Frysinger's avatarMike Frysinger <vapier@gentoo.org>
      123d344f
  20. 20 Jun, 2011 1 commit
    • Behdad Esfahbod's avatar
      Bug 26718 - "fc-match sans file" doesn't work · e0be405a
      Behdad Esfahbod authored
      - Do not throw away FC_FILE in FcNameUnparse
      - Update the builtin "fclist" format to remove FC_FILE properly instead
      - Switch fc-list to use FcPatternFormat()
      
      Note that I had previously broken fc-list and it was not showing the
      file name anymore.  No one noticed that it seems!  Now fixed.
      e0be405a
  21. 10 Nov, 2010 1 commit
  22. 12 Apr, 2010 1 commit
  23. 13 Mar, 2009 1 commit
  24. 15 Feb, 2009 1 commit
  25. 14 Feb, 2009 3 commits
    • Behdad Esfahbod's avatar
      Implement FcPatternFormat and use it in cmdline tools (bug #17107) · 0c93b91d
      Behdad Esfahbod authored
      Still need to add more features, but the API is there, and used
      by cmdline tools with -f or --format.
      0c93b91d
    • Behdad Esfahbod's avatar
      Implement fc-list --verbose (#13015) · 29874098
      Behdad Esfahbod authored
      A private FcObjectGetSet() is implemented that provides an
      FcObjectSet of all registered elements.  FcFontSetList() is
      then modified to use the object set from FcObjectGetSet() if
      provided object-set is NULL.
      
      Alternatively FcObjectGetSet() can be made public.  In that
      case fc-list can use that as a base if --verbose is included,
      and also add any elements provided by the user (though that has
      no effect, as all elements from the cache are already registered).
      Currently fc-list ignores user-provided elements if --verbose
      is specified.
      29874098
    • Behdad Esfahbod's avatar
      Replace RCS Id tags with the file name · 317b8492
      Behdad Esfahbod authored
      317b8492
  26. 04 May, 2008 1 commit
    • Sylvain Pasche's avatar
      Fontconfig options for freetype sub-pixel filter configuration · 53aec111
      Sylvain Pasche authored
      David Turner has modified FreeType to be able to render sub-pixel decimated
      glyphs using different methods of filtering. Fontconfig needs new
      configurables to support selecting these new filtering options. A patch
      follows that would correspond to one available for Cairo in bug 10301.
      53aec111
  27. 05 Sep, 2006 1 commit
    • Keith Packard's avatar
      Eliminate .so PLT entries for local symbols. (thanks to Arjan van de Ven) · 23816bf9
      Keith Packard authored
      Using a simple shell script that processes the public headers, two header
      files are constructed that map public symbols to hidden internal aliases
      avoiding the assocated PLT entry for referring to a public symbol.
      
      A few mistakes in the FcPrivate/FcPublic annotations were also discovered
      through this process
      23816bf9
  28. 03 Sep, 2006 2 commits
    • Keith Packard's avatar
      Don't segfault when string values can't be parsed as charsets or langsets. · 04cedae0
      Keith Packard authored
      If parsing charsets or langsets fails, return a FcTypeVoid value instead of
      a charset/langset value with a NULL pointer in it (which is invalid).
      04cedae0
    • Keith Packard's avatar
      Add FcMatchScan to resolve Delicious font matching issues (bug #6769) · c2c6976d
      Keith Packard authored
      The Delicious family includes one named Delicious Heavy, a bold variant
      which is unfortunately marked as having normal weight. Because the family
      name is 'Delicious', fontconfig accidentally selects this font instead of
      the normal weight variant. The fix here rewrites the scanned data by running
      the scanned pattern through a new substitution sequence tagged with
      <match target=scan>; a sample for the Delicious family is included to
      demonstrate how it works (and fix Delicious at the same time).
      
      Also added was a new match predicate -- the 'decorative' predicate which is
      automatically detected in fonts by searching style names for key decorative
      phrases like SmallCaps, Shadow, Embosed and Antiqua. Suggestions for
      additional decorative key words are welcome. This should have little effect
      on font matching except when two fonts share the same characteristics except
      for this value.
      c2c6976d