<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - fontconfing 2.13 makes bold font when it's not expected to"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105415#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - fontconfing 2.13 makes bold font when it's not expected to"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105415">bug 105415</a>
              from <span class="vcard"><a class="email" href="mailto:akira@tagoh.org" title="Akira TAGOH <akira@tagoh.org>"> <span class="fn">Akira TAGOH</span></a>
</span></b>
        <pre>For backward compatibility:
diff --git a/src/fcname.c b/src/fcname.c
index 79e413e..b9933df 100644
--- a/src/fcname.c
+++ b/src/fcname.c
@@ -293,6 +293,7 @@ FcNameConvert (FcType type, FcChar8 *string)
     FcMatrix   m;
     double     b, e;
     char       *p;
+    int                i;

     v.type = type;
     switch ((int) v.type) {
@@ -330,13 +331,18 @@ FcNameConvert (FcType type, FcChar8 *string)
     case FcTypeRange:
        if (sscanf ((char *) string, "[%lg %lg]", &b, &e) != 2)
        {
-           v.u.d = strtod ((char *) string, &p);
-           if (p != NULL && p[0] != 0)
+           if (FcNameConstant(string, &i))
            {
-               v.type = FcTypeVoid;
-               break;
+               v.u.r = FcRangeCreateDouble (i, i);
+           } else {
+               v.u.d = strtod ((char *) string, &p);
+               if (p != NULL && p[0] != 0)
+               {
+                   v.type = FcTypeVoid;
+                   break;
+               }
+               v.type = FcTypeDouble;
            }
-           v.type = FcTypeDouble;
        }
        else
            v.u.r = FcRangeCreateDouble (b, e);</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>