text

package
v0.0.0-...-17244d7 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Text thumbnail generator

TODO: use 'code.google.com/p/freetype-go/freetype' to draw text on image

Index

Constants

View Source
const (
	TextTypeText = "text/plain"
	TextTypeC    = "text/x-c"
	TextTypeCpp  = "text/x-cpp"
	TextTypeGo   = "text/x-go"
)

Variables

This section is empty.

Functions

func GenThumbnail

func GenThumbnail(src string, width, height int, force bool) (string, error)

func SupportedTypes

func SupportedTypes() []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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