Skip to content

Z.Font(...)

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

function Font(src : string) : Z.Font;

Returns a Z.Font instance for the supplied source filename or URL. This function returns an existing Z.Font instance if one has already been created or constructs one if necessary.

ParameterTypeDescription
srcstringThe filename or URL of the font file to load.

An existing Z.Font instance if one has already been created or constructs one if necessary.