From aae70dec190a9d72c0a386d125af045dffeca04d Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 4 Jul 2014 13:56:07 +0900 Subject: [PATCH] Do not show the range of the size if it is the default range for scalable fonts https://bugs.freedesktop.org/show_bug.cgi?id=80873 --- src/fcname.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fcname.c b/src/fcname.c index 4666178..9d8bd64 100644 --- a/src/fcname.c +++ b/src/fcname.c @@ -526,7 +526,9 @@ FcNameUnparseValue (FcStrBuf *buf, r = FcRangeCanonicalize (v.u.r); if (!FcDoubleIsZero (r.u.d.begin) || !FcDoubleIsZero (r.u.d.end)) { - if (FcDoubleCmpEQ (r.u.d.begin, r.u.d.end)) + if (FcDoubleIsZero (r.u.d.begin) && FcDoubleCmpEQ (r.u.d.end, DBL_MAX)) + return FcTrue; + else if (FcDoubleCmpEQ (r.u.d.begin, r.u.d.end)) sprintf ((char *) temp, "%g", r.u.d.begin); else sprintf ((char *) temp, "(%g %g)", r.u.d.begin, r.u.d.end); -- 1.9.3