svg

package
v0.0.0-...-143e6d5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ColorTransparent = core.ColorTransparent
	NewBuffer        = core.NewBuffer
)

Functions

This section is empty.

Types

type Buffer

type Buffer = core.Buffer

func Decode

func Decode(path string, reqSize int, opts Options) (*Buffer, error)

Decode decodes and rasterizes SVG using an in-tree parser/rasterizer.

type Color

type Color = core.Color

type Options

type Options struct {
	TextFace    *TextFace
	DecodeImage func(path string, reqSize int) (*Buffer, error)
}

type Rect

type Rect = core.Rect

type TextFace

type TextFace struct {
	Width  int
	Height int
	Glyphs map[rune][]byte
}

Jump to

Keyboard shortcuts

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