fc-list and aliases (fontconfig)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I use Red Hat 8.0 at home and I am very pleased with it. I compiled
Mozilla with xft support and I am very impressed by the result but I
have also a lot of trouble with fontconfig. 

It seems that I can now see every font installed with fc-list which is
great but mozilla doesn't see all of what can be seen in
gnome-font-properties. I suppose it is a mozilla-related problem but if
you know any way I can determine what's wrong, I would appreciate.

One big problem I have and it was not solved by reading the manual of
fontconfig is related to aliased names for the fonts. No Times is usable
anymore (no scalable fonts called by that name on my system) but I
learned on a Microsoft page (how ironical) that Nimbus Roman No9 L is in
fact called Times in the Postscript world. I would like my system to
respond to both names with the same font. So I made an alias in the
/etc/fonts/fonts.conf :

<!--
  Alias fonts that don't come right in www.codestyle.org
-->
   <alias>
      <family>Charter BT</family>
      <accept><family>Bitstream Charter</family></accept>
   </alias>

here is what I found in the cascading stylesheet used at codestyle.org
.CharterBT{
  font-family:      "Charter BT";
}

and when I ask fc-list, here is what it tells me:

[jan@paris htdocs]$ fc-list "Charter BT"

[jan@paris htdocs]$ fc-list|grep Charter
Bitstream Charter:style=Bold Italic
Bitstream Charter:style=Regular
Bitstream Charter:style=Italic
Bitstream Charter:style=Bold

So the problem I face is : what fc-list is supposed to do ? bypass
aliases and speak only about the real names ? And if it is the case,
what tool can I use to see if my aliases are right and why does Mozilla
not capable of doing the match. If not, why is the result not
corresponding to what I expect ?

Finally, if there is a way to change the name of the font, I would like
to know it because it seems that anyway, no one would be upset with
Bitstream Charter being called Charter BT on my system.


Thank you.

-- 
François Jan <francois.jan@m4x.org>
Empreinte PGP : 7B92 DAC4 E409 441C B314  B42B 1587 7637 4EF9 F79C



_______________________________________________
xfree86-list mailing list
xfree86-list@redhat.com
https://listman.redhat.com/mailman/listinfo/xfree86-list
IRC: #xfree86 on irc.redhat.com

[Red Hat General]     [Red Hat Watch]     [Red Hat Development]     [Kernel Development]     [Yosemite Camping]

  Powered by Linux