Categorygithub.com/boxesandglue/htmlbag
modulepackage
0.0.0-20241014191348-74c275c97168
Repository: https://github.com/boxesandglue/htmlbag.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AddFontFamiliesFromCSS adds entries to the font families of the frontend document.
ApplySettings converts the inheritable settings to boxes and glue text settings.
GetHTMLItemFromHTMLNode fills the firstItem with the contents of thisNode.
HTMLNodeToText converts an HTML node to a *frontend.Text element.
LoadIncludedFonts creates the font families monospace, sans and serif for default fonts.
New creates an instance of the CSSBuilder.
Output turns HTML structure into a nested frontend.Text element.
ParseHorizontalAlign parses the input ("left","center") and returns the HorizontalAlignment value.
ParseRelativeSize converts the string fs to a scaled point.
ParseVerticalAlign parses the input ("top","middle",...) and returns the VerticalAlignment value.
No description provided by the author
StylesToStyles updates the inheritable formattingStyles from the attributes (of the current HTML element).

# Constants

ModeHorizontal represents inline progression direction.
ModeVertical represents block progression direction.

# Structs

CSSBuilder handles HTML chunks and CSS instructions.
FormattingStyles are HTML formatting styles.
HTMLItem is a struct which represents a HTML element or a text node.
HTMLValues contains margin, padding and border values for a rectangular area.
PageDimensions contains the page size and the margins of the page.

# Type aliases

HTMLProperties contains css values.
Mode is the progression direction of the current HTML element.
StylesStack mimics CSS style inheritance.