Table of Contents

Class FontDescription

Namespace
Pango
Assembly
Pango-1.0.dll
public sealed class FontDescription : BoxedRecord, IEquatable<FontDescription>
Inheritance
FontDescription
Implements
Inherited Members

Constructors

FontDescription(FontDescriptionOwnedHandle)

public FontDescription(FontDescriptionOwnedHandle handle)

Parameters

handle FontDescriptionOwnedHandle

Properties

Handle

public FontDescriptionOwnedHandle Handle { get; }

Property Value

FontDescriptionOwnedHandle

Methods

BetterMatch(FontDescription?, FontDescription)

public bool BetterMatch(FontDescription? oldMatch, FontDescription newMatch)

Parameters

oldMatch FontDescription
newMatch FontDescription

Returns

bool

Copy()

public FontDescription? Copy()

Returns

FontDescription

CopyStatic()

public FontDescription? CopyStatic()

Returns

FontDescription

Equal(FontDescription)

public bool Equal(FontDescription desc2)

Parameters

desc2 FontDescription

Returns

bool

Equals(FontDescription?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(FontDescription? other)

Parameters

other FontDescription

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Free()

public void Free()

FromString(string)

public static FontDescription FromString(string str)

Parameters

str string

Returns

FontDescription

GetFamily()

public string? GetFamily()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetGravity()

[Version("1.16")]
public Gravity GetGravity()

Returns

Gravity

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetSetFields()

public FontMask GetSetFields()

Returns

FontMask

GetSize()

public int GetSize()

Returns

int

GetSizeIsAbsolute()

[Version("1.8")]
public bool GetSizeIsAbsolute()

Returns

bool

GetStretch()

public Stretch GetStretch()

Returns

Stretch

GetStyle()

public Style GetStyle()

Returns

Style

GetVariant()

public Variant GetVariant()

Returns

Variant

GetVariations()

[Version("1.42")]
public string? GetVariations()

Returns

string

GetWeight()

public Weight GetWeight()

Returns

Weight

Hash()

public uint Hash()

Returns

uint

Merge(FontDescription?, bool)

public void Merge(FontDescription? descToMerge, bool replaceExisting)

Parameters

descToMerge FontDescription
replaceExisting bool

MergeStatic(FontDescription, bool)

public void MergeStatic(FontDescription descToMerge, bool replaceExisting)

Parameters

descToMerge FontDescription
replaceExisting bool

New()

public static FontDescription New()

Returns

FontDescription

SetAbsoluteSize(double)

[Version("1.8")]
public void SetAbsoluteSize(double size)

Parameters

size double

SetFamily(string)

public void SetFamily(string family)

Parameters

family string

SetFamilyStatic(string)

public void SetFamilyStatic(string family)

Parameters

family string

SetGravity(Gravity)

[Version("1.16")]
public void SetGravity(Gravity gravity)

Parameters

gravity Gravity

SetSize(int)

public void SetSize(int size)

Parameters

size int

SetStretch(Stretch)

public void SetStretch(Stretch stretch)

Parameters

stretch Stretch

SetStyle(Style)

public void SetStyle(Style style)

Parameters

style Style

SetVariant(Variant)

public void SetVariant(Variant variant)

Parameters

variant Variant

SetVariations(string?)

[Version("1.42")]
public void SetVariations(string? variations)

Parameters

variations string

SetVariationsStatic(string)

[Version("1.42")]
public void SetVariationsStatic(string variations)

Parameters

variations string

SetWeight(Weight)

public void SetWeight(Weight weight)

Parameters

weight Weight

ToFilename()

public string? ToFilename()

Returns

string

ToString()

public string ToString()

Returns

string

UnsetFields(FontMask)

public void UnsetFields(FontMask toUnset)

Parameters

toUnset FontMask