Class FontUnit

Class FontUnit

Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.1.0)

특정 텍스트 형식을 정의하며, 여기에는 글꼴, 크기 및 스타일 속성이 포함됩니다. 크기는 Unit 값 속성에 있습니다.

public sealed class FontUnit

상속

objectFontUnit

상속된 멤버

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

예제

이 샘플은 바코드 이미지를 생성하고 저장하는 방법을 보여줍니다.

  using (BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code128))
  {
      generator.CodeTextStyle.Font.Style = FontStyle.Italic;
      generator.CodeTextStyle.Font.Size.Point = 18;
      generator.Save("test.png");
  }

속성

FamilyName

이 글꼴의 이름을 가져오거나 설정합니다.

[XmlSerialization(Type = XmlSerializationType.Element)]
public string FamilyName { get; set; }

속성 값

string

Size

이 FontUnit의 크기를 Unit 값으로 가져오거나 설정합니다.

[XmlSerialization(Type = XmlSerializationType.Element, Name = "Size")]
public Unit Size { get; }

속성 값

Unit

예외

ArgumentException

Size 매개변수 값이 0보다 작거나 같습니다.

Style

이 FontUnit의 스타일 정보를 가져오거나 설정합니다.

[XmlSerialization(Type = XmlSerializationType.Element)]
public FontStyle Style { get; set; }

속성 값

FontStyle

 한국어