measurement

package
v1.0.12-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2024 License: AGPL-3.0 Imports: 0 Imported by: 19

Documentation

Index

Constants

View Source
const (
	Zero           Distance = 0
	Point                   = 1
	NOFFZZ                  = 914400.0
	Pixel72                 = 1.0 / 72.0 * Inch
	Pixel96                 = 1.0 / 96.0 * Inch
	HalfPoint               = 1.0 / 2.0 * Point
	Character               = 8 * Point
	Millimeter              = 2.83465 * Point
	Centimeter              = 10 * Millimeter
	Inch                    = 72 * Point
	Ppi                     = 96 * Point
	Foot                    = 12 * Inch
	Twips                   = 1.0 / 20.0 * Point
	EMU                     = 1.0 / NOFFZZ * Inch
	HundredthPoint          = 1 / 100.0
	Dxa                     = Twips

	// Indent setting
	LeftAndRightIndent      = 210
	LeftAndRightIndentChars = 100
	//doc  default max width
	DocDefaultWidth = 552.0
)

Constants for various distance units

Variables

This section is empty.

Functions

This section is empty.

Types

type Distance

type Distance float64

Distance represents a distance and is automatically converted to the units needed internally in the various ECMA 376 formats.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL