fontconfig-implicit-object-for-const-name.patch 832 B

1234567891011121314151617181920212223242526272829303132
  1. From 4699406a68321179b14fae7412f828e2f37a7033 Mon Sep 17 00:00:00 2001
  2. From: Akira TAGOH <akira@tagoh.org>
  3. Date: Wed, 14 Mar 2018 18:31:30 +0900
  4. Subject: [PATCH 2/5] Add the value of the constant name to the implicit object
  5. in the pattern
  6. For objects which has been changed the object type to FcTypeRange.
  7. https://bugs.freedesktop.org/show_bug.cgi?id=105415
  8. ---
  9. src/fcname.c | 4 ++++
  10. 1 file changed, 4 insertions(+)
  11. diff --git a/src/fcname.c b/src/fcname.c
  12. index 15fb659..c9320ae 100644
  13. --- a/src/fcname.c
  14. +++ b/src/fcname.c
  15. @@ -490,6 +490,10 @@ FcNameParse (const FcChar8 *name)
  16. if (!FcPatternAddBool (pat, c->object, c->value))
  17. goto bail2;
  18. break;
  19. + case FcTypeRange:
  20. + if (!FcPatternAddInteger (pat, c->object, c->value))
  21. + goto bail2;
  22. + break;
  23. default:
  24. break;
  25. }
  26. --
  27. 2.14.3