OperatingSystemFont.getTtfBytes

Returns the raw content of the ttf file, if possible. This allows you to use OperatingSystemFont to look up fonts that you then pass to things like arsd.ttf.OpenGlLimitedFont or arsd.nanovega.

Returns null if impossible. It is impossible if the loaded font is not a local TTF file or if the underlying system doesn't support returning the raw bytes.

class OperatingSystemFont
ubyte[]
getTtfBytes
()

Meta

History

Added September 10, 2021 (dub v10.3)