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§
Structs§
- Font
Paths - File paths to all the font files needed for
create_spellbook(). - Font
Scalars - Scalar values to convert rusttype font units to printpdf millimeters (Mm).
- Font
Sizes - Data for what font sizes to use and how large tabs and various newline sizes should be.
- Mm
- Scale in millimeter
- Page
Number Options - Parameters for determining page number behavior.
- Page
Size Options - Data for determining the size of the page and the margins between sides of the pages and text.
- Spacing
Options - Table
Options - Options for tables.
- Text
Color Options - RGB colors for types of text in the spellbook.
- XObject
Transform - Transform that is applied immediately before the image gets painted. Does not affect anything other than the image.
Enums§
- Font
Variant - 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