Contents

selectFont(name:size:textEncoding:)

Sets the font and font size in a graphics context.

Declaration

func selectFont(name: UnsafePointer<CChar>, size: CGFloat, textEncoding: CGTextEncoding)

Parameters

  • name:

    A null-terminated string that contains the PostScript name of the font to set.

  • size:

    A value that specifies the font size to set, in text space units.

  • textEncoding:

    A value that specifies the encoding used for the font. For a description of the available values, see Cgtextencoding.

See Also

Drawing Text