[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Fontconfig and Xft - issue with opening fonts
From:       Richard Billington <billingt () AI ! SRI ! COM>
Date:       2015-06-19 3:27:54
Message-ID: 55838C3A.9080800 () ai ! sri ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I'm now running Ubuntu 14.04, which has the libXft.so.2.3.1 version of 
the library.

Previously I was running Ubuntu 12.04, which has the libXft.so.2.2.0 
version of the library.

Ultimately, my call to XftFontOpenName now fails on Ubuntu 14.04.

  ... Some details I've noticed ...

The issue seems to be that that FCNameUnparse and FCNameParse are no 
longer reciprocal.

Further, I note that the "Style" component of the pattern returned by 
FcFontMatch is a simple, single value in the earlier version and in the 
later version is multi-valued with many extended characters (partial 
output from FcPatternPrint included here), as well as having multiple 
values for stylelang in the new version, and a single value previously:

    12.04: Pattern has 26 elts (size 32)
         family: "Courier New"(s)
         familylang: "en"(s)
         style: "Regular"(s)
         stylelang: "ca"(s)
         fullname: "Courier New"(s)
         ...

    14.04: Pattern has 27 elts (size 32)
         family: "Courier New"(w)
         familylang: "en"(w)
         style: "Normal"(w) "obyčejné"(w) "Standard"(w) "Κανονικά"(w)
    "Regular"(w) "Normaali"(w) "Normál"(w) "Normale"(w) "Standaard"(w)
    "Normalny"(w) "Обыذ"(w) "Normálne"(w) "Navadno"(w) "thường"(w)
    "Arrunta"(w)
         stylelang: "ca"(w) "cs"(w) "de"(w) "el"(w) "en"(w) "fi"(w)
    "hu"(w) "it"(w) "nl"(w) "pl"(w) "ru"(w) "sk"(w) "sl"(w) "vi"(w) "eu"(w)
         fullname: "Courier New"(w)

FInally, the font files both of these versions are refering to 
(/usr/share/fonts/truetype/msttcorefonts/Courier_New.ttf) cksum to be 
identical on 12.04 and 14.04.

Help?

[Attachment #5 (text/html)]

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    I'm now running Ubuntu 14.04, which has the libXft.so.2.3.1 version
    of the library.<br>
    <br>
    Previously I was running Ubuntu 12.04, which has the libXft.so.2.2.0
    version of the library.<br>
    <br>
    Ultimately, my call to XftFontOpenName now fails on Ubuntu 14.04.<br>
    <br>
     ... Some details I've noticed ... <br>
    <br>
    The issue seems to be that that FCNameUnparse and FCNameParse are no
    longer reciprocal.<br>
    <br>
    Further, I note that the "Style" component of the pattern returned
    by FcFontMatch is a simple, single value in the earlier version and
    in the later version is multi-valued with many extended characters
    (partial output from FcPatternPrint included here), as well as
    having multiple values for stylelang in the new version, and a
    single value previously:<br>
    <blockquote>12.04: Pattern has 26 elts (size 32)<br>
          family: "Courier New"(s)<br>
          familylang: "en"(s)<br>
          style: "Regular"(s)<br>
          stylelang: "ca"(s)<br>
          fullname: "Courier New"(s)<br>
          ...<br>
      <br>
      14.04: Pattern has 27 elts (size 32)<br>
          family: "Courier New"(w)<br>
          familylang: "en"(w)<br>
          style: "Normal"(w) "obyčejné"(w) "Standard"(w) "Κανονικά"(w)
      "Regular"(w) "Normaali"(w) "Normál"(w) "Normale"(w) "Standaard"(w)
      "Normalny"(w) "Обыذ"(w) "Normálne"(w) "Navadno"(w) "thường"(w)
      "Arrunta"(w)<br>
          stylelang: "ca"(w) "cs"(w) "de"(w) "el"(w) "en"(w) "fi"(w)
      "hu"(w) "it"(w) "nl"(w) "pl"(w) "ru"(w) "sk"(w) "sl"(w) "vi"(w)
      "eu"(w)<br>
          fullname: "Courier New"(w)<br>
    </blockquote>
    FInally, the font files both of these versions are refering to
    (/usr/share/fonts/truetype/msttcorefonts/Courier_New.ttf) cksum to
    be identical on 12.04 and 14.04.<br>
    <br>
    Help?<br>
  </body>
</html>

[Attachment #6 (text/plain)]

_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic