Difference between revisions of "Display Size"

From MythTV Official Wiki
Jump to: navigation, search
(Added DisplaySize settings for various common resolutions; Added link to FAQ; Suggested proper way to modify font sizes)
Line 1: Line 1:
The DisplaySize setting in the X configuration files should be used to ensure that text and graphical elements of MythTV's user interface align.  Themes are designed so that alignment will occur at 100 x 100 DPI (dots per inch).  Therefore, you should specify a DisplaySize that results in 100 x 100 DPI.
+
MythTV themes are designed so that their elements will be properly aligned at 100x100 DPI (dots per inch).  Therefore, you must specify a DisplaySize that results in 100x100 DPI if your display isn't actually using 100 DPI.  To make this very clear, ''it does not matter what resolution/size your display actually is''--MythTV '''depends''' on the DPI being 100x100 in order to draw the UI correctly.
  
Add the following lines to your X configuration file (XF86Config or xorg.conf) in the Section "Monitor":
+
X will normally attempt to probe the monitor during initialization in an attempt to find out it's actual size using EDID, but some monitors respond with incorrect information, and televisions don't respond to EDID queries at all, making it sometimes necessary to manually set this information in your X config file using the '''DisplaySize''' directive.  If xdpyinfo reports that your display is using something other than 100x100 DPI, you can use the '''DisplaySize''' directive to fix it.
 +
 
 +
Alter the "Monitor" declarations for each display you're going to be using for MythTV in your X configuration file (XF86Config or xorg.conf) to contain a '''DisplaySize''' entry like below:
 +
 
 +
<pre><nowiki>Section "Monitor"
 +
    Identifier  "Television"
 +
    VendorName  "Wombatronic Industries"
 +
    ModelName  "Colormeister 5000"
 +
    HorizSync  30 - 50
 +
    VertRefresh 60
 +
    Option      "DPMS"
  
<pre><nowiki>
 
 
# For 1920x1080 at 100dpi  (16:9)
 
# For 1920x1080 at 100dpi  (16:9)
#       DisplaySize  487 274
+
#   DisplaySize  487 274
 
# For 1280x720 at 100dpi  (16:9)
 
# For 1280x720 at 100dpi  (16:9)
#       DisplaySize  325 182
+
#   DisplaySize  325 182
 
# For 1280x960 at 100dpi (4:3)
 
# For 1280x960 at 100dpi (4:3)
#       DisplaySize  325 243
+
#   DisplaySize  325 243
 
# For 1024x768 at 100dpi  (4:3)
 
# For 1024x768 at 100dpi  (4:3)
#       DisplaySize  260 195
+
#   DisplaySize  260 195
 
# For 800x600 at 100dpi  (4:3)
 
# For 800x600 at 100dpi  (4:3)
#       DisplaySize  203 153
+
#   DisplaySize  203 153
 
# For 640x480 at 100dpi  (4:3)
 
# For 640x480 at 100dpi  (4:3)
#       DisplaySize  162 121
+
#   DisplaySize  162 121
 +
 
 +
EndSection
 
</nowiki></pre>
 
</nowiki></pre>
  
then uncomment (remove the pound symbol/hash at the beginning of the line) the DisplaySize line that's appropriate for your display hardware.  See, also, the [[Frequently_Asked_Questions#Q:_All_my_fonts_look_like_they_are_the_wrong_sizes.2C_how_can_I_correct_this.3F|FAQ]] for more details and for information about setting DPI when using NVIDIA drivers.
+
Uncomment (remove the pound symbol/hash at the beginning of the line) the DisplaySize line matches the resolution you're going to be using on that display.  See also the [[Frequently_Asked_Questions#Q:_All_my_fonts_look_like_they_are_the_wrong_sizes.2C_how_can_I_correct_this.3F|FAQ]] for more details and for information about setting DPI when using NVIDIA drivers.
  
 
If setting your system to use the proper DPI results in fonts that are too large or too small, do ''not'' change the DPI to adjust font sizes.  Instead, edit the &lt;font&gt; elements in your theme's *ui.xml files.
 
If setting your system to use the proper DPI results in fonts that are too large or too small, do ''not'' change the DPI to adjust font sizes.  Instead, edit the &lt;font&gt; elements in your theme's *ui.xml files.

Revision as of 07:07, 19 August 2006

MythTV themes are designed so that their elements will be properly aligned at 100x100 DPI (dots per inch). Therefore, you must specify a DisplaySize that results in 100x100 DPI if your display isn't actually using 100 DPI. To make this very clear, it does not matter what resolution/size your display actually is--MythTV depends on the DPI being 100x100 in order to draw the UI correctly.

X will normally attempt to probe the monitor during initialization in an attempt to find out it's actual size using EDID, but some monitors respond with incorrect information, and televisions don't respond to EDID queries at all, making it sometimes necessary to manually set this information in your X config file using the DisplaySize directive. If xdpyinfo reports that your display is using something other than 100x100 DPI, you can use the DisplaySize directive to fix it.

Alter the "Monitor" declarations for each display you're going to be using for MythTV in your X configuration file (XF86Config or xorg.conf) to contain a DisplaySize entry like below:

Section "Monitor"
    Identifier  "Television"
    VendorName  "Wombatronic Industries"
    ModelName   "Colormeister 5000"
    HorizSync   30 - 50
    VertRefresh 60
    Option      "DPMS"

# For 1920x1080 at 100dpi  (16:9)
#    DisplaySize  487 274
# For 1280x720 at 100dpi  (16:9)
#    DisplaySize  325 182
# For 1280x960 at 100dpi (4:3)
#    DisplaySize  325 243
# For 1024x768 at 100dpi  (4:3)
#    DisplaySize  260 195
# For 800x600 at 100dpi  (4:3)
#    DisplaySize  203 153
# For 640x480 at 100dpi  (4:3)
#    DisplaySize  162 121

EndSection

Uncomment (remove the pound symbol/hash at the beginning of the line) the DisplaySize line matches the resolution you're going to be using on that display. See also the FAQ for more details and for information about setting DPI when using NVIDIA drivers.

If setting your system to use the proper DPI results in fonts that are too large or too small, do not change the DPI to adjust font sizes. Instead, edit the <font> elements in your theme's *ui.xml files.