Class Font

Class Font

이름 공간 : Aspose.Imaging 모임: Aspose.Imaging.dll (25.4.0)

글꼴 얼굴, 크기 및 스타일 속성을 포함하여 텍스트에 대한 특정 형식을 정의합니다.이 클래스는 유산되지 않습니다.

[JsonObject(MemberSerialization.OptIn)]
public sealed class Font

Inheritance

object Font

상속 회원들

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

Font(폰트, 폰트 스타일)

새로운 Aspose.Imaging.Font을 시작하여 지정된 기존 Aspose.Imaging.Font 및 Aspose.Imaging.FontStyle 목록을 사용합니다.

public Font(Font prototype, FontStyle newStyle)

Parameters

prototype Font

기존의 Aspose.Imaging.Font은 새로운 Aspose.Imaging.Font을 만드는 방법입니다.

newStyle FontStyle

Aspose.Imaging.FontStyle은 새로운 Aspose.Imaging.Font에 적용할 수 있습니다 Aspose.Imaging.FontStyle의 여러 값은 OR 운영자와 결합 될 수 있습니다.

Exceptions

ArgumentNullException

prototype’ is null.

Font(플로트, 플로트)

특정 크기를 사용하여 새로운 Aspose.Imaging.Font을 시작합니다. 캐릭터 세트는 Aspose.Imaging.CharacterSet.Default, 그래픽 단위는 Aspose.Imaging.GraphicsUnit.Point, 글꼴 스타일은 Aspose.Imaging.FontStyle.Regular로 설정됩니다.

public Font(string fontName, float emSize)

Parameters

fontName string

Aspose.Imaging.Font 이름의 라인 표현.

emSize float

새로운 글꼴의 em 크기, 포인트에서.

Exceptions

ArgumentOutOfRangeException

emSize’ is less than or equal to 0, evaluates to infinity or is not a valid number.

ArgumentNullException

fontName’ is null.

Font(링크, 플로이트, FontStyle)

특정 크기와 스타일을 사용하여 새로운 Aspose.Imaging.Font을 시작합니다. 캐릭터 세트는 Aspose.Imaging.CharacterSet.Default, 그래픽 단위에서 Aspose.Imaging.GraphicsUnit.Point로 설정됩니다.

public Font(string fontName, float emSize, FontStyle style)

Parameters

fontName string

Aspose.Imaging.Font 이름의 라인 표현.

emSize float

새로운 글꼴의 em 크기, 포인트에서.

style FontStyle

새로운 글꼴의 Aspose.Imaging.FontStyle.

Exceptions

ArgumentOutOfRangeException

emSize’ is less than or equal to 0, evaluates to infinity or is not a valid number.

ArgumentNullException

fontName’ is null.

Font(스트리트, 플로이트, 그래픽)

특정 크기와 단위를 사용하여 새로운 Aspose.Imaging.Font을 시작합니다. 캐릭터 세트는 Aspose.Imaging.CharacterSet.Default로 설정되며 스타일은 Aspose.Imaging.FontStyle.Regular로 설정됩니다.

public Font(string fontName, float emSize, GraphicsUnit unit)

Parameters

fontName string

Aspose.Imaging.Font 이름의 라인 표현.

emSize float

새 글꼴의 em 크기는 unit’ 파라미터에 의해 지정된 단위에 있습니다.

unit GraphicsUnit

The Aspose.Imaging.Graphics새 글꼴의 단위.

Exceptions

ArgumentOutOfRangeException

emSize’ is less than or equal to 0, evaluates to infinity or is not a valid number.

ArgumentNullException

fontName’ is null.

Font(링, 플로이트, FontStyle, GraphicsUnit, CharacterSet)

새로운 Aspose.Imaging.Font를 지정된 크기, 스타일, 단위 및 캐릭터 세트를 사용하여 시작합니다.

public Font(string fontName, float emSize, FontStyle style, GraphicsUnit unit, CharacterSet characterSet)

Parameters

fontName string

Aspose.Imaging.Font 이름의 라인 표현.

emSize float

새 글꼴의 em 크기는 unit’ 파라미터에 의해 지정된 단위에 있습니다.

style FontStyle

새로운 글꼴의 Aspose.Imaging.FontStyle.

unit GraphicsUnit

The Aspose.Imaging.Graphics새 글꼴의 단위.

characterSet CharacterSet

이 글꼴을 위해 사용하도록 설정된 캐릭터.

Exceptions

ArgumentOutOfRangeException

emSize’ is less than or equal to 0, evaluates to infinity or is not a valid number.

ArgumentNullException

fontName’ is null.

Font(스트리트, 플로이트, FontStyle, GraphicsUnit)

새로운 Aspose.Imaging.Font을 지정된 크기, 스타일 및 단위를 사용하여 시작합니다.

public Font(string fontName, float emSize, FontStyle style, GraphicsUnit unit)

Parameters

fontName string

Aspose.Imaging.Font 이름의 라인 표현.

emSize float

새 글꼴의 em 크기는 unit’ 파라미터에 의해 지정된 단위에 있습니다.

style FontStyle

새로운 글꼴의 Aspose.Imaging.FontStyle.

unit GraphicsUnit

The Aspose.Imaging.Graphics새 글꼴의 단위.

Exceptions

ArgumentOutOfRangeException

emSize’ is less than or equal to 0, evaluates to infinity or is not a valid number.

ArgumentNullException

fontName’ is null.

Properties

Bold

이 Aspose.Imaging.Font이 용감한지 여부를 나타내는 값을 얻습니다.

public bool Bold { get; }

부동산 가치

bool

CharacterSet

이 Aspose.Imaging.Font이 사용하는 캐릭터 세트를 지정하는 바이트 값을 얻습니다.

public CharacterSet CharacterSet { get; }

부동산 가치

CharacterSet

Italic

이 Aspose.Imaging.Font이 이탈리아어인지 여부를 나타내는 값을 얻습니다.

public bool Italic { get; }

부동산 가치

bool

Name

이 Aspose.Imaging.Font의 얼굴 이름을 얻으십시오.

public string Name { get; }

부동산 가치

string

Size

이 Aspose.Imaging.Font의 em 크기를 Aspose.Imaging.Font에 의해 지정된 단위에서 측정합니다.

public float Size { get; }

부동산 가치

float

Strikeout

이 Aspose.Imaging.Font이 글꼴을 통해 수평선을 지정하는지 여부를 나타내는 값을 얻습니다.

public bool Strikeout { get; }

부동산 가치

bool

Style

이 Aspose.Imaging.Font에 대한 스타일 정보를 얻습니다.

public FontStyle Style { get; }

부동산 가치

FontStyle

Underline

이 Aspose.Imaging.Font이 강조되는지 여부를 나타내는 값을 얻습니다.

public bool Underline { get; }

부동산 가치

bool

Unit

이 Aspose.Imaging.Font에 대한 측정 단위를 얻습니다.

public GraphicsUnit Unit { get; }

부동산 가치

GraphicsUnit

Methods

DeepClone()

이 Aspose.Imaging.Font의 정확한 깊은 복사본을 만듭니다.

public Font DeepClone()

Returns

Font

Aspose.Imaging.Font 이 방법을 만듭니다.

Equals(객체)

지정된 개체가 Aspose.Imaging.Font인지 여부를 나타내고 이 Aspose.Imaging.Font과 동일한 속성 값을 가지고 있는지 여부를 나타냅니다.

public override bool Equals(object obj)

Parameters

obj object

시험할 수 있는 대상이다.

Returns

bool

사실 obj’ 파라미터가 Aspose.Imaging.Font이고 이 Aspose.Imaging.Font과 동일한 속성 값을 가지고 있다면; 그렇지 않으면, 가짜.

GetHashCode()

이 Aspose.Imaging.Font에 대한 해시 코드를 얻습니다.

public override int GetHashCode()

Returns

int

이 Aspose.Imaging.Font에 대한 해시 코드.

ToString()

이 Aspose.Imaging.Font에 대한 인간 읽을 수 있는 스트리트 표현을 반환합니다.

public override string ToString()

Returns

string

이 Aspose.Imaging.Font을 나타내는 끈입니다.

 한국어