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
PangoFontFace
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
font_face_ptr
Default implementationTyped pointer to the underlying
PangoFontFace
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
PangoFontFace
instance.Declaration
Swift
var font_face_ptr: UnsafeMutablePointer<PangoFontFace>! { get }
-
Required Initialiser for types conforming to
FontFaceProtocol
Declaration
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
PangoFontFamily
thatface
belongs 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
nil
at the location pointed to bysizes
and 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>!)
-
faceName
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 var faceName: String! { get }
-
family
Extension methodGets the
PangoFontFamily
thatface
belongs to.Declaration
Swift
@inlinable var family: Pango.FontFamilyRef! { get }
-
isSynthesized
Extension methodReturns whether a
PangoFontFace
is 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 }
-
parentInstance
Extension methodUndocumented
Declaration
Swift
@inlinable var parentInstance: GObject { get }