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
PangoGlyphVisAttr
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
PangoGlyphVisAttr
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
PangoGlyphVisAttr
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<PangoGlyphVisAttr>! { get }
-
Required Initialiser for types conforming to
GlyphVisAttrProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
isClusterStart
Extension methodset for the first logical glyph in each cluster.
Declaration
Swift
@inlinable var isClusterStart: guint { get set }
-
isColor
Extension methodset if the the font will render this glyph with color. Since 1.50
Declaration
Swift
@inlinable var isColor: guint { get set }