Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
func Render(device bitmap.Device, bytes []byte, proportionalFamily, monospaceFamily *font.Family, headingStyles []BlockStyle, paragraphStyle BlockStyle) error
Types ¶
type BlockStyle ¶
type BlockStyle struct { PointSize float64 // The size of the block's font face in points. TopMargin float64 // The top margin of the block in points. BottomMargin float64 // The bottom margin of the block in points. }
BlockStyle describes the style for a block node.
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func NewRenderer(proportionalFamily, monospaceFamily *font.Family, headingStyles []BlockStyle, paragraphStyle BlockStyle) *Renderer
Click to show internal directories.
Click to hide internal directories.