OS는 한컴리눅스4.0이구요( KDE3.2 기반입니다 )
자바 1.4 SDK 설치해서 쓰는데 스윙에서 한글이 깨집니다.
그래서 자바1.5 JRE에 있는 웹스타트도 실행해 봤는데 역시 한글
이 깨지네요.
혹시 도움주실 수 있는분들 답글주시면 감사하겠습니다 :)
OS는 한컴리눅스4.0이구요( KDE3.2 기반입니다 ) 자바 1.4 SDK 설치해서 쓰는데 스윙에서 한글이 깨집니다. 그래서 자바1.5 JRE에 있는 웹스타트도 실행해 봤는데 역시 한글 이 깨지네요. 혹시 도움주실 수 있는분들 답글주시면 감사하겠습니다 :)
심볼링 링크 걸어서 Swing에서 한글 입.출력 사용 하는데는 문제 없습니다. 근데 한글이 조금 뭉개져서 나오죠.
[root@tae lib]# pwd /usr/java/jdk1.5.0_02/jre/lib [root@tae lib]# ln -s fontconfig.RedHat.properties.src fontconfig.properties
2. fontconfig.RedHat.properties.src 참조해서 설정을 바꿔 봤습니다. 사용 폰트는 hanyang폰트 입니다. 이미지 첨부 합니다.
3. 아래 설정 내용을 $JAVA_HOME/jre/lib 및에 fontconfig.properties 파일을 만들어 저장 하시면 됩니다.
# @(#)linux.fontconfig.properties 1.2 03/10/28 # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Version
version=1
# Component Font Mappings
serif.plain.latin-1=-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1 serif.bold.latin-1=-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1 serif.italic.latin-1=-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1 serif.bolditalic.latin-1=-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1
sansserif.plain.latin-1=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1 sansserif.bold.latin-1=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1 sansserif.italic.latin-1=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1 sansserif.bolditalic.latin-1=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
monospaced.plain.latin-1=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1 monospaced.bold.latin-1=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1 monospaced.italic.latin-1=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1 monospaced.bolditalic.latin-1=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1
dialog.plain.latin-1=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1 dialog.bold.latin-1=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1 dialog.italic.latin-1=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1 dialog.bolditalic.latin-1=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
dialoginput.plain.latin-1=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1 dialoginput.bold.latin-1=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1 dialoginput.italic.latin-1=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1 dialoginput.bolditalic.latin-1=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1
### Korean Fonts serif.plain.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0 serif.bold.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0 serif.italic.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0 serif.bolditalic.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
sansserif.plain.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0 sansserif.bold.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0 sansserif.italic.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0 sansserif.bolditalic.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
monospaced.plain.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0 monospaced.bold.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0 monospaced.italic.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0 monospaced.bolditalic.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
dialog.plain.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0 dialog.bold.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0 dialog.italic.korean=-*-gulim gulim-medium-r-normal--*-%d---m-*-ksc5601.1987-0 dialog.bolditalic.korean=-*-gulim gulim-medium-r-normal--*-%d---m-*-ksc5601.1987-0
dialoginput.plain.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0 dialoginput.bold.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0 dialoginput.italic.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0 dialoginput.bolditalic.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
# Search Sequences sequence.allfonts.EUC-KR=latin-1,korean # Exclusion Ranges
# Font File Names filename.-*-gulim_gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0=/usr/share/fonts/hanyang/Gulim.ttf
# AWT X11 font paths awtfontpath.korean=/usr/share/fonts/hanyang
http://haansoftlinux.com 이거 참고하세여 이세 한소프트용인데 글꼴경록만 확인해보세여
즐린
감사합니다 :)
♣♣♣♣♣♣ 폼나게 살자. 아님 말고~ ♣♣♣♣♣
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
Re: 자바 스윙 한글 문제
그건 글꼴 문제입니다.
fedora에 최적화되어서 그런겁니다
심볼링 링크 걸어서 Swing에서 한글 입.출력 사용 하는데는 문제 없습니다.
근데 한글이 조금 뭉개져서 나오죠.
[root@tae lib]# pwd
/usr/java/jdk1.5.0_02/jre/lib
[root@tae lib]# ln -s fontconfig.RedHat.properties.src fontconfig.properties
2. fontconfig.RedHat.properties.src 참조해서 설정을 바꿔 봤습니다.
사용 폰트는 hanyang폰트 입니다. 이미지 첨부 합니다.
3. 아래 설정 내용을 $JAVA_HOME/jre/lib 및에 fontconfig.properties 파일을 만들어
저장 하시면 됩니다.
# @(#)linux.fontconfig.properties 1.2 03/10/28
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
# Version
version=1
# Component Font Mappings
serif.plain.latin-1=-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1
serif.bold.latin-1=-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1
serif.italic.latin-1=-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1
serif.bolditalic.latin-1=-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1
sansserif.plain.latin-1=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.bold.latin-1=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.italic.latin-1=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.bolditalic.latin-1=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
monospaced.plain.latin-1=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.bold.latin-1=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.italic.latin-1=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.bolditalic.latin-1=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1
dialog.plain.latin-1=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.bold.latin-1=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.italic.latin-1=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.bolditalic.latin-1=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
dialoginput.plain.latin-1=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.bold.latin-1=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.italic.latin-1=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.bolditalic.latin-1=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1
### Korean Fonts
serif.plain.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
serif.bold.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
serif.italic.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
serif.bolditalic.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
sansserif.plain.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
sansserif.bold.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
sansserif.italic.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
sansserif.bolditalic.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
monospaced.plain.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
monospaced.bold.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
monospaced.italic.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
monospaced.bolditalic.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
dialog.plain.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
dialog.bold.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
dialog.italic.korean=-*-gulim gulim-medium-r-normal--*-%d---m-*-ksc5601.1987-0
dialog.bolditalic.korean=-*-gulim gulim-medium-r-normal--*-%d---m-*-ksc5601.1987-0
dialoginput.plain.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
dialoginput.bold.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
dialoginput.italic.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
dialoginput.bolditalic.korean=-*-gulim gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0
# Search Sequences
sequence.allfonts.EUC-KR=latin-1,korean
# Exclusion Ranges
# Font File Names
filename.-*-gulim_gulim-medium-r-normal--*-%d-*-*-m-*-ksc5601.1987-0=/usr/share/fonts/hanyang/Gulim.ttf
# AWT X11 font paths
awtfontpath.korean=/usr/share/fonts/hanyang
http://haansoftlinux.com
이거 참고하세여
이세 한소프트용인데
글꼴경록만 확인해보세여
즐린
감사합니다 :)
감사합니다 :)
♣♣♣♣♣♣ 폼나게 살자. 아님 말고~ ♣♣♣♣♣
댓글 달기