MBIOcrCharKey
@interface MBIOcrCharKey : NSObject
Class representing a char in specific font.
@example char ‘k’ in font Arial
MBIOcrCharKey* key = [[MBIOcrCharKey alloc] initWithCode:'k' font:MB_OCR_FONT_ARIAL];
@example char ‘ü’ in any font
MBIOcrCharKey* key = [[MBIOcrCharKey alloc] initWithCode:'ü' font:MB_OCR_FONT_ANY];
-
Unicode value of the char. For example, for char ‘k’, you can use either ‘k’ or 107.
Declaration
Objective-C
@property (nonatomic) int code;
Swift
var code: Int32 { get set }
-
Font of the char. Can be specific (for example MB_OCR_FONT_ARIAL), or any font (MB_OCR_FONT_ANY), which is the same as specifying the same char code with all supported fonts.
Declaration
Objective-C
@property (nonatomic) MBIOcrFont font;
Swift
var font: MBIOcrFont { get set }
-
Initializer which specifies the code and font of the char.
Declaration
Objective-C
- (nonnull instancetype)initWithCode:(int)code font:(MBIOcrFont)font;
Swift
init(code: Int32, font: MBIOcrFont)
Parameters
code
Unicode value for the char
font
Font of the char
Return Value
initialized char key
-
Factory method for easier instantiation
Declaration
Objective-C
+ (nonnull instancetype)keyWithCode:(int)code font:(MBIOcrFont)font;
Parameters
code
Unicode value for the char
font
Font of the char
Return Value
initialized char key