fontmetrics

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Overview

Package fontmetrics provide basic font metrics for both in-document and out-of-document content.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Baseline

type Baseline struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Baseline

func BaselineFromJS

func BaselineFromJS(value js.Value) *Baseline

BaselineFromJS is casting a js.Value into Baseline.

func BaselineFromWrapper

func BaselineFromWrapper(input core.Wrapper) *Baseline

BaselineFromJS is casting from something that holds a js.Value into Baseline.

func (*Baseline) JSValue

func (_this *Baseline) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*Baseline) Name

func (_this *Baseline) Name() string

Name returning attribute 'name' with type string (idl: DOMString).

func (*Baseline) Value

func (_this *Baseline) Value() float64

Value returning attribute 'value' with type float64 (idl: double).

type Font

type Font struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Font

func FontFromJS

func FontFromJS(value js.Value) *Font

FontFromJS is casting a js.Value into Font.

func FontFromWrapper

func FontFromWrapper(input core.Wrapper) *Font

FontFromJS is casting from something that holds a js.Value into Font.

func (*Font) GlyphsRendered

func (_this *Font) GlyphsRendered() uint

GlyphsRendered returning attribute 'glyphsRendered' with type uint (idl: unsigned long).

func (*Font) JSValue

func (_this *Font) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*Font) Name

func (_this *Font) Name() string

Name returning attribute 'name' with type string (idl: DOMString).

type FontMetrics

type FontMetrics struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: FontMetrics

func FontMetricsFromJS

func FontMetricsFromJS(value js.Value) *FontMetrics

FontMetricsFromJS is casting a js.Value into FontMetrics.

func FontMetricsFromWrapper

func FontMetricsFromWrapper(input core.Wrapper) *FontMetrics

FontMetricsFromJS is casting from something that holds a js.Value into FontMetrics.

func (*FontMetrics) Advances

func (_this *FontMetrics) Advances() *javascript.FrozenArray

Advances returning attribute 'advances' with type javascript.FrozenArray (idl: FrozenArray).

func (*FontMetrics) Baselines

func (_this *FontMetrics) Baselines() *javascript.FrozenArray

Baselines returning attribute 'baselines' with type javascript.FrozenArray (idl: FrozenArray).

func (*FontMetrics) BoundingBoxAscent

func (_this *FontMetrics) BoundingBoxAscent() float64

BoundingBoxAscent returning attribute 'boundingBoxAscent' with type float64 (idl: double).

func (*FontMetrics) BoundingBoxDescent

func (_this *FontMetrics) BoundingBoxDescent() float64

BoundingBoxDescent returning attribute 'boundingBoxDescent' with type float64 (idl: double).

func (*FontMetrics) BoundingBoxLeft

func (_this *FontMetrics) BoundingBoxLeft() float64

BoundingBoxLeft returning attribute 'boundingBoxLeft' with type float64 (idl: double).

func (*FontMetrics) BoundingBoxRight

func (_this *FontMetrics) BoundingBoxRight() float64

BoundingBoxRight returning attribute 'boundingBoxRight' with type float64 (idl: double).

func (*FontMetrics) DominantBaseline

func (_this *FontMetrics) DominantBaseline() *Baseline

DominantBaseline returning attribute 'dominantBaseline' with type Baseline (idl: Baseline).

func (*FontMetrics) EmHeightAscent

func (_this *FontMetrics) EmHeightAscent() float64

EmHeightAscent returning attribute 'emHeightAscent' with type float64 (idl: double).

func (*FontMetrics) EmHeightDescent

func (_this *FontMetrics) EmHeightDescent() float64

EmHeightDescent returning attribute 'emHeightDescent' with type float64 (idl: double).

func (*FontMetrics) FontBoundingBoxAscent

func (_this *FontMetrics) FontBoundingBoxAscent() float64

FontBoundingBoxAscent returning attribute 'fontBoundingBoxAscent' with type float64 (idl: double).

func (*FontMetrics) FontBoundingBoxDescent

func (_this *FontMetrics) FontBoundingBoxDescent() float64

FontBoundingBoxDescent returning attribute 'fontBoundingBoxDescent' with type float64 (idl: double).

func (*FontMetrics) Fonts

func (_this *FontMetrics) Fonts() *javascript.FrozenArray

Fonts returning attribute 'fonts' with type javascript.FrozenArray (idl: FrozenArray).

func (*FontMetrics) Height

func (_this *FontMetrics) Height() float64

Height returning attribute 'height' with type float64 (idl: double).

func (*FontMetrics) JSValue

func (_this *FontMetrics) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*FontMetrics) Width

func (_this *FontMetrics) Width() float64

Width returning attribute 'width' with type float64 (idl: double).

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

Jump to

Keyboard shortcuts

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