CGFontMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

CGFontMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class CoreGraphics MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The CoreGraphics class for a font.

The CGFontRef opaque type encapsulates font information. A font is a set of shapes or glyphs associated with a character set. A glyph can represent a single character (such as ‘b’), more than one character (such as the "fi" ligature), or a special character such as a space. Quartz retrieves the glyphs for the font from ATS (Apple Type Services) and paints the glyphs based on the relevant parameters of the current graphics state.

Quartz provides a limited, low-level interface for drawing text. For information on text-drawing functions, see CGContext Reference. For full Unicode and text-layout support, use the services provided by Core Text or ATSUI).

Constants

Constant Value Description
kCGFontIndexInvalid 65535 An invalid font index (a value which never represents a valid glyph).
kCGFontIndexMax 65534 The maximum allowed value for font index.
kCGGlyphMax 65534 The maximum value for a glyph.

PostScript Formats

Constant Value Description
kCGFontPostScriptFormatType1 1 This is documented in Adobe Type 1 Font Format, which is available from http://partners.adobe.com/.
kCGFontPostScriptFormatType3 3 This is documented in PostScript Language Reference, 3rd edition, which is available from http://partners.adobe.com/.
kCGFontPostScriptFormatType42 42 This is documented in Adobe Technical Note 5012, The Type 42 Font Format Specification, which is available from http://partners.adobe.com/.

This class has no sub classes.

Some methods using this class:

Blog Entries

Xojo Developer Magazine

Release notes


The items on this page are in the following plugins: MBS MacCG Plugin.


CGEventTapMBS   -   CGFunctionMBS


💬 Ask a question or report a problem