[This is fontconfig 2.8, but looking into the README file of the current git, I can''t find something related, so I suspect it''s still an issue.] There is the font `dustismo_bold.ttf'' (from openSuSE''s `free-ttf-font'' package). fc-scan gives the following output: Pattern has 19 elts (size 32) family: "Dustismo"(s) familylang: "en"(s) style: " Bold"(s) stylelang: "en"(s) fullname: "Dustismo Bold"(s) [...] I think that fontconfig should remove the superfluous space so that the style is `Bold''. Werner
On Thu, May 31, 2012 at 3:09 PM, Werner LEMBERG <wl at gnu.org> wrote:> > [This is fontconfig 2.8, but looking into the README file of the > ?current git, I can''t find something related, so I suspect it''s still > ?an issue.] > > There is the font `dustismo_bold.ttf'' (from openSuSE''s `free-ttf-font'' > package). ?fc-scan gives the following output: > > Pattern has 19 elts (size 32) > ? ? ? ?family: "Dustismo"(s) > ? ? ? ?familylang: "en"(s) > ? ? ? ?style: " Bold"(s) > ? ? ? ?stylelang: "en"(s) > ? ? ? ?fullname: "Dustismo ?Bold"(s) > ? ? ? ?[...] > > I think that fontconfig should remove the superfluous space so that > the style is `Bold''.Although we''ve improved how to deal with the whitespace in the family name in git master, I don''t think we did any for the style, yeah. so I think it should still persists in even master. I''ll take a look. Thanks for letting us know.> > > ? ?Werner > _______________________________________________ > Fontconfig mailing list > Fontconfig at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/fontconfig-- Akira TAGOH
On Thu, May 31, 2012 at 3:09 PM, Werner LEMBERG <wl at gnu.org> wrote:> > [This is fontconfig 2.8, but looking into the README file of the > ?current git, I can''t find something related, so I suspect it''s still > ?an issue.] > > There is the font `dustismo_bold.ttf'' (from openSuSE''s `free-ttf-font'' > package). ?fc-scan gives the following output: > > Pattern has 19 elts (size 32) > ? ? ? ?family: "Dustismo"(s) > ? ? ? ?familylang: "en"(s) > ? ? ? ?style: " Bold"(s) > ? ? ? ?stylelang: "en"(s) > ? ? ? ?fullname: "Dustismo ?Bold"(s) > ? ? ? ?[...] > > I think that fontconfig should remove the superfluous space so that > the style is `Bold''.Though ideally it should be fixed in the font, I''m not sure if it should be also fixed in fontconfig, because we picks it up from freetype and it still appears as long as applications uses freetype APIs. BTW what the real problem with it? it looks like fontconfig still deals with it as Bold though. -- Akira TAGOH
>> I think that fontconfig should remove the superfluous space so that >> the style is `Bold''. > > Though ideally it should be fixed in the font, I''m not sure if it > should be also fixed in fontconfig, because we picks it up from > freetype and it still appears as long as applications uses freetype > APIs.Hmm. IMHO, FreeType should return the data in the font without interpretation, but...> BTW what the real problem with it? it looks like fontconfig still > deals with it as Bold though....FontConfig should normalize the data, thus I believe that trailing and leading whitespace should be removed. BTW, there isn''t a real problem; I''ve accidentally stumbled across this issue. Werner