get Font Bytes
Reads and returns the bytes of a font file for a specified font.
This function uses getFontFile to find the font file and reads its bytes into a ByteArray.
Return
A ByteArray containing the font file's bytes, or null if the file could not be found or read.
Parameters
font
The Fonts.Font object representing the font to be read.