FontDefinition.Open

Open(string, FontType)

Returns FontDefinition for font file and font type.

public static FontDefinition Open(string fileName, FontType fontType)
ParameterTypeDescription
fileNameStringFont file name.
fontTypeFontTypeFont type.

Return Value

FontDefinition.

See Also


Open(StreamSource, FontType)

Returns FontDefinition for font stream source and font type.

public static FontDefinition Open(StreamSource source, FontType fontType)
ParameterTypeDescription
sourceStreamSourceFont stream source.
fontTypeFontTypeFont type.

Return Value

FontDefinition.

See Also