TeXFonts

References
public sealed class TeXFonts
Collates a set of fonts and colours used in typesetting.

Constructors

TeXFonts

#
Create a new TeX font aggregate from scratch.
public TeXFonts(
Font
math,
Color
mathTint,
Font
body,
Color
bodyTint,
Font
code,
Color
codeTint
)

Properties

BodyFont

#
Gets the font to use for body text.
public Font BodyFont { get; }

BodyTint

#
Gets the colour to use for body text.
public Color BodyTint { get; }

CodeFont

#
Gets the font to use for (monospaced) code text.
public Font CodeFont { get; }

CodeTint

#
Gets the colour to use for (monospaced) code text.
public Color CodeTint { get; }

MathFont

#
Gets the font to use for math text.
public Font MathFont { get; }

MathTint

#
Gets the colour to use for math text.
public Color MathTint { get; }

Methods

Default

#
Create default TeX fonts.
public static TeXFonts Default(
size,
Size of the body font.
Color
colour = default(Color)
Optional colour, block is the default.
)

Scale

#
Scale the fonts by a certain factor.
public TeXFonts Scale(
factor
Scaling factor.
)

Unify

#
Unify the math and code fonts so that they have the same size as the body font.
public TeXFonts Unify()

WithBodyFont

#
Override the body font properties.
public TeXFonts WithBodyFont(
Font
font = null,
Optional new font.
Color?
tint = null
Optional new colour.
)

WithCodeFont

#
Override the code font properties.
public TeXFonts WithCodeFont(
Font
font = null,
Optional new font.
Color?
tint = null
Optional new colour.
)

WithMathFont

#
Override the math font properties.
public TeXFonts WithMathFont(
Font
font = null,
Optional new font.
Color?
tint = null
Optional new colour.
)