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
textMatrixtextPositionsetCharacterSpacing(_:)setFont(_:)setFontSize(_:)setTextDrawingMode(_:)setAllowsFontSmoothing(_:)setAllowsFontSubpixelPositioning(_:)setAllowsFontSubpixelQuantization(_:)setShouldSmoothFonts(_:)setShouldSubpixelPositionFonts(_:)setShouldSubpixelQuantizeFonts(_:)showGlyphs(g:count:)showGlyphs(_:at:)showGlyphsAtPoint(x:y:glyphs:count:)