Versions in this module Expand all Collapse all v1 v1.2.1 Jun 14, 2023 Changes in this version + const DPIPixels + func ColourComponentClamp(i int32) uint8 + func ColourFromARGB(a uint8, r uint8, g uint8, b uint8) uint32 + func ColourMix(cola uint32, colb uint32, amount float64) uint32 + func ColourToARGB(col uint32) (a uint8, r uint8, g uint8, b uint8) + func ColourTransform2Blend(dest uint32, source uint32) uint32 + func ColourTransformBlueToStencil(c uint32) uint32 + func ColourTransformInvert(c uint32) uint32 + func ConvertGoImageColourToUint32(col color.Color) uint32 + func ConvertUint32ToGoImageColour(col uint32) color.NRGBA + func CreateHardcodedPNGImage(bytes []byte) image.Image + func CreateHardcodedPNGTexture(bytes []byte, ct []ColourTransform) frenyard.Texture + func CreateTTFFont(ft *truetype.Font, dpi float64, size float64) font.Face + func FontRectangleConverter(bounds fixed.Rectangle26_6) frenyard.Area2i + func GoImageToTexture(img image.Image, ct []ColourTransform) frenyard.Texture + func ScaleImageToHalfSize(source image.Image) image.Image + type ColourTransform func(c uint32) uint32 + type ColourTransform2 func(a uint32, b uint32) uint32 + func (ct ColourTransform2) Run(part1 image.Image, part2 image.Image, shift frenyard.Vec2i) image.Image + type TextLayouterOptions struct + Limits frenyard.Vec2i + Text TypeChunk + type TextLayouterResult struct + Area frenyard.Area2i + Lines []TypeChunk + func TheOneTextLayouterToRuleThemAll(opts TextLayouterOptions) TextLayouterResult + func (tlr *TextLayouterResult) Draw() frenyard.Texture + type TypeChunk interface + FyCBounds func(dot fixed.Point26_6) (fixed.Point26_6, fixed.Rectangle26_6) + FyCComponentAdvance func(index int, kerning bool) fixed.Int26_6 + FyCComponentBreakStatus func(index int) TypeChunkComponentBreakStatus + FyCComponentCount func() int + FyCDraw func(img draw.Image, dot fixed.Point26_6) fixed.Point26_6 + FyCHeight func() int + FyCSection func(start int, end int) TypeChunk + func NewColouredTextTypeChunk(text string, face font.Face, colour uint32) TypeChunk + func NewCompoundTypeChunk(content []TypeChunk) TypeChunk + func NewTextTypeChunk(text string, face font.Face) TypeChunk + func NewUnderlineTypeChunk(text TypeChunk, underlineColour uint32) TypeChunk + type TypeChunkComponentBreakStatus uint8 + const TypeChunkComponentBreakStatusNewline + const TypeChunkComponentBreakStatusNone + const TypeChunkComponentBreakStatusSpace