bramstein/trmix
소개
브라우저의 텍스트 렌더링 엔진에 따라 CSS를 적용합니다.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalType Rendering Mix
Type Rendering Mix detects your browser’s text rasterizer and antialiasing method by parsing the user agent string. It will then add two classes to your HTML element. One class will describe the text rasterizer and the other the antialiasing method it is using:
<html class="tr-coretext tr-aa-subpixel">
The text rasterizer class name can take the following values:
tr-coretextfor OS X and iOS;tr-gdifor Windows XP and Windows Vista SP1;tr-directwritefor Windows Vista SP2 and above;tr-freetypefor Android and Linux.
The antialiasing method class name will be one of the following:
tr-aa-nonewhen no antialiasing is applied;tr-aa-grayscalewhen grayscale antialiasing is applied;tr-aa-subpixelwhen subpixel antialiasing is applied.
If Type Rendering Mix can’t determine the antialiasing method with absolute certainty it will attempt to guess. In this case unknown will be added to the class name:
tr-aa-unknown-nonewhen no antialiasing is guessed;tr-aa-unknown-grayscalewhen grayscale antialiasing is guessed;tr-aa-unknown-subpixelwhen subpixel antialiasing is guessed.
When it is impossible to determine or guess the text rasterizer and antialiasing method tr-unknown and tr-aa-unknown will be used to indicate an unknown text rasterizer and antialiasing method.
Usage
Download the latest version at http://www.typerendering.com and include it in your page:
<script src="trmix.js"></script>
If you are using Bower you can install Type Rendering Mix using:
bower install trmix
Copyright and License
This library is licensed under the two-clause BSD license. Copyright 2013-2014 Tim Brown, Bram Stein. All rights reserved.
관련 프로젝트 살펴보기
불러오는 중…