svgtext

package
v0.0.0-...-a16ce98 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2013 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

SVG driver (text) for graf.go.

Index

Constants

View Source
const DEFAULT_FSTYLE = "font-family:Arial;"
View Source
const WIDTH_DENSITY = 10000

Variables

This section is empty.

Functions

func FStyle

func FStyle(f string) string

Types

type SvgTextT

type SvgTextT struct {
	Pdf  *pdfreader.PdfReaderT
	Drw  *graf.PdfDrawerT
	Page int
	// contains filtered or unexported fields
}

func New

func New(pdf *pdfreader.PdfReaderT, drw *graf.PdfDrawerT) *SvgTextT

func (*SvgTextT) Style

func (t *SvgTextT) Style(font string) (r string)

func (*SvgTextT) TMoveTo

func (t *SvgTextT) TMoveTo(s [][]byte)

func (*SvgTextT) TNextLine

func (t *SvgTextT) TNextLine()

func (*SvgTextT) TSetMatrix

func (t *SvgTextT) TSetMatrix(s [][]byte)

func (*SvgTextT) TShow

func (t *SvgTextT) TShow(a []byte)

func (*SvgTextT) Utf8Advance

func (t *SvgTextT) Utf8Advance(s []byte) ([]byte, string)

func (*SvgTextT) Utf8TsAdvance

func (t *SvgTextT) Utf8TsAdvance(s []byte) ([]byte, int64)

Jump to

Keyboard shortcuts

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