웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
XP계열의 방문자 컴에서 ClearType 효과 사용여부 확인
2004.04.04 23:39
XP계열의 방문자 컴에서 ClearType 글꼴 다듬기 효과 사용 시 영문 폰트(예: tahoma, verdana..)에
마이크로소프트사의 비쥬얼 필터(예: blur, dropshadow, gray, alpha..)가 사용 되면 폰트가 굵고 매우 추하게 보이게 됩니다.
정상적으로 보이는 필터링 된 폰트
ClearType 사용 시 보이는 필터링 된 폰트
이런 현상을 방지하기 위하여 window.screen 오브젝트의 fontSmoothingEnabled 속성을
이용하여 방문자의 글꼴 다듬기 효과 사용여부를 알 수 있습니다. (값: Boolean, 속성: read-only)
== fontSmoothingEnabled 응용의 예 ===================
<script type="text/javascript">
<!--
function getstylesheet() {
if (iscleartype() == true) {
document.styleSheets[0].addImport('필터가_사용되지_않는.css');
}
else {
document.styleSheets[0].addImport('필터가_사용된.css');
}
}
function iscleartype() {
if (window.screen.fontSmoothingEnabled == true) {
return true;
}
else { return false; }
}
document.onload = getstylesheet();
//-->
</script>
== fontSmoothingEnabled 응용의 예 끝 ================
제 홈페이지에 오시면 예제를 보실 수 있습니다.
글꼴 다듬기를 효과를 끄고 올 때와 키고 올 때의 폰트 효과가 다르게 보입니다.
[참고 자료]
fontSmoothingEnabled Property
- http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/fontsmoothingenabled.asp
ClearType information
- http://www.microsoft.com/typography/ClearTypeInfo.mspx
addImport Method of styleSheet Object
- http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/addimport.asp
Visual Filters and Transitions Reference
- http://msdn.microsoft.com/library/default.asp?url=/workshop/author/filter/reference/reference.asp
마이크로소프트사의 비쥬얼 필터(예: blur, dropshadow, gray, alpha..)가 사용 되면 폰트가 굵고 매우 추하게 보이게 됩니다.
정상적으로 보이는 필터링 된 폰트
ClearType 사용 시 보이는 필터링 된 폰트
이런 현상을 방지하기 위하여 window.screen 오브젝트의 fontSmoothingEnabled 속성을
이용하여 방문자의 글꼴 다듬기 효과 사용여부를 알 수 있습니다. (값: Boolean, 속성: read-only)
== fontSmoothingEnabled 응용의 예 ===================
<script type="text/javascript">
<!--
function getstylesheet() {
if (iscleartype() == true) {
document.styleSheets[0].addImport('필터가_사용되지_않는.css');
}
else {
document.styleSheets[0].addImport('필터가_사용된.css');
}
}
function iscleartype() {
if (window.screen.fontSmoothingEnabled == true) {
return true;
}
else { return false; }
}
document.onload = getstylesheet();
//-->
</script>
== fontSmoothingEnabled 응용의 예 끝 ================
제 홈페이지에 오시면 예제를 보실 수 있습니다.
글꼴 다듬기를 효과를 끄고 올 때와 키고 올 때의 폰트 효과가 다르게 보입니다.
[참고 자료]
fontSmoothingEnabled Property
- http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/fontsmoothingenabled.asp
ClearType information
- http://www.microsoft.com/typography/ClearTypeInfo.mspx
addImport Method of styleSheet Object
- http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/addimport.asp
Visual Filters and Transitions Reference
- http://msdn.microsoft.com/library/default.asp?url=/workshop/author/filter/reference/reference.asp
댓글 4
-
버찌
2004.04.05 13:27
-
YeUPy
2004.04.06 13:23
헉.. -_-; 언제부터 생겼죠? 그거 때문에 XP로 바꿨건만;;
ClearType을 쓰면 솔직히 폰트가 정말 이뻐지지요. (굳이 필터를 쓰지 않아도 될 만큼;)
저도 이거 때문에 오랜 시간동안 참 골치 아팠답니다; ㅎㅎ -
김동현
2004.04.08 15:56
Cleartype은 구형 VGA포트 쓰는 LCD에서만 깔끔하게 보인답니다. -
[Z]∑Ztxy
2004.04.11 13:55
아 그래서 그랬구나..=ㅂ=;;
RuVine님이 만드신 게시판.. 써보니까... 그렇게 나오더군요..;;
추천....
제목 | 글쓴이 | 날짜 |
---|---|---|
{주목} CodeRed 아파치로그파일 지우기 [2] | skyel | 2001.08.22 |
MySQL 관리 첫걸음 [5] | 앤디(andy) | 2001.04.18 |
APC(Alternativ PHP Cache) 사용법( php 캐쉬 플러그인 ) [1] | 김도한 | 2002.01.29 |
아파치 웹서버 속도 빠르게 하기 위한 최적화 팁 [14] | 차카게살자 | 2002.01.27 |
[APM자동설치] APM_Setup 3 ( Apache, PHP4, MySQL, Perl, Tomcat ) [6] | 근땅e | 2002.02.06 |
커널 버전 알아내기 [1] | 오픈소스 | 2002.02.21 |
vi 편집기 사용시 비프음 제어 | 오픈소스 | 2002.02.21 |
에러페이지를 서버관리자가 지정한 페이지로. [1] | teenteenv | 2002.02.21 |
[리눅스]proftp 에서 사용자가 상위 폴더로 이동을 못하게... [3] | teenteenv | 2002.02.22 |
[강좌1탄]와우리눅스7.0을 서버로 두고 인터넷공유 [1] | RealComty | 2002.02.23 |
[강좌2탄]와우리눅스7.0을 서버로 두고 인터넷공유 [1] | RealComty | 2002.02.23 |
[강좌3탄]와우리눅스7.0을 서버로 두고 인터넷공유 [4] | RealComty | 2002.02.23 |
[re] [강좌4탄]와우리눅스7.0을 서버로 두고 인터넷공유 [2] | 주영명 | 2002.02.27 |
[강좌4탄]와우리눅스7.0을 서버로 두고 인터넷공유 [2] | RealComty | 2002.02.23 |
[강좌끝이다~!]와우리눅스7.0을 서버로 두고 인터넷공유 [8] | RealComty | 2002.02.23 |
메모리 절약하기 - 리눅스 | 오픈소스 | 2002.02.24 |
wuftp에서 proftp로...그리고, proftp 설정하기 [1] | 쇠물택 | 2002.02.24 |
[sapzils서버세팅] A+P+M 소스 설치 [4] | 쇠물택 | 2002.02.24 |
텔넷 사용자 관리... | 쇠물택 | 2002.02.24 |
리눅스 시스템에서 시간 맞추기 [2] | 쇠물택 | 2002.02.24 |
윈도우2000에서도 서비스팩을 받으니 Clear Type이란게 생겼네요, 그것때문에 골치아팠어요 ^^