drawtex

package
v0.0.0-...-5c1ce85 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: BSD-3-Clause Imports: 2 Imported by: 6

Documentation

Overview

Package drawtex describes the graphics interface for drawing LaTeX.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Canvas

type Canvas struct {
	// contains filtered or unexported fields
}

func New

func New() *Canvas

func (*Canvas) Ops

func (c *Canvas) Ops() []Op

func (*Canvas) RenderGlyph

func (c *Canvas) RenderGlyph(x, y float64, infos Glyph)

func (*Canvas) RenderRectFilled

func (c *Canvas) RenderRectFilled(x1, y1, x2, y2 float64)

type Glyph

type Glyph struct {
	Font       *sfnt.Font
	Size       float64
	Postscript string
	Metrics    font.Metrics
	Symbol     string
	Num        sfnt.GlyphIndex
	Offset     float64
}

type GlyphOp

type GlyphOp struct {
	X, Y  float64
	Glyph Glyph
}

type Op

type Op interface {
	// contains filtered or unexported methods
}

type RectOp

type RectOp struct {
	X1, Y1 float64
	X2, Y2 float64
}

Directories

Path Synopsis
Package drawimg implements a canvas for img.
Package drawimg implements a canvas for img.
Package drawpdf implements a canvas for PDF.
Package drawpdf implements a canvas for PDF.

Jump to

Keyboard shortcuts

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