FontTransformation

FontTransformation class

Describes font transformation configuration including font attributes. Font transformations are applied after document loading and font substitution.

public class FontTransformation : ValueObject

Properties

Name Description
MatchAnySize { get; } When true, matches any font size for the original font name. When false, matches exact font size specified in OriginalFont.
MatchAnyStyle { get; } When true, matches any font style (bold, italic, underline) for the original font. When false, matches exact font style specified in OriginalFont.
OriginalFont { get; } The original font specification to match and replace.
ReplacementFont { get; } The replacement font specification.

Methods

Name Description
static Create(Font, Font) Creates a font transformation with exact font matching (size and style must match).
static CreateByName(string, string) Creates a font transformation by name only, matching any size and style. The replacement font will preserve the original font’s size and style.
static CreateFlexible(Font, Font, bool, bool) Creates a font transformation with flexible matching options.
override Equals(object) Determines whether two object instances are equal.
virtual Equals(ValueObject) Determines whether two object instances are equal.
override GetHashCode() Serves as the default hash function.

See Also