FontSourceOptions
Hierarchy
- Omit<FontOptions, family>
- GraphicOptions
- RasterOptions
- FontSourceOptions
Index
Properties
optionalbaseAlign
optionalbold
Optionally set whether the font is bold, by default false
optionalbustCache
Whether or not to cache-bust requests
optionalcolor
Optionally specify the color of the raster's bitmap context, by default Color.Black
optionaldirection
Optionally specify the text direction, by default LeftToRight
optionalfiltering
Optionally specify what image filtering mode should be used, ImageFiltering.Pixel for pixel art, ImageFiltering.Blended for hi-res art
By default unset, rasters defer to the engine antialiasing setting
optionalflipHorizontal
Should the graphic be flipped horizontally
optionalflipVertical
Should the graphic be flipped vertically
optionalheight
The height of the graphic
optionallineCap
Optionally specify the line end style, default is "butt".
optionallineDash
Optionally specify the line dash of the raster's bitmap, by default []
which means none
optionallineHeight
Optionally override the text line height in pixels, useful for multiline text. If unset will use default.
optionallineWidth
Optionally specify the line width of the raster's bitmap, by default 1 pixel
optionalopacity
The opacity of the graphic between (0 -1)
optionalorigin
The origin of the drawing in pixels to use when applying transforms, by default it will be the center of the image in pixels
optionalpadding
Optionally specify the padding to apply to the bitmap
optionalquality
Optionally specify the quality of the text bitmap, it is a multiplier on the size size, by default 2. Higher quality text has a higher memory impact
optionalrotation
The rotation of the graphic
optionalscale
The scale of the graphic
optionalshadow
optionalsize
Optionally the size of the font in the specified FontUnit by default 10.
optionalsmoothing
Optionally specify "smoothing" if you want antialiasing to apply to the raster's bitmap context, by default false
optionalstrokeColor
Optionally specify the stroke color of the raster's bitmap context, by default undefined
optionalstyle
Optionally specify the font style, by default Normal
optionaltextAlign
Optionally specify the text align, by default Left
optionaltint
The tint of the graphic, this color will be multiplied by the original pixel colors
optionalunit
Optionally specify unit to measure fonts in, by default Pixels
optionalwidth
The width of the graphic
Optionally specify the text base align, by default Alphabetic