Crate dnd_spellbook_maker

Crate dnd_spellbook_maker 

Source
Expand description

Library for making pdf documents of 5th edition D&D spells that are formatted like D&D source books.

See repository for documentation on spell files.

Repository at https://github.com/ChandlerJayCalkins/dnd_spellbook_maker.

Re-exports§

pub use utils::*;

Modules§

spells
utils

Structs§

FontPaths
File paths to all the font files needed for create_spellbook().
FontScalars
Scalar values to convert rusttype font units to printpdf millimeters (Mm).
FontSizes
Data for what font sizes to use and how large tabs and various newline sizes should be.
Mm
Scale in millimeter
PageNumberOptions
Parameters for determining page number behavior.
PageSizeOptions
Data for determining the size of the page and the margins between sides of the pages and text.
SpacingOptions
TableOptions
Options for tables.
TextColorOptions
RGB colors for types of text in the spellbook.
XObjectTransform
Transform that is applied immediately before the image gets painted. Does not affect anything other than the image.

Enums§

FontVariant
Conveys which variant of a font is being used.
HSide
Horizontal Side, used for determining the side of the page a page number goes on.

Constants§

FONTVARIANT_VARIANTS
This must always be the same as the number of variants in FontVariant