QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 982|回复: 3

看看我的font.properties.zh(汉化java)

[复制链接]
发表于 2003-9-18 12:04:12 | 显示全部楼层 |阅读模式
@(#)font.properties.zh        1.0 00/06/20
#
# Copyright 2000 by Sun Microsystems, Inc.,
# 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
# All rights reserved.
#
# This software is the confidential and proprietary information
# of Sun Microsystems, Inc. ("Confidential Information").  You
# shall not disclose such Confidential Information and shall use
# it only in accordance with the terms of the license agreement
# you entered into with Sun.
#

#
# AWT Font default Properties for Simplified Chinese TurboLinux 6.0 and higher
#

# Serif font definition
#
serif.0=-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1
serif.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

serif.italic.0=-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1
serif.italic.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

serif.bold.0=-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1
serif.bold.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

serif.bolditalic.0=-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1
serif.bolditalic.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

# SansSerif font definition
#
sansserif.0=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

sansserif.italic.0=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.italic.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

sansserif.bold.0=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.bold.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

sansserif.bolditalic.0=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.bolditalic.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

# Monospaced font definition
#
monospaced.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

monospaced.italic.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.italic.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

monospaced.bold.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.bold.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

monospaced.bolditalic.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.bolditalic.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

# Dialog font definition
#
dialog.0=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

dialog.italic.0=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.italic.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

dialog.bold.0=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.bold.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

dialog.bolditalic.0=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.bolditalic.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

# DialogInput font definition
#
dialoginput.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

dialoginput.italic.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.italic.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

dialoginput.bold.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.bold.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

dialoginput.bolditalic.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.bolditalic.1=-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0


# Default font definition
#
default.char=274f

# name aliases
#
# alias.timesroman=serif
# alias.helvetica=sansserif
# alias.courier=monospaced

# for backward compatibility
#
#zapfdingbats.0=-monotype-monotype sorts-regular-r---*-%d-*-*-p-*-adobe-dingbats

# Static FontCharset info.
#
# This information is used by the font which is not indexed by Unicode.
# Such fonts can use their own subclass of FontCharset.
#
# This information can be overriden by describing more specific style.
# For example
#
#  fontcharset.serif.plain.3=SpecialSymbols
#  means serif.plain.3 font's index can be retrieved with the convert() method
#  of instance of SpecialSymbols and what kind of characters serif.plain.3 font
#  has can be judged with the isCovered() method of instance of SpecialSymbols.
#
fontcharset.serif.0=sun.io.CharToByteISO8859_1
fontcharset.serif.1=sun.awt.motif.CharToByteX11GBK

fontcharset.sansserif.0=sun.io.CharToByteISO8859_1
fontcharset.sansserif.1=sun.awt.motif.CharToByteX11GBK

fontcharset.monospaced.0=sun.io.CharToByteISO8859_1
fontcharset.monospaced.1=sun.awt.motif.CharToByteX11GBK

fontcharset.dialog.0=sun.io.CharToByteISO8859_1
fontcharset.dialog.1=sun.awt.motif.CharToByteX11GBK

fontcharset.dialoginput.0=sun.io.CharToByteISO8859_1
fontcharset.dialoginput.1=sun.awt.motif.CharToByteX11GBK

# exclusion info.
#
# This information describe exclusion ranges for each fonts.
#
# 'exclusion.serif.plain.0' overrides 'exclusion.serif.0', and
# 'exclusion.serif.0' overrides exclusion.0, and so on.
#

# XFontSet string
# X11 only properties
#
fontset.serif.plain=\
-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

fontset.serif.italic=\
-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

fontset.serif.bold=\
-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

fontset.serif.bolditalic=\
-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

# SansSerif font definition
#

fontset.sansserif.plain=\
-b&h-lucida-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

fontset.sansserif.italic=\
-b&h-lucida-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

fontset.sansserif.bold=\
-b&h-lucida-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

fontset.sansserif.bolditalic=\
-b&h-lucida-bold-i-normal-snas-*-%d-*-*-p-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

# Monospaced font definition
#
fontset.monospaced.plain=\
-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

fontset.monospaced.italic=\
-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

fontset.monospaced.bold=\
-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-,1\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

fontset.monospaced.bolditalic=\
-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

# Dialog font definition
#
fontset.dialog.italic=\
-b&h-lucida-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

fontset.dialog.bold=\
-b&h-lucida-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

fontset.dialog.bolditalic=\
-b&h-lucida-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

fontset.dialog.plain=\
-b&h-lucida-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

# DialogInput font definition
#
fontset.dialoginput.italic=\
-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

fontset.dialoginput.bold=\
-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

fontset.dialoginput.bolditalic=\
-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

fontset.dialoginput.plain=\
-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0

#
fontset.default=\
-b&h-lucida-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-freetype-songti-medium-r-normal--*-%d-*-*-c-*-gbk-0



lucida是什么字体?我的/usr/X11R6/lib/X11/fonts/TrueType下有simsun.ttf;tahoma.ttf;tahomadb.ttf.没有lucida,怎么办?
 楼主| 发表于 2003-9-21 10:41:45 | 显示全部楼层
我把以上语句中的中文字体都从songti改为simsun,结果java本身的操作面板可以显示中文了,但是java窗口中的中文还是乱码。
回复

使用道具 举报

发表于 2003-9-21 12:13:38 | 显示全部楼层
需要添加一个
appendedfontpath=你的中文字体目录

注意这个appendedfontpath可能不支持符号连接的目录
回复

使用道具 举报

 楼主| 发表于 2003-9-21 16:59:20 | 显示全部楼层
我先加了appendedfontpath= .....................语句,还是不行。
又再把gbk全部替换成gb2312.1980 ,仍然不行。
最后把tlc全部替换成misc才解决问题。实际上跟PenPen的font.properties.zh一样了。
另外每次运行时都跳出版本号和vendor信息,不知能不能去掉。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-24 22:46 , Processed in 0.061551 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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