LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 865|回复: 4

dpi 设置问题

[复制链接]
发表于 2008-10-29 21:23:41 | 显示全部楼层 |阅读模式
我是12寸屏幕
目前dpi是96
kde设置中心里也只有 96 和120
我像设置成 105的

根据linux字体调整windows版 ,我在xorg.conf 都monitor setction 加入 displaysize 245 188 ,
/etc/fonts/local.conf 或 vi ~/.fonts.conf 加入
<!--
   Target dots per inch
-->
        <match target="pattern">
                <edit name="dpi" mode="assign" >
                        <double>90</double>
                </edit>
        </match>


重启后
还是96的呢
  1.   dimensions:    1024x768 pixels (270x203 millimeters)
  2.   resolution:    96x96 dots per inch  
复制代码
  1. Size          Diagonal          Width          Height          Ratio          Area          Gain
  2. 12.1"         30.73 cm         24.59 cm         18.44 cm         4:3         453 cm2         100%
复制代码



贴上xorg.conf
  1. joey@localhost ~ $ cat /etc/X11/xorg.conf
  2. Section "ServerLayout"                  
  3.         Identifier     "X.org Configured"
  4.         Screen      0  "Screen0" 0 0     
  5.         InputDevice    "Mouse0" "CorePointer"
  6.         InputDevice    "Keyboard0" "CoreKeyboard"
  7. EndSection                                       

  8. Section "Files"
  9.         FontPath     "/usr/share/fonts/misc/"
  10.         FontPath     "/usr/share/fonts/TTF/"
  11.         FontPath     "/usr/share/fonts/OTF"  
  12.         FontPath     "/usr/share/fonts/Type1/"
  13.         FontPath     "/usr/share/fonts/100dpi/"
  14.         FontPath     "/usr/share/fonts/75dpi/"
  15.         FontPath     "/usr/share/fonts/myfonts/vista/"
  16. EndSection                                            

  17. Section "Module"
  18.         Load  "glx"
  19.         Load  "extmod"
  20.         Load  "xtrap"
  21.         Load  "record"
  22. #       Load  "GLcore"
  23.         Load  "dbe"   
  24.         Load  "dri"   
  25.         Load  "freetype"
  26.         Load  "type1"   
  27.         Load  "drm"     
  28. EndSection              

  29. Section "InputDevice"
  30.         Identifier  "Keyboard0"
  31.         Driver      "kbd"      
  32. EndSection                     

  33. Section "InputDevice"
  34.         Identifier  "Mouse0"
  35.         Driver      "mouse"
  36.         Option      "Protocol" "auto"
  37.         Option      "Device" "/dev/input/mice"
  38.         Option      "ZAxisMapping" "4 5 6 7"  
  39. EndSection                                    

  40. Section "Monitor"
  41.         Identifier   "Monitor0"
  42.         VendorName   "Monitor Vendor"
  43.         ModelName    "Monitor Model"
  44.         DisplaySize     245     184  
  45. EndSection                           

  46. Section "Device"

  47.         ### Available Driver options are:-
  48.         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
  49.         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"            
  50.         ### [arg]: arg optional                                      
  51.         #Option     "NoAccel"                   # [<bool>]           
  52.         #Option     "SWcursor"                  # [<bool>]           
  53.         #Option     "Dac6Bit"                   # [<bool>]           
  54.         #Option     "Dac8Bit"                   # [<bool>]           
  55.         #Option     "BusType"                   # [<str>]            
  56.         #Option     "CPPIOMode"                 # [<bool>]           
  57.         #Option     "CPusecTimeout"             # <i>               
  58.         #Option     "AGPMode"                   # <i>               
  59.         #Option     "AGPFastWrite"              # [<bool>]           
  60.         #Option     "AGPSize"                   # <i>               
  61.         #Option     "GARTSize"                  # <i>               
  62.         #Option     "RingSize"                  # <i>               
  63.         #Option     "BufferSize"                # <i>               
  64.         #Option     "EnableDepthMoves"          # [<bool>]           
  65.         #Option     "EnablePageFlip"            # [<bool>]           
  66.         #Option     "NoBackBuffer"              # [<bool>]           
  67.         #Option     "DMAForXv"                  # [<bool>]           
  68.         #Option     "FBTexPercent"              # <i>               
  69.         #Option     "DepthBits"                 # <i>               
  70.         #Option     "AccelDFS"                  # [<bool>]           
  71.         #Option     "PanelOff"                  # [<bool>]           
  72.         #Option     "DDCMode"                   # [<bool>]           
  73.         #Option     "MonitorLayout"             # [<str>]            
  74.         #Option     "IgnoreEDID"                # [<bool>]           
  75.         #Option     "UseFBDev"                  # [<bool>]           
  76.         #Option     "MergedFB"                  # [<bool>]           
  77.         #Option     "CRT2HSync"                 # [<str>]            
  78.         #Option     "CRT2VRefresh"              # [<str>]            
  79.         #Option     "CRT2Position"              # [<str>]            
  80.         #Option     "MetaModes"                 # [<str>]            
  81.         #Option     "MergedDPI"                 # [<str>]            
  82.         #Option     "MergedXinerama"            # [<bool>]           
  83.         #Option     "MergedXineramaCRT2IsScreen0"       # [<bool>]   
  84.         #Option     "MergedNonRectangular"      # [<bool>]           
  85.         #Option     "MergedMouseRestriction"    # [<bool>]           
  86.         #Option     "DisplayPriority"           # [<str>]            
  87.         #Option     "PanelSize"                 # [<str>]            
  88.         #Option     "ForceMinDotClock"          # <freq>            
  89.         #Option     "ColorTiling"               # [<bool>]           
  90.         #Option     "VideoKey"                  # <i>               
  91.         #Option     "RageTheatreCrystal"        # <i>               
  92.         #Option     "RageTheatreTunerPort"      # <i>               
  93.         #Option     "RageTheatreCompositePort"  # <i>               
  94.         #Option     "RageTheatreSVideoPort"     # <i>               
  95.         #Option     "TunerType"                 # <i>               
  96.         #Option     "RageTheatreMicrocPath"     # <str>              
  97.         #Option     "RageTheatreMicrocType"     # <str>              
  98.         #Option     "RenderAccel"               # [<bool>]           
  99.         #Option     "SubPixelOrder"             # [<str>]            
  100.         #Option     "ShowCache"                 # [<bool>]           
  101.         #Option     "DynamicClocks"             # [<bool>]           
  102.         #Option     "BIOSHotkeys"               # [<bool>]           
  103.         #Option     "VGAAccess"                 # [<bool>]           
  104.         #Option     "ReverseDDC"                # [<bool>]           
  105.         #Option     "LVDSProbePLL"              # [<bool>]           
  106.         #Option     "AccelMethod"               # <str>              
  107.         #Option     "ConstantDPI"               # [<bool>]           
  108.         Identifier  "Card0"                                          
  109.         Driver      "radeon"                                         
  110.         VendorName  "ATI Technologies Inc"                           
  111.         BoardName   "Radeon Mobility M6 LY"                          
  112.         BusID       "PCI:1:0:0"                                      
  113.         Option       "NoDDC"                                         


  114.         Option          "DRI"     "true"
  115.         Option          "XAANoOffscreenPixmaps" "true"
  116. EndSection                                            

  117. Section "Screen"
  118.         Identifier "Screen0"
  119.         Device     "Card0"  
  120.         Monitor    "Monitor0"
  121.         DefaultDepth     16  
  122.         SubSection "Display"
  123.                 Viewport   0 0
  124.                 Depth     1   
  125.         EndSubSection         
  126.         SubSection "Display"  
  127.                 Viewport   0 0
  128.                 Depth     4
  129.         EndSubSection
  130.         SubSection "Display"
  131.                 Viewport   0 0
  132.                 Depth     8
  133.         EndSubSection
  134.         SubSection "Display"
  135.                 Viewport   0 0
  136.                 Depth     15
  137.         EndSubSection
  138.         SubSection "Display"
  139.                 Viewport   0 0
  140.                 Depth     16
  141.         EndSubSection
  142.         SubSection "Display"
  143.                 Viewport   0 0
  144.                 Depth     24
  145.         EndSubSection
  146. EndSection

  147. Section "DRI"
  148.         Mode 0666
  149. #       Group        0
  150. EndSection


  151. Section "Extensions"
  152.     Option "Composite" "Enable"
  153. EndSection
复制代码
 楼主| 发表于 2008-10-29 21:54:47 | 显示全部楼层
用了网页快照上了wiki 找到解决方法:修改/usr/share/kde/kdm/kdmrc
找到一行:ServerArgsLocal=-nolisten tcp
加入:-dpi 105 即刻
重启后,所有东西都变大了,就是我期望都firefox网页字体还是没变
回复 支持 反对

使用道具 举报

发表于 2008-10-29 22:06:03 | 显示全部楼层
你把 FF 的网页字体设大一些不行么?
回复 支持 反对

使用道具 举报

发表于 2008-10-29 22:08:37 | 显示全部楼层
在 ~/.Xresources 中加入
Xft.dpi:105
有用否?
回复 支持 反对

使用道具 举报

发表于 2008-10-30 10:47:42 | 显示全部楼层
我使用gnome,设置方法如图。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表