LinuxSir.cn,穿越时空的Linuxsir!

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

fvwm2标题栏显示中文在哪里设置?

[复制链接]
发表于 2006-1-8 03:09:13 | 显示全部楼层 |阅读模式
刚装完fvwm的时候,进入fvwm,点左键出来的是中文,但是应用程序是乱码。按照这里的
http://www.linuxsir.cn/bbs/showthread.php?t=19561
后来应用程序是中文了,但是左键出来的又是乱码,还有应用程序的标题栏也是乱码。
我又把前面做的设置全部删除,除了那些字体文件没删。还是不行,标题栏一样是乱码。
弄了好久了,还是不行。使用simsun字体。
请指教,谢谢。
发表于 2006-1-8 13:23:26 | 显示全部楼层
MenuStyle * Font "-adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*"
Post by D-WOLVES
刚装完fvwm的时候,进入fvwm,点左键出来的是中文,但是应用程序是乱码。按照这里的
http://www.linuxsir.cn/bbs/showthread.php?t=19561
后来应用程序是中文了,但是左键出来的又是乱码,还有应用程序的标题栏也是乱码。
我又把前面做的设置全部删除,除了那些字体文件没删。还是不行,标题栏一样是乱码。
弄了好久了,还是不行。使用simsun字体。
请指教,谢谢。
回复 支持 反对

使用道具 举报

发表于 2006-1-8 13:23:38 | 显示全部楼层
MenuStyle * Font "-adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*"
Post by D-WOLVES
刚装完fvwm的时候,进入fvwm,点左键出来的是中文,但是应用程序是乱码。按照这里的
http://www.linuxsir.cn/bbs/showthread.php?t=19561
后来应用程序是中文了,但是左键出来的又是乱码,还有应用程序的标题栏也是乱码。
我又把前面做的设置全部删除,除了那些字体文件没删。还是不行,标题栏一样是乱码。
弄了好久了,还是不行。使用simsun字体。
请指教,谢谢。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-8 16:45:10 | 显示全部楼层
试过了,不行啊。我能在网上找到的都试过了,都不行。唉~~~,看来还是装个KDE或者GNOME用用吧。不知道行不行了。
回复 支持 反对

使用道具 举报

发表于 2006-1-8 20:01:46 | 显示全部楼层
我的设置,看看吧,拣出有用的来。
#-----------------------------------------------------------------------------#
#
# 2. Root cursor, Windows Decoration and Menu Styles:
#   Default fonts, colors, Border, Title, Button Styles, Menu Styles
#   window button bindings.
#   (this section may be the theme part of the config, but you need to use
#    FvwmTheme to define and propagate the colors)
#-----------------------------------------------------------------------------#
#Colorset 26  RootTransparent, fg white , bg grey 80, Tint #C04040 20, bgTint black 20 , sh black , fgsh black
#Colorset 27 RootTransparent, fg white, bg grey, Tint red 30 , sh black , fgsh black
#Colorset 28  RootTransparent, fg white, bg #4161A4, Tint green 30, bgTint black 20 , sh black , fgsh black
#Colorset 29 RootTransparent, fg black, bg average, Tint cyan 30, bgTint black 20 , sh black , fgsh black
Colorset 26  RootTransparent, fg #000000, bg grey 80, Tint #C04040 20, bgTint black 20 , sh black , fgsh white
Colorset 27 RootTransparent, fg black 80, bg grey 80, Tint red 30 , sh black , fgsh white
Colorset 28  RootTransparent, fg white, bg #444444, Tint green 30, bgTint black 20 , sh black , fgsh black
Colorset 29 RootTransparent, fg black 80, bg grey 80, Tint cyan 30, bgTint black 20 , sh black , fgsh white
Colorset 30 RootTransparent, fg black, bg average, Tint yellow 30, bgTint black 20 , sh black , fgsh black
Colorset 31 RootTransparent, fg black, bg average, Tint red 60, bgTint black 20 , sh black , fgsh black
Colorset 32 RootTransparent, fg black, bg average, Tint white 30, bgTint black 20 , sh black , fgsh black
Colorset 23 fg #000000, fgsh white, bg #ffffff, hi #ffffff, sh #9a9a9a, Translucent #dce0e7 50
Colorset 20 fg white, fgsh black, bg #3B3B3B, hi #4161A4, sh grey60

#------------------------------------------------------------------------------
# Set the root cursor
#------------------------------------------------------------------------------

CursorStyle ROOT         left_ptr
CursorStyle TITLE        left_ptr
CursorStyle DEFAULT      left_ptr
CursorStyle SYS          left_ptr
CursorStyle MENU         left_ptr

#------------------------------------------------------------------------------
# Fonts - one for window titles, another for icons, and another for the menus
#------------------------------------------------------------------------------

#WIN 1
#Style * Font "xft:sans-serif:Medium;-*-times-medium-r-*-*-16-*-*-*-*-*-*-*"
#FVWM 1
Style * Font "Shadow=1 0.5:-adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*"
Style * IconFont "Shadow=1 0.5:-adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*"




#------------------------------------------------------------------------------
# Set the default window colors.
#------------------------------------------------------------------------------

# Text and background color for the title bar (overridden in the WIN case),
# and the border of the inactive window (also used by icon title,
# and "hilight" and "shadow" colors).
#WIN 1
#Style * ForeColor #c3c3c3, BackColor #c3c3c3
#FVWM 1
Style * ForeColor #c3c3c3, BackColor grey51

# Text and background color for the title bar (overriden in the WIN case),
# and the border of the active (selected) window (also used by icon title,
# and "hilight" and "shadow" colors).
#WIN 1
#Style * HilightFore white, HilightBack #c3c3c3
#FVWM 1
Style * HilightFore white, HilightBack SlateBlue
#------------------------------------------------------------------------------
# Border, Title and Button Styles
#------------------------------------------------------------------------------
Style * BorderWidth 1, HandleWidth 3

#WIN 13
#Style        "*"        FvwmBorder  # MWMBorder
#Style        "*"        FvwmButtons
#BorderStyle        Inactive -- HiddenHandles NoInset
#BorderStyle        Active -- HiddenHandles NoInset
#TitleStyle        ActiveUp (solid Blue4 -- Flat)
#TitleStyle        ActiveDown (solid Blue4 -- Flat)
#TitleStyle        Inactive (solid grey51 -- Flat)
#TitleStyle        LeftJustified
#ButtonStyle        1        MiniIcon (-- flat)
#ButtonStyle        all        -- UseTitleStyle Flat
#AddButtonStyle        2        Pixmap mini.winXX-close.xpm -- left
#AddButtonStyle        4        Pixmap mini.winXX-maximize.xpm -- left
#AddButtonStyle        6        Pixmap mini.winXX-minimize.xpm -- right

#FVWM 11
Style        "*"        MWMBorder  # FVWMBorder
Style        "*"        MWMButtons
TitleStyle        Centered
ButtonStyle        all        -- UseTitleStyle
ButtonStyle 2 17 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x70@1 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
ButtonStyle 4 4 50x25@1 75x75@0 25x75@0 50x25@1
ButtonStyle 6 4 50x65@1 35x35@1 65x35@1 50x65@0
ButtonStyle 1 - Clear MWMDecorMenu
ButtonStyle 2 - Clear
ButtonStyle 4 - Clear MWMDecorMax
ButtonStyle 6 - Clear MWMDecorShade

#------------------------------------------------------------------------------
# The MenuStyle command allows almost full control over menu look and feel.
# We use the preconfigured 'Win' or 'Fvwm' default. This resets most other
# options and must be set first. We also define a menu called winops for
# the windows operations menus and very long one. The menus which use this
# style are (and must) be defined in the end of the menus.
#------------------------------------------------------------------------------

#WIN 4
#MenuStyle * win
#MenuStyle * font "xft:sans-serif:Medium;-*-times-medium-r-*-*-16-*-*-*-*-*-*-*"
#MenuStyle * Foreground black, Background grey80
#MenuStyle * ActiveFore white, HilightBack Blue4
#FVWM 5
MenuStyle * fvwm
MenuStyle * Font "Shadow=1 0.7:-adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*"

MenuStyle * MenuColorset 23
#MenuStyle * Foreground white, Background grey60
MenuStyle * ActiveFore green, HilightBack #4161A4
MenuStyle * Hilight3DThick

MenuStyle * Greyed grey60  # default is invisible on backgroud grey80
MenuStyle * VerticalItemSpacing 2 4, VerticalTitleSpacing 2 4
MenuStyle * BorderWidth 1, TitleUnderlines1, SeparatorsLong, TrianglesSolid
MenuStyle * ItemFormat "%.2|%.5i%.5l%.5i%2.3>%2|"
MenuStyle * AutomaticHotKeys
MenuStyle * MenuFace VGradient 128 1 #2c80A0 1 #1c5572
ColormapFocus FollowsFocus

CopyMenuStyle * winops

#WIN 1
#MenuStyle winops font "xft:sans-serif:Medium;-*-times-medium-r-*-*-14-*-*-*-*-*-*-*"
#FVWM 2
MenuStyle winops font -*-wenquanyi bitmap song-bold-r-normal-12-120-*-*-*-*-*-*-*,fixed


MenuStyle winops TitleWarpOff

MenuStyle winops VerticalItemSpacing 1 2, VerticalTitleSpacing 1 2
回复 支持 反对

使用道具 举报

发表于 2006-1-8 21:17:48 | 显示全部楼层
千万不要气馁,可以试试在后面加-*-r-*-,看能不能解决你的问题。

也就是字体设置改成MenuStyle * Font "-adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*,-*-r-*-"

也许能管用。可参见http://www.linuxsir.cn/bbs/showthread.php?t=237447
回复 支持 反对

使用道具 举报

发表于 2006-1-9 00:09:59 | 显示全部楼层
是不是编码问题,我local是utf-8的,用下面字体没问题
#Style * Font  "StringEncoding=UTF-8:shadow 1 1 SE:xft:simsun:size=12:incoding=iso10646-1"

菜单就应该是
MenuStyle * fvwm, Font "StringEncoding=UTF-8:shadow 1 1 SE:xft:simsun:size=12:incoding=iso10646-1"

我开始装也是字体搞了好久没搞定。你也试试把,肯定能搞好的。
回复 支持 反对

使用道具 举报

发表于 2006-1-9 09:37:21 | 显示全部楼层
FVWM 2.5.x
DefaultFont "xft:Vera Sans YuanTi Mono:Medium:size=10:encoding=iso10646-1"
回复 支持 反对

使用道具 举报

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

本版积分规则

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