[mythtv-theming] MythFontProperties, Error: Failed to load

Federico Ferri federico.ferri at yahoo.it
Mon Jul 26 09:04:46 UTC 2010


If you open the .ttf file with some font viewer application (es. kfontview) you can se the "real name" of the font.
I mean that "Droid" differ from "Droid Sans" or "DroidSans" or "Droid MT" (examples).

Try to copy the file .ttf into the theme directory (/usr/share/mythtv/themes/MythCenter-wide), and make the file read from all,

After that check the real name of the font...It should be equal to the name in the base.xml file, as you has already done for Droid...

bye bye

Federico

In data giovedý 22 luglio 2010 18:00:15, Casey Bragg ha scritto:
: > I've also found that if I change the font face in base.xml from "Droid Sans" to just "Droid", the font is located.  I must have something screwy with something in /etc/fonts rules.
> 
> For me, changing "Liberation Sans" to just "Liberation" does not allow Liberation to be found.
> 
> Yuck.  I'm guessing this is a problem unique to my system.
> 
> 
> --- On Wed, 7/21/10, Casey Bragg <caseybragg at yahoo.com> wrote:
> 
> From: Casey Bragg <caseybragg at yahoo.com>
> Subject: Re: [mythtv-theming] MythFontProperties, Error: Failed to load
> To: mythtv-theming at mythtv.org
> Date: Wednesday, July 21, 2010, 2:33 PM
> 
> Thanks for the information.  Yes, I forgot to say that I am using 0.23 from SVN which is at revision 25393.  This is on debian 2.6.26-2-686.
> 
> I tried copying all my Droid*.ttf into /usr/share/mythtv/themes/MythCenter-wide.  I didn't have any luck.  I changed the file owner and group to the mythtv executing user.
> 
> fc-list | grep -i droid
> Droid Sans:style=Regular
> Droid Serif:style=Bold
> Droid Sans Fallback:style=Regular
> Droid Sans:style=Bold
> Droid Sans Mono:style=Regular
> Droid Serif:style=Italic
> Droid Serif:style=Bold Italic
> Droid Serif:style=Regular
> 
> bragghost:/usr/share/mythtv/themes/MythCenter-wide# fc-match 'Droid Sans'
> DroidSans.ttf: "Droid Sans" "Regular"
> 
> I don't have a ~/.fontconfig directory or file.  I
>  rebooted after font installation and mythtv recompile and reinstall.
> 
> My first font path in /etc/fonts/fonts.conf is /usr/share/fonts.  /usr/share/fonts/truetype contains DroidSans.ttf.
> 
> I installed ttf-droid with the dpkg -i installer.
> 
> I see this rule in /etc/fonts/fonts.conf that might be a culprit.  What do you think?
> 
> <!--
>   Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
> -->
>         <match target="pattern">
>                 <test qual="any" name="family">
>                         <string>sans serif</string>
>                
>  </test>
>                 <edit name="family" mode="assign">
>                         <string>sans-serif</string>
>                 </edit>
>         </match>
> 
> 
> 
> 
> 
> --- On Wed, 7/21/10, Michael T. Dean <mtdean at thirdcontact.com> wrote:
> 
> From: Michael T. Dean <mtdean at thirdcontact.com>
> Subject: Re: [mythtv-theming]
>  MythFontProperties, Error: Failed to load
> To: mythtv-theming at mythtv.org
> Date: Wednesday, July 21, 2010, 11:29 AM
> 
>   On 07/21/2010 11:20 AM, Casey Bragg wrote:
> > I'm getting the following error from mythfrontend related to fonts.  I have installed ttf-droid, msttcorefonts, ttf-liberation, etc.  If I go to gnome:system->preferences->appearance->fonts, I can select Droid Sans or Liberation Sans as a desktop font.  Any ideas?  Is this something to do with permissions or file locations or possibly even screen resolution?
> >
> > Thanks for your time.
> >
> >
> > 2010-07-20 23:07:28.728 MythFontProperties, Error: Failed to load 'Droid Sans', got 'Andale Mono' instead
> >                          Location: /usr/share/mythtv/themes/MythCenter-wide/base.xml @ 5
> >       
>                    Name: 'basesmall'       Type: 'font'
> >
> > Also:
> >
> > 2010-07-20 23:07:29.725 MythFontProperties, Error: Failed to load 'Liberation Sans', got 'Andale Mono' instead
> >                          Location: /usr/share/mythtv/themes/MythCenter-wide/base.xml @ 25
> >                          Name: 'basemedium'      Type: 'font'
> 
> If it is, in fact, installed properly, it's most likely (broken) font 
> replacement rules (which are easy to get when you have a lot of fonts 
> installed).  What do you get with:
> 
> fc-list | grep -i droid
> 
> and
> 
> fc-match 'Droid Sans'
> 
> are there any rules that would affect its loading under /etc/fonts/ or 
> ~/.fontconfig/ ?  Have you
>  restarted X and any font services since you 
> installed the fonts?
> 
> Mike
> _______________________________________________
> mythtv-theming mailing list
> mythtv-theming at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming
> 
> -----Inline Attachment Follows-----
> 
> _______________________________________________
> mythtv-theming mailing list
> mythtv-theming at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming
> 



More information about the mythtv-theming mailing list