Class Font
- Namespace
- Pango
- Assembly
- Pango-1.0.dll
public class Font : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
Font
- Implements
- Derived
- Inherited Members
Constructors
Font(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public Font(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Font(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Font(CreationData data)
Parameters
dataCreationData
Font(FontHandle)
protected Font(FontHandle handle)
Parameters
handleFontHandle
Methods
Describe()
public FontDescription Describe()
Returns
DescribeWithAbsoluteSize()
[Version("1.14")]
public FontDescription DescribeWithAbsoluteSize()
Returns
DescriptionsFree(FontDescription[]?)
public static void DescriptionsFree(FontDescription[]? descs)
Parameters
descsFontDescription[]
Deserialize(Context, Bytes)
[Version("1.50")]
public static Font? Deserialize(Context context, Bytes bytes)
Parameters
Returns
GetCoverage(Language)
public Coverage GetCoverage(Language language)
Parameters
languageLanguage
Returns
GetFace()
[Version("1.46")]
public FontFace? GetFace()
Returns
GetFontMap()
[Version("1.10")]
public FontMap? GetFontMap()
Returns
GetGType()
public static Type GetGType()
Returns
GetGlyphExtents(Glyph, out Rectangle, out Rectangle)
public void GetGlyphExtents(Glyph glyph, out Rectangle inkRect, out Rectangle logicalRect)
Parameters
GetHbFont()
[Version("1.44")]
public font_t? GetHbFont()
Returns
GetMetrics(Language?)
public FontMetrics GetMetrics(Language? language)
Parameters
languageLanguage
Returns
HasChar(uint)
[Version("1.44")]
public bool HasChar(uint wc)
Parameters
wcuint
Returns
NewFromPointer(nint, bool)
Creates a new managed Font instance for a given pointer.
public static Font NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Font and sets the properties specified by the construct arguments.
public static Font NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Serialize()
[Version("1.50")]
public Bytes Serialize()