XpsDocument.CreateFont

CreateFont(string, FontStyle)

Creates a new TrueType font resource.

public XpsFont CreateFont(string fontFamily, FontStyle fontStyle)
ParameterTypeDescription
fontFamilyStringThe font family.
fontStyleFontStyleThe font style.

Return Value

New TrueType font resource.

See Also


CreateFont(Stream)

Creates a new TrueType font resource out of stream.

public XpsFont CreateFont(Stream stream)
ParameterTypeDescription
streamStreamThe stream containing the ICC profile to take as a resource.

Return Value

New TrueType font resource.

See Also