Documentation ¶
Overview ¶
Package fontmetrics provide basic font metrics for both in-document and out-of-document content.
Index ¶
- type Baseline
- type Font
- type FontMetrics
- func (_this *FontMetrics) Advances() *javascript.FrozenArray
- func (_this *FontMetrics) Baselines() *javascript.FrozenArray
- func (_this *FontMetrics) BoundingBoxAscent() float64
- func (_this *FontMetrics) BoundingBoxDescent() float64
- func (_this *FontMetrics) BoundingBoxLeft() float64
- func (_this *FontMetrics) BoundingBoxRight() float64
- func (_this *FontMetrics) DominantBaseline() *Baseline
- func (_this *FontMetrics) EmHeightAscent() float64
- func (_this *FontMetrics) EmHeightDescent() float64
- func (_this *FontMetrics) FontBoundingBoxAscent() float64
- func (_this *FontMetrics) FontBoundingBoxDescent() float64
- func (_this *FontMetrics) Fonts() *javascript.FrozenArray
- func (_this *FontMetrics) Height() float64
- func (_this *FontMetrics) JSValue() js.Value
- func (_this *FontMetrics) Width() float64
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Baseline ¶
class: Baseline
func BaselineFromJS ¶
BaselineFromJS is casting a js.Wrapper into Baseline.
type Font ¶
class: Font
func FontFromJS ¶
FontFromJS is casting a js.Wrapper into Font.
func (*Font) GlyphsRendered ¶
GlyphsRendered returning attribute 'glyphsRendered' with type uint (idl: unsigned long).
type FontMetrics ¶
class: FontMetrics
func FontMetricsFromJS ¶
func FontMetricsFromJS(value js.Wrapper) *FontMetrics
FontMetricsFromJS is casting a js.Wrapper 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
func (*FontMetrics) Width ¶
func (_this *FontMetrics) Width() float64
Width returning attribute 'width' with type float64 (idl: double).