Typeface 클래스

정의

FontFamily, FontWeight, FontStyleFontStretch의 조합을 나타냅니다.

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" 글꼴 패밀리의 기울임꼴 버전이 있습니다. 서체 두께, 스타일 및 글꼴의 확장 기능을 정의합니다.

생성자

Typeface(FontFamily, FontStyle, FontWeight, FontStretch)

지정된 글꼴 패밀리 이름, Typeface, StyleWeight 값에 대한 Stretch 클래스의 새 인스턴스를 초기화합니다.

Typeface(FontFamily, FontStyle, FontWeight, FontStretch, FontFamily)

지정된 글꼴 패밀리 이름, Typeface, StyleWeight 값에 대한 Stretch 클래스의 새 인스턴스를 초기화합니다. 대체 글꼴 패밀리도 지정됩니다.

Typeface(String)

지정된 글꼴 패밀리 서체 이름에 대한 Typeface 클래스의 새 인스턴스를 초기화합니다.

속성

CapsHeight

서체에 대한 기준선에서 영어 대문자 맨 위까지의 거리를 가져옵니다.

FaceNames

Typeface의 문화권별 이름 컬렉션을 가져옵니다.

FontFamily

서체가 생성된 글꼴 패밀리의 이름을 가져옵니다.

IsBoldSimulated

Typeface로 표시되는 문자 모양의 굵게 두께를 시뮬레이션할지 여부를 확인합니다.

IsObliqueSimulated

Typeface로 표시되는 문자 모양의 기울임꼴 스타일을 시뮬레이션할지 여부를 확인합니다.

Stretch

Typeface에 대한 늘이기 값을 가져옵니다. 늘이기 값은 서체를 표시할 때 서체가 확장되는지 아니면 축소되는지를 결정합니다.

StrikethroughPosition

서체의 기준선부터 취소선까지의 거리를 나타내는 값을 가져옵니다.

StrikethroughThickness

글꼴 em 크기를 기준으로 취소선의 두께를 나타내는 값을 가져옵니다.

Style

Typeface의 스타일을 가져옵니다.

UnderlinePosition

서체에 대한 기준선에서 밑줄까지의 거리를 나타내는 값을 가져옵니다.

UnderlineThickness

밑줄의 두께를 나타내는 값을 가져옵니다. 이 값은 서체의 글꼴 em 크기를 기준으로 합니다.

Weight

서체의 상대적 두께를 가져옵니다.

XHeight

서체에 대한 기준선에서 영어 소문자 맨 위까지의 거리를 가져옵니다. 어센더는 거리에서 제외됩니다.

메서드

Equals(Object)

현재 서체와 지정된 서체가 같은 FontFamily, Style, Weight, Stretch 및 대체 글꼴 값을 가지고 있는지 여부를 나타내는 값을 가져옵니다.

GetHashCode()

Typeface에 대한 해시 함수 역할을 합니다. 해시 알고리즘 및 해시 테이블과 같은 데이터 구조에서 사용하기에 적합합니다.

GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)
TryGetGlyphTypeface(GlyphTypeface)

GlyphTypeface에 해당하는 Typeface를 검색합니다.

적용 대상