Change font sizes

Discussion in 'Tips and Tricks' started by cheezey, January 20, 2006.

  1. cheezey

    cheezey Community Plugin Dev

    Joined:
    August 26, 2004
    Messages:
    1,560
    Likes Received:
    315
    Occupation:
    Technical architect
    Location:
    West Yorks, UK
    Ratings:
    +315 / 0
    Home Country:
    United Kingdom United Kingdom
    There's already a Tips & Tricks post for fonts, but it's a little brief and the question keeps cropping up so I thought I'd expand it.

    Users using CRT TV's or those just wanting a bit more readability often change the font sizes in MediaPortal, so here's how to do it.

    A couple of points first:

    1. These changes are system wide, i.e. all MediaPortal screens text will change.
    2. These changes are skin specific, so you need to complete this change for the skin you're using.
    3. These changes are overwritten when you reinstall MediaPortal.

    To change the font sizes in MediaPortal look in your skin folder and locate the fonts.xml file (e.g. C:\Program Files\Team MediaPortal\MediaPortal\skin\BlueTwo\fonts.xml) This file contains the font definition used by the skin.

    A font section looks like

    Code (Text):
    1.  
    2.   <font>
    3.     <name>font10</name>
    4.     <filename>Arial</filename>
    5.     <height>10</height>
    6.   </font>
    7.  
    The line you're interested in is the <height> line, just change this value to something else to increase or decrease the size as required. e.g. I change font10 to this:

    Code (Text):
    1.  
    2.   <font>
    3.     <name>font10</name>
    4.     <filename>Arial</filename>
    5.     <height>14</height>
    6.   </font>
    7.  
    This enlarges all text using from 10 point to 14 points.

    Repeat this for each font size you want to change, I typically change all fonts up to and including font18.

    Code (Text):
    1.   <font>
    2.     <name>font10</name>
    3.     <filename>Arial</filename>
    4.     <height>14</height>
    5.   </font>
    6.   <font>
    7.     <name>font12</name>
    8.     <filename>Arial</filename>
    9.     <height>16</height>
    10.   </font>
    11.   <font>
    12.     <name>font13</name>
    13.     <filename>Arial</filename>
    14.     <height>17</height>
    15.   </font>
    16.   <font>
    17.     <name>font14</name>
    18.     <filename>Arial</filename>
    19.     <height>18</height>
    20.   </font>
    21.   <font>
    22.     <name>font16</name>
    23.     <filename>Arial</filename>
    24.     <height>20</height>
    25.   </font>
    26.   <font>
    27.     <name>font18</name>
    28.     <filename>Arial</filename>
    29.     <height>24</height>
    30.   </font>
    Once you've completed this save your fonts.xml file.

    MediaPortal caches fonts for each skin so for your changes to take affect you have to delete this cache, you do this by deleting the /fonts/ folder in the mediaportal/skin/yourskin/ folder for 0.2.2.0 and below or the mediaportal/cache/skin/yourskin/ folder for 0.2.2.1 and above, MediaPortal will then re-cache the fonts at the next startup using your modified sizes.



    That's it, have fun. :wink:
     
    • Like Like x 2
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. j1nx

    j1nx Portal Pro

    Joined:
    July 16, 2005
    Messages:
    233
    Likes Received:
    10
    Ratings:
    +10 / 0
    Thank you so much!

    A old CRT TV in the bedroom at the other end of the room, makes it hard to read. This was exactly what i needed.
     
  4. Efros

    Efros Portal Pro

    Joined:
    January 23, 2006
    Messages:
    511
    Likes Received:
    2
    Occupation:
    Inflictor of Physical Science on 18 year old Nerks
    Location:
    Maine
    Ratings:
    +2 / 0
    Home Country:
    England England
    Show System Specs
    Nice one, my failing eyesight and 12 feet to the TV means the existing font sizes were barely readable on my 27 incher, 35 incher will be arriving within the month!! This makes reading the TVguide much much easier. :D
     
  5. Paranoid Delusion
    • Team MediaPortal

    Paranoid Delusion Moderation Manager

    Joined:
    June 13, 2005
    Messages:
    13,062
    Likes Received:
    1,481
    Gender:
    Male
    Occupation:
    Electrical Engineer
    Location:
    Cheshire
    Ratings:
    +1,482 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Hi Cheezey

    Nice, Clear and too the FONT

    8) :lol:
     
  6. eric.c.mi

    eric.c.mi Portal Pro

    Joined:
    March 11, 2006
    Messages:
    63
    Likes Received:
    0
    Occupation:
    Rockstar
    Location:
    Michigan, USA
    Ratings:
    +0 / 0
    Thanks a million

    This is exactly what i'v been looking for.
    thanks alot for the post
     
  7. sonome

    sonome Portal Pro

    Joined:
    June 26, 2005
    Messages:
    69
    Likes Received:
    0
    Location:
    Perth, Australia
    Ratings:
    +0 / 0
    I can't believe I missed this thread the first time! Thank you very much! :D
     
  8. omri_ro

    omri_ro Portal Member

    Joined:
    March 24, 2007
    Messages:
    7
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Israel Israel
  9. dcarrion87

    dcarrion87 New Member

    Joined:
    June 8, 2007
    Messages:
    1
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    This is great! Thanks
     
  10. marson

    marson Portal Pro

    Joined:
    June 9, 2007
    Messages:
    98
    Likes Received:
    5
    Gender:
    Male
    Location:
    uk
    Ratings:
    +5 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Thanks , just what i wanted ,nice large fonts...........

    Just to help anyone who reads this , and has trouble on how to change
    The fonts.xml file , just right click the fonts.xml file, and then click edit , then make the changes above ,then click save as ..

    Was not sure how to do it myself...but all sorted now .. Thanks again
     
  11. Mkoorn

    Mkoorn Portal Member

    Joined:
    October 16, 2008
    Messages:
    6
    Likes Received:
    0
    Location:
    Amstelveen
    Ratings:
    +0 / 0
    Home Country:
    Netherlands Netherlands
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!