FontsetProtocol
public protocol FontsetProtocol : ObjectProtocol
A PangoFontset represents a set of PangoFont to use when rendering text.
A PangoFontset is the result of resolving a PangoFontDescription
against a particular PangoContext. It has operations for finding the
component font for a particular Unicode character, and for finding a
composite set of metrics for the entire fontset.
The FontsetProtocol protocol exposes the methods and properties of an underlying PangoFontset instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see Fontset.
Alternatively, use FontsetRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
PangoFontsetinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
fontset_ptrDefault implementationTyped pointer to the underlying
PangoFontsetinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
PangoFontsetinstance.Declaration
Swift
var fontset_ptr: UnsafeMutablePointer<PangoFontset>! { get } -
Required Initialiser for types conforming to
FontsetProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
foreach(func:Extension methoddata: ) Iterates through all the fonts in a fontset, calling
funcfor each one.If
funcreturnstrue, that stops the iteration.Declaration
Swift
@inlinable func foreach(func: PangoFontsetForeachFunc?, data: gpointer? = nil) -
getFont(wc:Extension method) Returns the font in the fontset that contains the best glyph for a Unicode character.
Declaration
Swift
@inlinable func getFont(wc: Int) -> Pango.FontRef! -
getMetrics()Extension methodGet overall metric information for the fonts in the fontset.
Declaration
Swift
@inlinable func getMetrics() -> Pango.FontMetricsRef! -
metricsExtension methodGet overall metric information for the fonts in the fontset.
Declaration
Swift
@inlinable var metrics: Pango.FontMetricsRef! { get } -
parentInstanceExtension methodUndocumented
Declaration
Swift
@inlinable var parentInstance: GObject { get }
View on GitHub
Install in Dash
FontsetProtocol Protocol Reference