GlyphVisAttrProtocol
public protocol GlyphVisAttrProtocol
A PangoGlyphVisAttr structure communicates information between
the shaping and rendering phases.
Currently, it contains cluster start and color information. More attributes may be added in the future.
Clusters are stored in visual order, within the cluster, glyphs are always ordered in logical order, since visual order is meaningless; that is, in Arabic text, accent glyphs follow the glyphs for the base character.
The GlyphVisAttrProtocol protocol exposes the methods and properties of an underlying PangoGlyphVisAttr 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 GlyphVisAttr.
Alternatively, use GlyphVisAttrRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
PangoGlyphVisAttrinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
PangoGlyphVisAttrinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
PangoGlyphVisAttrinstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<PangoGlyphVisAttr>! { get } -
Required Initialiser for types conforming to
GlyphVisAttrProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
isClusterStartExtension methodset for the first logical glyph in each cluster.
Declaration
Swift
@inlinable var isClusterStart: guint { get set } -
isColorExtension methodset if the the font will render this glyph with color. Since 1.50
Declaration
Swift
@inlinable var isColor: guint { get set }
View on GitHub
Install in Dash
GlyphVisAttrProtocol Protocol Reference