From 02638f1ace0ad7e898317128c244dfd9c842d122 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 2 Mar 2004 16:48:51 +0000 Subject: [PATCH] Supplied by: mfabian@suse.de (Mike FABIAN) Bug #260 fc-cache generates wrong spacing values for bitmap fonts Was using (strcmp (a,b)) instead of (!strcmp(a,b)). --- ChangeLog | 8 ++++++++ src/fcfreetype.c | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2087cca..27c0658 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-03-02 Keith Packard + + Supplied by: mfabian@suse.de (Mike FABIAN) + + * src/fcfreetype.c: (FcFreeTypeQuery): + Bug #260 fc-cache generates wrong spacing values for bitmap fonts + Was using (strcmp (a,b)) instead of (!strcmp(a,b)). + 2004-02-21 Manish Singh * fc-glyphname/fc-glyphname.c: (main): diff --git a/src/fcfreetype.c b/src/fcfreetype.c index 78fe20c..2574b15 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -970,11 +970,11 @@ FcFreeTypeQuery (const FcChar8 *file, the property */ if(MY_Get_BDF_Property(face, "SPACING", &prop) == 0 && prop.type == BDF_PROPERTY_TYPE_ATOM) { - if(strcmp(prop.u.atom, "c") || strcmp(prop.u.atom, "C")) + if(!strcmp(prop.u.atom, "c") || !strcmp(prop.u.atom, "C")) spacing = FC_CHARCELL; - else if(strcmp(prop.u.atom, "m") || strcmp(prop.u.atom, "M")) + else if(!strcmp(prop.u.atom, "m") || !strcmp(prop.u.atom, "M")) spacing = FC_MONO; - else if(strcmp(prop.u.atom, "p") || strcmp(prop.u.atom, "P")) + else if(!strcmp(prop.u.atom, "p") || !strcmp(prop.u.atom, "P")) spacing = FC_PROPORTIONAL; } #endif -- 2.39.5