Class FontDescription
- Namespace
- Pango
- Assembly
- Pango-1.0.dll
public sealed class FontDescription : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<FontDescription>, IDisposable
- Inheritance
-
FontDescription
- Implements
- Inherited Members
Constructors
FontDescription(FontDescriptionOwnedHandle)
public FontDescription(FontDescriptionOwnedHandle handle)
Parameters
handle
FontDescriptionOwnedHandle
Properties
Handle
public FontDescriptionOwnedHandle Handle { get; }
Property Value
Methods
BetterMatch(FontDescription?, FontDescription)
public bool BetterMatch(FontDescription? oldMatch, FontDescription newMatch)
Parameters
oldMatch
FontDescriptionnewMatch
FontDescription
Returns
Copy()
public FontDescription? Copy()
Returns
CopyStatic()
public FontDescription? CopyStatic()
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Equal(FontDescription)
public bool Equal(FontDescription desc2)
Parameters
desc2
FontDescription
Returns
Equals(FontDescription?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(FontDescription? other)
Parameters
other
FontDescriptionAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Free()
public void Free()
FromString(string)
public static FontDescription FromString(string str)
Parameters
str
string
Returns
GetFamily()
public string? GetFamily()
Returns
GetGType()
public static Type GetGType()
Returns
GetGravity()
[Version("1.16")]
public Gravity GetGravity()
Returns
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
GetSize()
public int GetSize()
Returns
GetSizeIsAbsolute()
[Version("1.8")]
public bool GetSizeIsAbsolute()
Returns
GetStretch()
public Stretch GetStretch()
Returns
GetStyle()
public Style GetStyle()
Returns
GetVariant()
public Variant GetVariant()
Returns
GetVariations()
[Version("1.42")]
public string? GetVariations()
Returns
GetWeight()
public Weight GetWeight()
Returns
Hash()
public uint Hash()
Returns
Merge(FontDescription?, bool)
public void Merge(FontDescription? descToMerge, bool replaceExisting)
Parameters
descToMerge
FontDescriptionreplaceExisting
bool
MergeStatic(FontDescription, bool)
public void MergeStatic(FontDescription descToMerge, bool replaceExisting)
Parameters
descToMerge
FontDescriptionreplaceExisting
bool
New()
public static FontDescription New()
Returns
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
ToString()
public string ToString()
Returns
UnsetFields(FontMask)
public void UnsetFields(FontMask toUnset)
Parameters
toUnset
FontMask