FontFaceProtocol
public protocol FontFaceProtocol : ObjectProtocol
A PangoFontFace is used to represent a group of fonts with
the same family, slant, weight, and width, but varying sizes.
The FontFaceProtocol protocol exposes the methods and properties of an underlying PangoFontFace 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 FontFace.
Alternatively, use FontFaceRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
PangoFontFaceinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
font_face_ptrDefault implementationTyped pointer to the underlying
PangoFontFaceinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
PangoFontFaceinstance.Declaration
Swift
var font_face_ptr: UnsafeMutablePointer<PangoFontFace>! { get } -
Required Initialiser for types conforming to
FontFaceProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
describe()Extension methodReturns a font description that matches the face.
The resulting font description will have the family, style, variant, weight and stretch of the face, but its size field will be unset.
Declaration
Swift
@inlinable func describe() -> Pango.FontDescriptionRef! -
getFaceName()Extension methodGets a name representing the style of this face.
Note that a font family may contain multiple faces with the same name (e.g. a variable and a non-variable face for the same style).
Declaration
Swift
@inlinable func getFaceName() -> String! -
getFamily()Extension methodGets the
PangoFontFamilythatfacebelongs to.Declaration
Swift
@inlinable func getFamily() -> Pango.FontFamilyRef! -
list(sizes:Extension methodnSizes: ) List the available sizes for a font.
This is only applicable to bitmap fonts. For scalable fonts, stores
nilat the location pointed to bysizesand 0 at the location pointed to byn_sizes. The sizes returned are in Pango units and are sorted in ascending order.Declaration
Swift
@inlinable func list(sizes: UnsafeMutablePointer<UnsafeMutablePointer<CInt>?>! = nil, nSizes: UnsafeMutablePointer<gint>!) -
faceNameExtension methodGets a name representing the style of this face.
Note that a font family may contain multiple faces with the same name (e.g. a variable and a non-variable face for the same style).
Declaration
Swift
@inlinable var faceName: String! { get } -
familyExtension methodGets the
PangoFontFamilythatfacebelongs to.Declaration
Swift
@inlinable var family: Pango.FontFamilyRef! { get } -
isSynthesizedExtension methodReturns whether a
PangoFontFaceis synthesized.This will be the case if the underlying font rendering engine creates this face from another face, by shearing, emboldening, lightening or modifying it in some other way.
Declaration
Swift
@inlinable var isSynthesized: Bool { get } -
parentInstanceExtension methodUndocumented
Declaration
Swift
@inlinable var parentInstance: GObject { get }
View on GitHub
Install in Dash
FontFaceProtocol Protocol Reference