FontRef.create

Status!TextError create(out F font, ref FaceT face, uint pixelSize, in FontOptions options) static @safe nothrow;

Creates a font over a face at a pixel size.

Parameters

fontfresh .init storage for the created font. Explicitly destroy an old value before reuse; out is not cleanup.
facethe face, which must outlive the font.
pixelSizeem size in pixels.
optionsraster and metric hints.

Returns

Status!TextError: UNSUPPORTED when the implementor cannot

scale the face, ALLOCATION_FAILED on native allocation failure.