Typeface 클래스
정의
FontFamily, FontWeight, FontStyle 및 FontStretch의 조합을 나타냅니다.Represents a combination of FontFamily, FontWeight, FontStyle, and 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
설명
서체에 동일한 글꼴 패밀리 내에 글꼴의 단일 변형입니다.A typeface is a single variation of a font within the same font family. 서체의 예로 "Times New Roman" 글꼴 패밀리의 기울임꼴 버전이 있습니다.An example of a typeface is an italic version of the "Times New Roman" font family. 서체 두께, 스타일 및 글꼴의 확장 기능을 정의합니다.Typeface defines the weight, style and stretching features of a font.
생성자
Typeface(FontFamily, FontStyle, FontWeight, FontStretch) |
지정된 글꼴 패밀리 이름, Typeface, Style 및 Weight 값에 대한 Stretch 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the Typeface class for the specified font family name, Style, Weight, and Stretch values. |
Typeface(FontFamily, FontStyle, FontWeight, FontStretch, FontFamily) |
지정된 글꼴 패밀리 이름, Typeface, Style 및 Weight 값에 대한 Stretch 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the Typeface class for the specified font family name, Style, Weight, and Stretch values. 대체 글꼴 패밀리도 지정됩니다.In addition, a fallback font family is specified. |
Typeface(String) |
지정된 글꼴 패밀리 서체 이름에 대한 Typeface 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the Typeface class for the specified font family typeface name. |
속성
CapsHeight |
서체에 대한 기준선에서 영어 대문자 맨 위까지의 거리를 가져옵니다.Gets the distance from the baseline to the top of an English capital letter for the typeface. |
FaceNames |
Typeface의 문화권별 이름 컬렉션을 가져옵니다.Gets a collection of culture-specific names for the Typeface. |
FontFamily |
서체가 생성된 글꼴 패밀리의 이름을 가져옵니다.Gets the name of the font family from which the typeface was constructed. |
IsBoldSimulated |
Typeface로 표시되는 문자 모양의 굵게 두께를 시뮬레이션할지 여부를 확인합니다.Determines whether to simulate a bold weight for the glyphs represented by the Typeface. |
IsObliqueSimulated |
Typeface로 표시되는 문자 모양의 기울임꼴 스타일을 시뮬레이션할지 여부를 확인합니다.Determines whether to simulate an italic style for the glyphs represented by the Typeface. |
Stretch |
Typeface에 대한 늘이기 값을 가져옵니다.Gets the stretch value for the Typeface. 늘이기 값은 서체를 표시할 때 서체가 확장되는지 아니면 축소되는지를 결정합니다.The stretch value determines whether a typeface is expanded or condensed when it is displayed. |
StrikethroughPosition |
서체의 기준선부터 취소선까지의 거리를 나타내는 값을 가져옵니다.Gets a value that indicates the distance from the baseline to the strikethrough for the typeface. |
StrikethroughThickness |
글꼴 em 크기를 기준으로 취소선의 두께를 나타내는 값을 가져옵니다.Gets a value that indicates the thickness of the strikethrough relative to the font em size. |
Style | |
UnderlinePosition |
서체에 대한 기준선에서 밑줄까지의 거리를 나타내는 값을 가져옵니다.Gets a value that indicates the distance of the underline from the baseline for the typeface. |
UnderlineThickness |
밑줄의 두께를 나타내는 값을 가져옵니다. 이 값은 서체의 글꼴 em 크기를 기준으로 합니다.Gets a value that indicates the thickness of the underline relative to the font em size for the typeface. |
Weight |
서체의 상대적 두께를 가져옵니다.Gets the relative weight of the typeface. |
XHeight |
서체에 대한 기준선에서 영어 소문자 맨 위까지의 거리를 가져옵니다.Gets the distance from the baseline to the top of an English lowercase letter for a typeface. 어센더는 거리에서 제외됩니다.The distance excludes ascenders. |
메서드
Equals(Object) |
현재 서체와 지정된 서체가 같은 FontFamily, Style, Weight, Stretch 및 대체 글꼴 값을 가지고 있는지 여부를 나타내는 값을 가져옵니다.Gets a value that indicates whether the current typeface and the specified typeface have the same FontFamily, Style, Weight, Stretch, and fallback font values. |
GetHashCode() |
Typeface에 대한 해시 함수 역할을 합니다.Serves as a hash function for Typeface. 해시 알고리즘 및 해시 테이블과 같은 데이터 구조에서 사용하기에 적합합니다.It is suitable for use in hashing algorithms and data structures such as a hash table. |
GetType() |
현재 인스턴스의 Type을 가져옵니다.Gets the Type of the current instance. (다음에서 상속됨 Object) |
MemberwiseClone() |
현재 Object의 단순 복사본을 만듭니다.Creates a shallow copy of the current Object. (다음에서 상속됨 Object) |
ToString() |
현재 개체를 나타내는 문자열을 반환합니다.Returns a string that represents the current object. (다음에서 상속됨 Object) |
TryGetGlyphTypeface(GlyphTypeface) |
GlyphTypeface에 해당하는 Typeface를 검색합니다.Retrieves the GlyphTypeface that corresponds to the Typeface. |