create_from_file


Description:

[ Version ( since = "1.7.7" ) ]
public static Blob create_from_file (string file_name)

Creates a new blob containing the data from the specified binary font file.

The filename is passed directly to the system on all platforms, except on Windows, where the filename is interpreted as UTF-8. Only if the filename is not valid UTF-8, it will be interpreted according to the system codepage.

Parameters:

file_name

A font filename

Returns:

An Blob pointer with the content of the file, or get_empty if failed.