CKTextKitRendererMeasureOption Constants Reference

Declared in CKTextKitRenderer+Positioning.h

CKTextKitRendererMeasureOption

Measure options are used to specify which type of line height measurement to use.

CKTextKitRendererMeasureOptionLineHeight is faster and will give the height from the baseline to the next line.

CKTextKitRendererMeasureOptionCapHeight is a more nuanced measure of the glyphs in the given range that attempts to produce a visually balanced rectangle above and below the glyphs to produce nice looking text highlights.

CKTextKitRendererMeasureOptionBlock uses the cap height option to generate each glyph index, but combines all but the first and last line rect into a single block. Looks nice for multiline selection.

Definition

typedef NS_ENUM(NSUInteger, CKTextKitRendererMeasureOption ) {
   CKTextKitRendererMeasureOptionLineHeight,
   CKTextKitRendererMeasureOptionCapHeight,
   CKTextKitRendererMeasureOptionBlock,
};

Constants

CKTextKitRendererMeasureOptionLineHeight

Measure options are used to specify which type of line height measurement to use.

Declared In CKTextKitRenderer+Positioning.h.

CKTextKitRendererMeasureOptionCapHeight

Measure options are used to specify which type of line height measurement to use.

Declared In CKTextKitRenderer+Positioning.h.

CKTextKitRendererMeasureOptionBlock

Measure options are used to specify which type of line height measurement to use.

Declared In CKTextKitRenderer+Positioning.h.

Declared In

CKTextKitRenderer+Positioning.h