LinuxSir.cn,穿越时空的Linuxsir!

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

mplayer不能设置字母的字体。

[复制链接]
发表于 2009-7-19 13:06:57 | 显示全部楼层 |阅读模式
很奇怪,

我以前就是这么设置的,现在不好使了,设置方法如图,

我开始怀疑是我的xorg.conf中没有相关的字体目录,应为我发现dpkg-reconfigure xorg-xserver生成的那个少很多东西。
于是我这个xorg.cong是运行Xorg -configure生成了一个新的xorg.conf然后稍微调整了一下,当前的xorg.conf内容如下:
  1. $ 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.         RgbPath      "/etc/X11/rgb"
  10.         ModulePath   "/usr/lib/xorg/modules"
  11.         FontPath     "/usr/share/fonts/X11/misc"
  12.         FontPath     "/usr/share/fonts/X11/cyrillic"
  13.         FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
  14.         FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
  15.         FontPath     "/usr/share/fonts/X11/Type1"
  16.         FontPath     "/usr/share/fonts/X11/100dpi"
  17.         FontPath     "/usr/share/fonts/X11/75dpi"
  18.         FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
  19. EndSection
  20. Section "Module"
  21.         Load  "GLcore"
  22.         Load  "record"
  23.         Load  "glx"
  24.         Load  "xtrap"
  25.         Load  "extmod"
  26.         Load  "dri"
  27.         Load  "dbe"
  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.         #DisplaySize          400   250        # mm
  42.         Identifier   "Monitor0"
  43.         VendorName   "PHL"
  44.         ModelName    "Philips 190CW"
  45. ### Comment all HorizSync and VertRefresh values to use DDC:
  46.         HorizSync    30.0 - 83.0
  47.         VertRefresh  56.0 - 76.0
  48.         Option            "DPMS"
  49. EndSection
  50. Section "Device"
  51.         ### Available Driver options are:-
  52.         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
  53.         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
  54.         ### [arg]: arg optional
  55.         #Option     "NoAccel"                    # [<bool>]
  56.         #Option     "SWcursor"                   # [<bool>]
  57.         #Option     "ColorKey"                   # <i>
  58.         #Option     "CacheLines"                 # <i>
  59.         #Option     "Dac6Bit"                    # [<bool>]
  60.         #Option     "DRI"                        # [<bool>]
  61.         #Option     "NoDDC"                      # [<bool>]
  62.         #Option     "ShowCache"                  # [<bool>]
  63.         #Option     "XvMCSurfaces"               # <i>
  64.         #Option     "PageFlip"                   # [<bool>]
  65.         Identifier  "Card0"
  66.         Driver      "intel"
  67.         VendorName  "Intel Corporation"
  68.         BoardName   "82946GZ/GL Integrated Graphics Controller"
  69.         BusID       "PCI:0:2:0"
  70. EndSection
  71. Section "Screen"
  72.         Identifier "Screen0"
  73.         Device     "Card0"
  74.         Monitor    "Monitor0"
  75.         SubSection "Display"
  76.                 Viewport   0 0
  77.                 Depth     24
  78.                 Modes        "1440x900"
  79.         EndSubSection
  80. EndSection
复制代码

本帖子中包含更多资源

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

x
发表于 2009-7-19 20:14:32 | 显示全部楼层
应该和 xorg.conf 没有关系吧
  1. cat ~/.mplayer/*
复制代码
看看吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-19 21:05:02 | 显示全部楼层
内容如下:
  1. $ cat .mplayer/*
  2. # Write your default config options here!
  3. enable_audio_equ = "no"
  4. vo_driver = "xv"
  5. vo_panscan = "0.000000"
  6. vo_doublebuffering = "yes"
  7. vo_direct_render = "no"
  8. v_framedrop = "0"
  9. v_flip = "0"
  10. v_ni = "no"
  11. v_idx = "-1"
  12. vf_pp = "no"
  13. vf_autoq = "0"
  14. vf_lavc = "no"
  15. ao_driver = "alsa"
  16. ao_volnorm = "no"
  17. softvol = "no"
  18. ao_surround = "no"
  19. ao_extra_stereo = "no"
  20. ao_extra_stereo_coefficient = "1.000000"
  21. dvd_device = "/dev/cdrom"
  22. cdrom_device = "/dev/cdrom"
  23. osd_level = "1"
  24. sub_auto_load = "yes"
  25. sub_unicode = "no"
  26. ass_enabled = "no"
  27. ass_use_margins = "no"
  28. ass_top_margin = "0"
  29. ass_bottom_margin = "0"
  30. sub_pos = "100"
  31. sub_overlap = "no"
  32. font_factor = "0.750000"
  33. font_name = "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf"
  34. font_text_scale = "5.000000"
  35. font_osd_scale = "6.000000"
  36. font_blur = "2.000000"
  37. font_outline = "2.000000"
  38. font_autoscale = "3"
  39. cache = "no"
  40. cache_size = "2048"
  41. playbar = "no"
  42. load_fullscreen = "no"
  43. show_videowin = "yes"
  44. stopxscreensaver = "no"
  45. autosync = "no"
  46. autosync_size = "0"
  47. gui_skin = "PowerPlayer"
  48. gui_save_pos = "yes"
  49. gui_main_pos_x = "967"
  50. gui_main_pos_y = "723"
  51. gui_video_out_pos_x = "560"
  52. gui_video_out_pos_y = "281"
  53. equ_band_00 = "0.000000"
  54. equ_band_01 = "0.000000"
  55. equ_band_02 = "0.000000"
  56. equ_band_03 = "0.000000"
  57. equ_band_04 = "0.000000"
  58. equ_band_05 = "0.000000"
  59. equ_band_06 = "0.000000"
  60. equ_band_07 = "0.000000"
  61. equ_band_08 = "0.000000"
  62. equ_band_09 = "0.000000"
  63. equ_band_10 = "0.000000"
  64. equ_band_11 = "0.000000"
  65. equ_band_12 = "0.000000"
  66. equ_band_13 = "0.000000"
  67. equ_band_14 = "0.000000"
  68. equ_band_15 = "0.000000"
  69. equ_band_16 = "0.000000"
  70. equ_band_17 = "0.000000"
  71. equ_band_18 = "0.000000"
  72. equ_band_19 = "0.000000"
  73. equ_band_20 = "0.000000"
  74. equ_band_21 = "0.000000"
  75. equ_band_22 = "0.000000"
  76. equ_band_23 = "0.000000"
  77. equ_band_24 = "0.000000"
  78. equ_band_25 = "0.000000"
  79. equ_band_26 = "0.000000"
  80. equ_band_27 = "0.000000"
  81. equ_band_28 = "0.000000"
  82. equ_band_29 = "0.000000"
  83. equ_band_30 = "0.000000"
  84. equ_band_31 = "0.000000"
  85. equ_band_32 = "0.000000"
  86. equ_band_33 = "0.000000"
  87. equ_band_34 = "0.000000"
  88. equ_band_35 = "0.000000"
  89. equ_band_36 = "0.000000"
  90. equ_band_37 = "0.000000"
  91. equ_band_38 = "0.000000"
  92. equ_band_39 = "0.000000"
  93. equ_band_40 = "0.000000"
  94. equ_band_41 = "0.000000"
  95. equ_band_42 = "0.000000"
  96. equ_band_43 = "0.000000"
  97. equ_band_44 = "0.000000"
  98. equ_band_45 = "0.000000"
  99. equ_band_46 = "0.000000"
  100. equ_band_47 = "0.000000"
  101. equ_band_48 = "0.000000"
  102. equ_band_49 = "0.000000"
  103. equ_band_50 = "0.000000"
  104. equ_band_51 = "0.000000"
  105. equ_band_52 = "0.000000"
  106. equ_band_53 = "0.000000"
  107. equ_band_54 = "0.000000"
  108. equ_band_55 = "0.000000"
  109. equ_band_56 = "0.000000"
  110. equ_band_57 = "0.000000"
  111. equ_band_58 = "0.000000"
  112. equ_band_59 = "0.000000"
复制代码

貌似是设定了字体的。
回复 支持 反对

使用道具 举报

发表于 2009-7-20 00:17:27 | 显示全部楼层
楼主的问题是不能设置字幕里的英文字体吧?
还是 mplayer 界面的字体?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-20 10:55:49 | 显示全部楼层
是看电影时的英文字幕,没说清楚,哈哈。
回复 支持 反对

使用道具 举报

发表于 2009-7-20 11:53:26 | 显示全部楼层
那你现在 mplayer 显示的是哪个字体?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-20 16:26:44 | 显示全部楼层
不知道是那个字体啊,上个图吧。 :yun:

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

发表于 2009-7-20 22:32:00 | 显示全部楼层
字幕是 srt 还是 sub,或是其他?
sub 字幕的字体不能改的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-20 23:40:46 | 显示全部楼层
是srt的,用vim直接就能打开看的那种,

我感觉十分的诡异。  :yun:
回复 支持 反对

使用道具 举报

发表于 2009-7-21 10:32:02 | 显示全部楼层
好像是字体那里的选择要写字体名称,而不是选一个ttf文件

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

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

本版积分规则

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