[MPlayer-users] MPlayer not loading correct font

Vladimir Mosgalin mosgalin at VM10124.spb.edu
Sat May 10 18:49:27 CEST 2008


Hi Evgeniy Stepanov!

 On 2008.05.03 at 14:21:49 +0400, Evgeniy Stepanov wrote next:

> I've added some extra debug prints, try with the latest svn and -v option.

Can you please comment this one?

[V4+ Styles]
Style: mushishi_standard,Semper,36,&H00FFFFFF,&H0000FFFF,&H00262626,&H00000000,0,0,0,0,80,95,0,0,1,2,0,2,10,10,10,0
Style: mushishi_title,Fluid-Light,30,&H00F6FDE7,&H0000FFFF,&H0053761E,&H00000000,-1,0,0,0,90,100,0,0,3,2,0,2,10,10,10,0

[Events]
Dialogue:
0,0:02:40.59,0:02:45.47,mushishi_standard,,0000,0000,0000,,{\fad(2000,0)\bord2.2\be1\fnFluid-Light\b1\fscy80\fs40\c&HF6FDE7&\an8\3c&H85796A&}The Light in the Eyelids

mplayer uses dejavu sans for that. Debug output:

event at 160590, +4880: 17,0,mushishi_standard,,0000,0000,0000,,{\fad(2000,0)\bord2.2\be1\fnFluid-Light\b1\fscy80\fs40\c&HF6FDE7&\an8\3c&H85796A&}The Light in the Eyelids  
[ass] fontconfig: Выбранный шрифт не совпадает с запрошенным: 'DejaVu Sans' != 'Fluid-Light'
[ass] Font info: family 'DejaVu Sans', style 'Book', fullname '(null)', slant 0, weight 80
fontconfig_select: (Fluid-Light, 80, 0) -> /usr/share/fonts/dejavu/DejaVuSans.ttf, 0
[ass] fontconfig: Выбранный шрифт не совпадает с запрошенным: 'DejaVu Sans' != 'Fluid-Light'
[ass] Font info: family 'DejaVu Sans', style 'Bold', fullname '(null)', slant 0, weight 200
fontconfig_select: (Fluid-Light, 200, 0) -> /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf, 0

Font FLUID-LI.TTF is embedded. ftdump FLUID-LI.TTF writes
There is 1 face in this file.

----- Face number: 0 -----

font name entries
   family:     Fluid
   style:      light
   postscript: Fluid-light
...

When I move it to ~/.fonts, I can find it with fc-match:

$ fc-match -v 'Fluid-Light'
Pattern has 31 elts (size 32)
        family: "Fluid"(s)
        familylang: "en"(s)
        style: "light"(s)
        stylelang: "en"(s)
        fullname: "Fluid-light"(s)
        fullnamelang: "en"(s)
        slant: 0(i)(s)
        weight: 50(i)(s)
        width: 100(i)(s)
        size: 12(f)(s)
        pixelsize: 12.5(f)(s)
        foundry: "unknown"(s)
        antialias: FcTrue(w)
        hintstyle: 3(i)(w)
        hinting: FcTrue(w)
        verticallayout: FcFalse(s)
        autohint: FcFalse(s)
        globaladvance: FcTrue(s)
        file: "/home/mosgalin/.fonts/FLUID-LI.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 fffffbe1 7fffffff 6fffffff 00000000 88102903 9e7effff 1e7effff
        0001: 00000000 00020000 000c0000 00000000 00000000 00000000 00000000 00000000
    0002: 00000000 00000000 00000000 00000000 00000000 00000000 10000040 00000000
    0003: 00000000 00000000 00000000 40000000 00000000 00000000 00000000 00000000
    0020: 33180000 00010000 00000000 00000000 00000000 00001000 00000000 00000000
(s)
    lang: aa|ast|ay|bi|br|ch|de|en|es|eu|fj|fur|fy|gd|gl|gv|ho|ia|id|ie|io|it|lb|mg|nds|nl|oc|om|pt|rm|sma|smj|so|sq|sv|sw|tn|ts|vo|wa|xh|yap|zu(s)
    fontversion: 65536(i)(s)
    fontformat: "TrueType"(s)
    embeddedbitmap: FcTrue(s)
    decorative: FcFalse(s)

btw bold version isn't present anywhere, though it seems to be
referenced. fc-match 'Fluid-Light', 'Fluid-Light:Style=Bold' and
'Fluid-Light:weight=200' all pick the same font.

-- 

Vladimir



More information about the MPlayer-users mailing list