MBMGlyphsRasterizationOptions
@interface MBMGlyphsRasterizationOptions : NSObject
Describes the glyphs rasterization option values.
-
Unavailable
Undocumented
Declaration
Objective-C
- (nonnull instancetype)init NS_UNAVAILABLE;
-
Unavailable
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)new NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (nonnull instancetype)initWithRasterizationMode:(MBMGlyphsRasterizationMode)rasterizationMode fontFamily:(nullable NSString *)fontFamily;
Swift
init(rasterizationMode: GlyphsRasterizationMode, fontFamily: String?)
-
Glyphs rasterization mode for client-side text rendering.
Declaration
Objective-C
@property (nonatomic, readonly) MBMGlyphsRasterizationMode rasterizationMode;
Swift
var rasterizationMode: GlyphsRasterizationMode { get }
-
Font family to use as font fallback for client-side text renderings.
Note:
GlyphsRasterizationMode
has precedence over font family. IfAllGlyphsRasterizedLocally
orIdeographsRasterizedLocally
is set, local glyphs will be generated based on the provided font family. If no font family is provided, the map will fall back to use the system default font. The mechanisms of choosing the default font are varied in platforms:- For darwin(iOS/macOS) platform, the default font family is created from the systemFont. If provided fonts are not supported on darwin platform, the map will fall back to use the first available font from the global fallback list.
- For Android platform: the default font Typeface.DEFAULT will be used.
Besides, the font family will be discarded if it is provided along with
NoGlyphsRasterizedLocally
mode.Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *fontFamily;
Swift
var fontFamily: String? { get }