ShieldFontConfig

Configuration for font properties used to resolve a specific typeface during SVG rendering. This process relies on an SVGExternalFileResolver that has been registered with SVG#registerExternalFileResolver.

To ensure compatibility, the values you provide for your font configuration must be supported by the registered SVGExternalFileResolver. For the Mapbox implementation, please refer to the MapboxNavigationSVGExternalFileResolver class, which contains detailed information on the supported fonts and configuration specifics.

Types

Link copied to clipboard
class Builder(fontFamily: String)

Build a new ShieldFontConfig

Link copied to clipboard
annotation class FontStyle

Possible font style values are defined according to the Tiny SVG 1.2 specification.

Link copied to clipboard
annotation class FontWeight

Numeric font weight values defined according to the Tiny SVG 1.2 specification.

Properties

Link copied to clipboard

The font family name.

Link copied to clipboard

Font style.

Link copied to clipboard

Font weight.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if this object is equal to another object.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object.

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.