TeXFonts

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

Constructors

TeXFonts

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

Properties

BodyFont

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

BodyTint

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

CodeFont

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

CodeTint

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

MathFont

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

MathTint

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

Methods

Default

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

Scale

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

Unify

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

WithBodyFont

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

WithCodeFont

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

WithMathFont

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