Typeface 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
, FontFamilyFontWeight및 FontStyle.의 FontStretch조합을 나타냅니다.
public ref class Typeface
public class Typeface
type Typeface = class
Public Class Typeface
- 상속
-
Typeface
예제
// Return the typeface collection for the fonts in the selected URI location.
System.Collections.Generic.ICollection<Typeface> typefaces = Fonts.GetTypefaces("file:///C:\\Windows\\Fonts\\#Georgia");
// Enumerate the typefaces in the collection.
foreach (Typeface face in typefaces)
{
// Separate the URI directory source info from the font family name.
string[] familyName = face.FontFamily.Source.Split('#');
// Add the font family name, weight, and style values to the typeface combo box.
comboBoxTypeface.Items.Add(familyName[familyName.Length - 1] + " " + face.Weight + " " + face.Style);
}
comboBoxTypeface.SelectedIndex = 0;
' Return the typeface collection for the fonts in the selected URI location.
Dim typefaces As System.Collections.Generic.ICollection(Of Typeface) = Fonts.GetTypefaces("file:///C:\Windows\Fonts\#Georgia")
' Enumerate the typefaces in the collection.
For Each face As Typeface In typefaces
' Separate the URI directory source info from the font family name.
Dim familyName() As String = face.FontFamily.Source.Split("#"c)
' Add the font family name, weight, and style values to the typeface combo box.
comboBoxTypeface.Items.Add(familyName(familyName.Length - 1) & " " & face.Weight.ToString & " " & face.Style.ToString)
Next face
comboBoxTypeface.SelectedIndex = 0
설명
서체는 동일한 글꼴 패밀리 내에 있는 글꼴의 단일 변형입니다. 서체의 예로는 "Times New Roman" 글꼴 패밀리의 기울기 버전이 있습니다. 서체는 글꼴의 두께, 스타일 및 스트레칭 기능을 정의합니다.
생성자
| Name | Description |
|---|---|
| Typeface(FontFamily, FontStyle, FontWeight, FontStretch, FontFamily) |
지정된 글꼴 패밀리 이름, TypefaceStyle및 Weight 값에 대한 클래스의 Stretch 새 인스턴스를 초기화합니다. 또한 대체 글꼴 패밀리가 지정됩니다. |
| Typeface(FontFamily, FontStyle, FontWeight, FontStretch) |
지정된 글꼴 패밀리 이름, TypefaceStyle및 Weight 값에 대한 클래스의 Stretch 새 인스턴스를 초기화합니다. |
| Typeface(String) |
지정된 글꼴 패밀리 서체 이름에 대한 클래스의 Typeface 새 인스턴스를 초기화합니다. |
속성
| Name | Description |
|---|---|
| CapsHeight |
기준선에서 서체의 영어 대문자 맨 위까지의 거리를 가져옵니다. |
| FaceNames |
에 대한 Typeface문화권별 이름의 컬렉션을 가져옵니다. |
| FontFamily |
서체가 생성된 글꼴 패밀리의 이름을 가져옵니다. |
| IsBoldSimulated |
로 표시되는 Typeface문자 모양에 대해 굵은 두께를 시뮬레이트할지 여부를 결정합니다. |
| IsObliqueSimulated |
로 표시되는 Typeface문자 모양에 대한 기울기 스타일을 시뮬레이트할지 여부를 결정합니다. |
| Stretch |
에 대한 Typeface스트레치 값을 가져옵니다. 스트레치 값은 서체가 표시될 때 확장 또는 압축되는지 여부를 결정합니다. |
| StrikethroughPosition |
기준선에서 서체의 취소선까지의 거리를 나타내는 값을 가져옵니다. |
| StrikethroughThickness |
글꼴 em 크기를 기준으로 취소선의 두께를 나타내는 값을 가져옵니다. |
| Style |
의 스타일을 가져옵니다 Typeface. |
| UnderlinePosition |
서체의 기준선에서 밑줄의 거리를 나타내는 값을 가져옵니다. |
| UnderlineThickness |
서체의 글꼴 em 크기를 기준으로 밑줄의 두께를 나타내는 값을 가져옵니다. |
| Weight |
서체의 상대 가중치를 가져옵니다. |
| XHeight |
서체에 대한 영어 소문자 맨 위까지의 기준선에서의 거리를 가져옵니다. 거리는 오름차순을 제외합니다. |
메서드
| Name | Description |
|---|---|
| Equals(Object) |
현재 서체와 지정된 서체의 글꼴 값이 같은FontFamilyStyleWeightStretch지, 대체 글꼴 값이 같은지 여부를 나타내는 값을 가져옵니다. |
| GetHashCode() |
에 대한 Typeface해시 함수로 사용됩니다. 해시 알고리즘 및 해시 테이블과 같은 데이터 구조에 사용하기에 적합합니다. |
| GetType() |
현재 인스턴스의 Type 가져옵니다. (다음에서 상속됨 Object) |
| MemberwiseClone() |
현재 Object단순 복사본을 만듭니다. (다음에서 상속됨 Object) |
| ToString() |
현재 개체를 나타내는 문자열을 반환합니다. (다음에서 상속됨 Object) |
| TryGetGlyphTypeface(GlyphTypeface) |
에 GlyphTypeface 해당하는 값을 검색합니다 Typeface. |