Jump to content


Photo

Adding New Fonts To Xbmc..


  • Please log in to reply
14 replies to this topic

#1 ubernewb

ubernewb

    now 58% uber'er

  • Moderator
  • PipPipPipPipPipPip
  • 2,016 posts
  • Location:3 miles west of nowhere
  • Xbox Version:v1.4
  • 360 version:v1 (xenon)

Posted 07 December 2005 - 08:07 PM

ok, so i've found a few different fonts online that i would like to add to xbmc. i tried searching the forums here (that google search is absolutely useless) and over at xboxmediacenter.de as well. i also browsed thru the manual..

the only thing i have found thus far is a cheater method where you just rename the font to arial.ttf and select arial in settings. unfortunately, this method only works for one font, and you have to go back and rename things if you want to change it again.. too much of a pain in the ass, thank you very much..

i then tried adding a new fontset by copying the arial set and replacing all "arial.ttf" 's with "all caps.ttf" 's (the new font's filename) but nothing happened.. first of all it didn't add "all caps" to the list. then when i switched to arial there was no text on the screen at all. that was a pain to fix..



anyways, is there any definitive method of adding fonts that i'm just not finding here?




oh, and yes.. the fonts are being placed in the skin's font folder and i'm editing the fonts.xml file in the skin's pal 16x9 folder

#2 jmarshall

jmarshall

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,340 posts

Posted 07 December 2005 - 10:38 PM

Try without the space, just in case that makes a difference (I'm not sure).

Otherwise, post your fonts.xml file, and I'll point out what's wrong.

We can turn this into a tutorial for the online manual smile.gif

Cheers,
Jonathan

#3 jizzlobber

jizzlobber

    X-S Genius

  • Members
  • PipPipPipPip
  • 763 posts
  • Location:Australia
  • Xbox Version:v1.0

Posted 08 December 2005 - 02:36 PM

I tried changing fonts the other day, I put the font in the skins fonts folder, added the font to the font.xml (under the default section) and saved.

I had to chande to arial.ttf in the XBMC menu, then change back to default for it to work, I guess is has to read the xml when you change it.

#4 ubernewb

ubernewb

    now 58% uber'er

  • Moderator
  • PipPipPipPipPipPip
  • 2,016 posts
  • Location:3 miles west of nowhere
  • Xbox Version:v1.4
  • 360 version:v1 (xenon)

Posted 10 December 2005 - 08:41 AM

yeah, but the thing is i don't want to have to give up any fonts.. i want to add more. i mean it has to be able to "see" more than 2 fonts at a time right? i'd like to have a few different ones to choose from. i lug this xbox around a lot and different fonts look better on different tv's.

my 52" lcd can handle intricately detailed fonts, while the 7" in-dash in my car cannot so it needs a nice big clear font.. then the projector at my bud's house can handle smaller fonts, but not as detailed..

ideally, i'd like to be able to have up to 5-6 different fonts available to me. and i'd hate to have to get in and rename everything everytime i felt like switching.




as for my font.xml ... right now it's bone-stock.

#5 slingshot2170

slingshot2170

    X-S Expert

  • Members
  • PipPipPip
  • 609 posts
  • Location:Mountains
  • Interests:Biology, chemistry, science, electrical engineering
  • Xbox Version:v1.6
  • 360 version:v3.0 (falcon)

Posted 10 December 2005 - 10:37 PM

You could just create 3 or 4 copies of the same skin, then do the cheater method to change the font to arial.ttf. You're right though, there is a way to add more than one font though. I can't exactly remember off the top of my head though. Right now, I say take your skin, make four copies of it, then add you fonts into each one. For example, make Project Mayhem III - My House; Project Mayhem III - In Dash; Project Mayhem III - Bud's House. This would be the same effect, it would just take up more space.

#6 ClintiePoo

ClintiePoo

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,058 posts
  • Xbox Version:v1.6
  • 360 version:v1 (xenon)

Posted 11 December 2005 - 02:37 AM

There should be a better way than that. To change fonts you have to change skins? This is disappointing.

#7 jmarshall

jmarshall

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,340 posts

Posted 12 December 2005 - 02:12 AM

The font list is included in the skin, yes. (A font is an integrable part in defining the skin's look)

If someone bothered to post their attempt at doing a fonts.xml file, I'll bother taking the time to correct where they're going wrong.


#8 ubernewb

ubernewb

    now 58% uber'er

  • Moderator
  • PipPipPipPipPipPip
  • 2,016 posts
  • Location:3 miles west of nowhere
  • Xbox Version:v1.4
  • 360 version:v1 (xenon)

Posted 18 December 2005 - 12:43 PM

ok then, here's what i tried.. thinking that the easiest approach (the one that is most commonly overlooked) is the way to go, i simply copy-pasted the fontset group for arial.ttf and replaced everything arial with the new font's name x-files. once that was done, i transfered it back to the pal 16x9 folder of the skin and placed the x-files.ttf in the skin's font folder.

maybe you can make some sense of it, maybe i'm putting the font file in the wrong place?

anywho, here's the xml file.. (the red text denotes the section i added)



<fonts>
<fontset id="Default">
<font>
<name>font13</name>
<filename>common-font13.xpr</filename>
</font>

<font>
<name>font14</name>
<filename>common-font14.xpr</filename>
</font>

<font>
<name>matrix8</name>
<filename>matrix8.xpr</filename>
</font>

<font>
<name>font04</name>
<filename>common-font14.xpr</filename>
</font>

<font>
<name>font10</name>
<filename>common-font10.xpr</filename>
</font>

<font>
<name>font12</name>
<filename>common-font12.xpr</filename>
</font>

<font>
<name>fontKB</name>
<filename>common-font13.xpr</filename>
</font>

<font>
<name>font101</name>
<filename>common-font10.xpr</filename>
</font>

<font>
<name>special12</name>
<filename>special-normal-pal.xpr</filename>
</font>

<font>
<name>special13</name>
<filename>special-bold-pal.xpr</filename>
</font>

<font>
<name>fontBL</name>
<filename>common-font12.xpr</filename>
</font>

</fontset>

<fontset id="Arial TTF">
<font>
<name>font13</name>
<filename>Arial.ttf</filename>
<size>15</size>
<style>bold</style>
</font>

<font>
<name>font14</name>
<filename>Arial.ttf</filename>
<size>17</size>
<style>bold</style>
</font>

<font>
<name>matrix8</name>
<filename>matrix8.xpr</filename>
</font>

<font>
<name>font04</name>
<filename>Arial.ttf</filename>
<size>17</size>
<style>bold</style>
</font>

<font>
<name>font10</name>
<filename>Arial.ttf</filename>
<size>14</size>
<style>bold</style>
</font>

<font>
<name>font12</name>
<filename>Arial.ttf</filename>
<size>14</size>
<style>bold</style>
</font>

<font>
<name>fontKB</name>
<filename>common-font13.xpr</filename>
</font>

<font>
<name>font101</name>
<filename>Arial.ttf</filename>
<size>14</size>
<style>bold</style>
</font>

<font>
<name>special12</name>
<filename>Arial.ttf</filename>
<size>16</size>
</font>

<font>
<name>special13</name>
<filename>Arial.ttf</filename>
<size>16</size>
<style>bold</style>
</font>

<font>
<name>fontBL</name>
<filename>Arial.ttf</filename>
<size>14</size>
<style>bold</style>
</font>

</fontset>


<fontset id="X-Files TTF">
<font>
<name>font13</name>
<filename>X-Files.ttf</filename>
<size>15</size>
<style>bold</style>
</font>

<font>
<name>font14</name>
<filename>X-Files.ttf</filename>
<size>17</size>
<style>bold</style>
</font>

<font>
<name>matrix8</name>
<filename>matrix8.xpr</filename>
</font>

<font>
<name>font04</name>
<filename>X-Files.ttf</filename>
<size>17</size>
<style>bold</style>
</font>

<font>
<name>font10</name>
<filename>X-Files.ttf</filename>
<size>14</size>
<style>bold</style>
</font>

<font>
<name>font12</name>
<filename>X-Files.ttf</filename>
<size>14</size>
<style>bold</style>
</font>

<font>
<name>fontKB</name>
<filename>common-font13.xpr</filename>
</font>

<font>
<name>font101</name>
<filename>X-Files.ttf</filename>
<size>14</size>
<style>bold</style>
</font>

<font>
<name>special12</name>
<filename>X-Files.ttf</filename>
<size>16</size>
</font>

<font>
<name>special13</name>
<filename>X-Files.ttf</filename>
<size>16</size>
<style>bold</style>
</font>

<font>
<name>fontBL</name>
<filename>X-Files.ttf</filename>
<size>14</size>
<style>bold</style>
</font>

</fontset>



</fonts>



#9 jmarshall

jmarshall

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,340 posts

Posted 19 December 2005 - 12:36 AM

Can't see anything immediately wrong with the file. Will test tonight

You should pop the font in XBMC/media/fonts

Cheers,
Jonathan

#10 ubernewb

ubernewb

    now 58% uber'er

  • Moderator
  • PipPipPipPipPipPip
  • 2,016 posts
  • Location:3 miles west of nowhere
  • Xbox Version:v1.4
  • 360 version:v1 (xenon)

Posted 19 December 2005 - 06:07 AM

well crap, that's probably it then.. i was putting the font in the skin's font folder

like i said, you always get hung up on the simplest things... laugh.gif i'll add a few more fonts, put them in the right places, then try again tonight


#11 ayan

ayan

    X-S Member

  • Members
  • Pip
  • 69 posts
  • Location:Rabbit Island
  • Xbox Version:v1.1
  • 360 version:none

Posted 20 December 2005 - 09:22 PM

Just to add on the above information:

I personally prefer verdana and tahoma fonts, because they render nicely on the screen. So here's what you have to do:

1) Grab verdana.ttf and tahoma.ttf from your PC (C:\Windows\Fonts) and ftp them to XBMC\Media\Fonts

2) Edit the file XBMC\skin\Project Mayhem III\PAL\Font.xml and replace it's contents with the following [see below].

3) Copy-paste the file Font.xml into XBMC\skin\Project Mayhem III\PAL16x9\ . Also do this for \720p, \1080i, \NTSC, \NTSC16x9 so your new fonts will be available under any resolution.

4) Finally go to settings\appearance\fonts and switch from Default to Arial, Verdana or Tahoma

[contents of Font.xml]
CODE

<fonts>
  <fontset id="Default">
    <font>
      <name>font13</name>
      <filename>common-font13.xpr</filename>
    </font>
    <font>
      <name>font14</name>
      <filename>common-font14.xpr</filename>
    </font>
    <font>
      <name>matrix8</name>
      <filename>matrix8.xpr</filename>
    </font>
    <font>
      <name>font04</name>
      <filename>common-font14.xpr</filename>
    </font>
    <font>
      <name>font10</name>
      <filename>common-font10.xpr</filename>
    </font>
    <font>
      <name>font12</name>
      <filename>common-font12.xpr</filename>
    </font>
    <font>
      <name>fontKB</name>
      <filename>common-font13.xpr</filename>
    </font>
    <font>
      <name>font101</name>
      <filename>common-font10.xpr</filename>
    </font>
    <font>
      <name>special12</name>
      <filename>special-normal-pal.xpr</filename>
    </font>
    <font>
      <name>special13</name>
      <filename>special-bold-pal.xpr</filename>
    </font>
    <font>
      <name>fontBL</name>
      <filename>common-font12.xpr</filename>
    </font>
  </fontset>
  <fontset id="Arial TTF">
    <font>
      <name>font13</name>
      <filename>Arial.ttf</filename>
      <size>15</size>
      <style>bold</style>
    </font>
    <font>
      <name>font14</name>
      <filename>Arial.ttf</filename>
      <size>17</size>
      <style>bold</style>
    </font>
    <font>
      <name>matrix8</name>
      <filename>matrix8.xpr</filename>
    </font>
    <font>
      <name>font04</name>
      <filename>Arial.ttf</filename>
      <size>17</size>
      <style>bold</style>
    </font>
    <font>
      <name>font10</name>
      <filename>Arial.ttf</filename>
      <size>14</size>
      <style>bold</style>
    </font>
    <font>
      <name>font12</name>
      <filename>Arial.ttf</filename>
      <size>14</size>
      <style>bold</style>
    </font>
    <font>
      <name>fontKB</name>
      <filename>common-font13.xpr</filename>
    </font>
    <font>
      <name>font101</name>
      <filename>Arial.ttf</filename>
      <size>14</size>
      <style>bold</style>
    </font>
    <font>
      <name>special12</name>
      <filename>Arial.ttf</filename>
      <size>16</size>
    </font>
    <font>
      <name>special13</name>
      <filename>Arial.ttf</filename>
      <size>16</size>
      <style>bold</style>
    </font>
    <font>
      <name>fontBL</name>
      <filename>Arial.ttf</filename>
      <size>14</size>
      <style>bold</style>
    </font>
  </fontset>
  <fontset id="Tahoma TTF">
    <font>
      <name>font13</name>
      <filename>Tahoma.ttf</filename>
      <size>15</size>
      <style>bold</style>
    </font>
    <font>
      <name>font14</name>
      <filename>Tahoma.ttf</filename>
      <size>17</size>
      <style>bold</style>
    </font>
    <font>
      <name>matrix8</name>
      <filename>matrix8.xpr</filename>
    </font>
    <font>
      <name>font04</name>
      <filename>Tahoma.ttf</filename>
      <size>17</size>
      <style>bold</style>
    </font>
    <font>
      <name>font10</name>
      <filename>Tahoma.ttf</filename>
      <size>14</size>
      <style>bold</style>
    </font>
    <font>
      <name>font12</name>
      <filename>Tahoma.ttf</filename>
      <size>14</size>
      <style>bold</style>
    </font>
    <font>
      <name>fontKB</name>
      <filename>common-font13.xpr</filename>
    </font>
    <font>
      <name>font101</name>
      <filename>Tahoma.ttf</filename>
      <size>14</size>
      <style>bold</style>
    </font>
    <font>
      <name>special12</name>
      <filename>Tahoma.ttf</filename>
      <size>16</size>
    </font>
    <font>
      <name>special13</name>
      <filename>Tahoma.ttf</filename>
      <size>16</size>
      <style>bold</style>
    </font>
    <font>
      <name>fontBL</name>
      <filename>Tahoma.ttf</filename>
      <size>14</size>
      <style>bold</style>
    </font>
  </fontset>
  <fontset id="Verdana TTF">
    <font>
      <name>font13</name>
      <filename>Verdana.ttf</filename>
      <size>15</size>
      <style>bold</style>
    </font>
    <font>
      <name>font14</name>
      <filename>Verdana.ttf</filename>
      <size>17</size>
      <style>bold</style>
    </font>
    <font>
      <name>matrix8</name>
      <filename>matrix8.xpr</filename>
    </font>
    <font>
      <name>font04</name>
      <filename>Verdana.ttf</filename>
      <size>17</size>
      <style>bold</style>
    </font>
    <font>
      <name>font10</name>
      <filename>Verdana.ttf</filename>
      <size>14</size>
      <style>bold</style>
    </font>
    <font>
      <name>font12</name>
      <filename>Verdana.ttf</filename>
      <size>14</size>
      <style>bold</style>
    </font>
    <font>
      <name>fontKB</name>
      <filename>common-font13.xpr</filename>
    </font>
    <font>
      <name>font101</name>
      <filename>Verdana.ttf</filename>
      <size>14</size>
      <style>bold</style>
    </font>
    <font>
      <name>special12</name>
      <filename>Verdana.ttf</filename>
      <size>16</size>
    </font>
    <font>
      <name>special13</name>
      <filename>Verdana.ttf</filename>
      <size>16</size>
      <style>bold</style>
    </font>
    <font>
      <name>fontBL</name>
      <filename>Verdana.ttf</filename>
      <size>14</size>
      <style>bold</style>
    </font>
  </fontset>
</fonts>

Edited by ayan, 20 December 2005 - 09:24 PM.


#12 jmarshall

jmarshall

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,340 posts

Posted 21 December 2005 - 12:47 AM

Thanks,

Have linked to this thread from the online manual smile.gif

Cheers,
Jonathan

#13 ClintiePoo

ClintiePoo

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,058 posts
  • Xbox Version:v1.6
  • 360 version:v1 (xenon)

Posted 29 January 2006 - 07:08 AM

Nice. Very Nice.

#14 uneekwahn

uneekwahn

    X-S Young Member

  • Members
  • Pip
  • 53 posts
  • Location:Perth, Western Australia, Australia!
  • Xbox Version:v1.6
  • 360 version:none

Posted 04 September 2006 - 01:10 AM

I have just recently added in a couple of fonts to my Fonts.xml file and had a couple of questions ..

there are still a lot of bitmap (xpr) fonts referred to in my "custom" font section of Fonts.xml. I don't want to use any of these fonts and want the font I define to be the default font for everything. How do I do this without creating bitmap (xpr) font "packs"?

I hope this makes sense smile.gif

#15 JeffyLube0

JeffyLube0

    X-S Member

  • Members
  • Pip
  • 73 posts
  • Xbox Version:v1.3
  • 360 version:none

Posted 05 September 2006 - 08:15 AM

wow! thanks for the info ayan these fonts look much better than the default. but how would i change that code you supplied if i wanted to add different fonts? thanks

muhaha.gif -Jeffy





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users