USvgOptions

Immutable parser and font configuration for USvg.

defaultFontFamily and a caller-owned primary font are required by builder. File paths, network URLs and system fonts are never resolved. Inline data URLs and font bytes supplied through builder and Builder.font are the only external resources made available to native usvg.

Types

Link copied to clipboard
class Builder

Mutable builder for immutable USvgOptions.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

fallback font family name

Link copied to clipboard

fallback font size in CSS pixels

Link copied to clipboard

fallback viewport for SVG without a natural size

Link copied to clipboard
val dpi: Double

CSS pixel density used for physical units

Link copied to clipboard

Returns defensive copies of the configured font files.

Link copied to clipboard

fallback image-rendering hint

Link copied to clipboard

preferred language tags used by SVG conditional processing

Link copied to clipboard

fallback shape-rendering hint

Link copied to clipboard

optional injected author style sheet

Link copied to clipboard

fallback text-rendering hint