Difference between revisions of "Display Size"

From MythTV Official Wiki
Jump to: navigation, search
m (Categorized)
(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 /etc/X11/XF86Config-4 config files is very complicated.
+
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.
Suffice to say that the 'rules' state that all themes should run as 100dpi.
+
  
Add this line -
+
Add the following lines to your X configuration file (XF86Config or xorg.conf) in the Section "Monitor":
  
''DisplaySize 204 153 # 100 DPI @ 800x600''
+
<pre><nowiki>
 +
# 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
 +
</nowiki></pre>
  
under the "Section Monitor" of your /etc/X11/XF86Config-4 file and all should be well.
+
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.
  
However, this made all the big fonts HUGE, so I used -
+
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.
 
+
''DisplaySize 271 204  #  75 DPI @ 800x600''
+
  
 
{{Stub}}
 
{{Stub}}
  
 
[[Category:Glossary]]
 
[[Category:Glossary]]

Revision as of 20:37, 31 July 2006

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.

Add the following lines to your X configuration file (XF86Config or xorg.conf) in the Section "Monitor":

# 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

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 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.