Font
Font
A font used by the rendering implementation. As with other PolyUI resources, the actual loading, management, etc. of the font is NOT managed in this class in any way. This class just contains metadata for usage with PolyUI.
Parameters
The resource of the font, can be a URL (see here, you should use this or an equivalent method)
The letter spacing of the font, in pixels (e.g. 1 pixel = 1 empty pixel between each letter).
The line spacing of the font, in proportion to the font size (e.g. 2 means 1 empty line between each line, 1.5 = half a line between...)
a reference to the family that encloses this font. Only set if this font was retrieved from a method like FontFamily.get or similar.
Constructors
Types
Properties
Functions
load the given resource synchronously into a new byte array. you may then perform any operations on the result.
load the given resource synchronously, mapping to definitely non-nullable type T. you may then perform any operations on the result.
return the stream of this resource. it is the caller's responsibility to close the stream.