[MPlayer-users] MPlayer not loading correct font
Vladimir Mosgalin
mosgalin at VM10124.spb.edu
Sat May 3 21:34:43 CEST 2008
Hi Evgeniy Stepanov!
On 2008.05.03 at 20:46:07 +0400, Evgeniy Stepanov wrote next:
> Libass does not set FC_STYLE, only FC_WEIGHT. So, something like "Arial Narrow
> Bold" won't work (will select Arial Narrow Regular).
I.e. ass specification guarantees to specify bold/italic only by flags,
not by name? It's just that ssa specification says "The fontname as used
by Windows. Case-sensitive", and "Arial Bold" font naming style is
sometimes used in windows. Not that I doubt you're know what you're
doing, just interested ;)
> By the way, what does fc-match -v with the same pattern looks like? The
> same 'Narrow' style?
Sure, here.
$ fc-match -v ":family=Arial Narrow:family=Arial:weight=200:slant=0:outline=1"
Pattern has 29 elts (size 32)
family: "Arial Narrow"(s)
familylang: "en"(s)
style: "Narrow"(s)
stylelang: "en"(s)
slant: 0(i)(s)
weight: 200(i)(s)
width: 75(i)(s)
size: 12(f)(s)
pixelsize: 12.5(f)(s)
foundry: "monotype"(s)
antialias: FcTrue(w)
hintstyle: 3(i)(w)
hinting: FcTrue(w)
verticallayout: FcFalse(s)
autohint: FcFalse(s)
globaladvance: FcTrue(s)
file: "/usr/share/fonts/default/TrueType/arialnb.ttf"(s)
index: 0(i)(s)
outline: FcTrue(s)
scalable: FcTrue(s)
dpi: 75(f)(s)
rgba: 5(i)(w)
scale: 1(f)(s)
charset: 0000: 00000000 ffffffff ffffffff 7fffffff 00000000 ffffffff ffffffff ffffffff
0001: ffffffff ffffffff ffffffff ffffffff 00040000 00000000 00000000 fc000000
0002: 0f000000 00000000 00000000 00000000 00000000 00000000 3f0002c0 00000000
0003: 00000000 00000000 00000000 40000000 ffffd7f0 fffffffb 00007fff 00000000
0004: ffffdffe ffffffff dffeffff 00000000 00030000 00000000 00000000 00000000
001e: 00000000 00000000 00000000 00000000 0000003f 00000000 00000000 000c0000
0020: 7fb80000 560d0047 00000010 80000000 00000000 00001098 00000000 00000000
0021: 00480020 00004044 78000000 00000000 003f0000 00000100 00000000 00000000
0022: c6268044 00000a00 00000100 00000033 00000000 00000000 00000000 00000000
0023: 00010004 00000003 00000000 00000000 00000000 00000000 00000000 00000000
0025: 11111005 10101010 ffff0000 00001fff 000f1111 14041c03 03008c10 00000040
0026: 00000000 1c000000 00000005 00000c69 00000000 00000000 00000000 00000000
00fb: 00000006 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(s)
lang: aa|af|ast|ava|ay|be|bg|bi|br|bs|ca|ce|ch|co|cs|cy|da|de|el|en|eo|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gv|ho|hr|hu|ia|id|ie|ik|io|is|it|ki|kl|kum|la|lb|lez|lt|lv|mg|mh|mo|mt|nb|nds|nl|nn|no|ny|oc|om|os|pl|pt|rm|ro|ru|se|sel|sh|sk|sl|sma|smj|smn|so|sq|sr|sv|sw|tn|tr|ts|uk|vo|vot|wa|wen|wo|xh|yap|zu(s)
fontversion: 155320(i)(s)
fontformat: "TrueType"(s)
embeddedbitmap: FcTrue(s)
decorative: FcFalse(s)
Actually there is something strange about that font. Look at what
freetype thinks of it:
$ ftdump /usr/share/fonts/default/TrueType/arialnb.ttf
There is 1 face in this file.
----- Face number: 0 -----
font name entries
family: Arial
style: Narrow
postscript: ArialNarrow-Bold
...
Most fonts put there whole name in "family", including Arial Unicode MS,
however Arial Narrow has family name "Arial". There's nothing like this
at fontconfig level, but deep inside freetype knows this.
--
Vladimir
More information about the MPlayer-users
mailing list