CMFontStyle
public class CMFontStyle : JSONable
The font label style. Customize text font.
Copyright © 2017 Nexusgeographics All rights reserved.
See also
CMLabelStyle-
The enum Weight.
See moreDeclaration
Swift
public enum Weight : String
-
The enum Transform.
See moreDeclaration
Swift
public enum Transform : String
-
The enum text Style.
See moreDeclaration
Swift
public enum Style : String
-
The font-family of the label. Default is Helvetica.
Declaration
Swift
public var family : String?
-
The text size in pixels.
Example:
CMFontStyle.size = "16px"
Declaration
Swift
public var size : String?
-
The text Style. Currently supports only
italic
.Declaration
Swift
public var style : Style?
-
The text weight
Declaration
Swift
public var weight : Weight?
-
The text color filled.
Example:
CMFontStyle.fill = "#ff0000"
Color format:
Named colors: red, blue, salmon, rebeccapurple Hex colors: "#fff", "#000", "#9CE6E5" RGB colors: "rgb(255, 190, 0)" RGBA colors**: "rgb(255, 190, 0, .5)" HSL colors: "hsl(180, 100%, 100%)" HSL colors**: "hsla(180, 100%, 100%, 50%)"
**Currently, alpha values are ignored in the add and multiply blend modes, and respected in the inlay and overlay modes. For more on this, see the blend entry.
Declaration
Swift
public var fill : String?
-
The stroke color and width of the label.
Declaration
Swift
public var stroke : CMStroke?
-
Text transform style
Declaration
Swift
public var transform : Transform?
-
Undocumented
Declaration
Swift
public class CMFontStyle : JSONable
-
Undocumented
Declaration
Swift
public class CMFontStyle : JSONable
-
Undocumented
Declaration
Swift
public class CMFontStyle : JSONable