package painter
import "fyne.io/fyne/internal/painter"
Index ¶
- Constants
- func CachedFontFace(style fyne.TextStyle, opts *truetype.Options) font.Face
- func ClearFontCache()
- func GetAspect(img *canvas.Image) float32
- func PaintImage(img *canvas.Image, c fyne.Canvas, width, height int) image.Image
- func RenderedTextSize(text string, size int, style fyne.TextStyle) fyne.Size
- func SvgCacheMonitorTheme()
Constants ¶
const TextDPI = 78
TextDPI is a global constant that determines how text scales to interface sizes
Functions ¶
func CachedFontFace ¶
CachedFontFace returns a font face held in memory. These are loaded from the current theme.
func ClearFontCache ¶
func ClearFontCache()
ClearFontCache is used to remove cached fonts in the case that we wish to re-load font faces
func GetAspect ¶
GetAspect looks up an aspect ratio of an image
func PaintImage ¶
PaintImage renders a given fyne Image to a Go standard image
func RenderedTextSize ¶
RenderedTextSize looks up how bit a string would be if drawn on screen
func SvgCacheMonitorTheme ¶
func SvgCacheMonitorTheme()
SvgCacheMonitorTheme hooks up the SVG cache to listen for theme changes and resets the cache
Source Files ¶
font.go image.go svg_cache.go
Directories ¶
Path | Synopsis |
---|---|
internal/painter/gl | Package gl provides a full Fyne render implementation using system OpenGL libraries. |
internal/painter/software |
- Version
- v1.2.0-beta2
- Published
- Dec 10, 2019
- Platform
- windows/amd64
- Imports
- 21 packages
- Last checked
- 20 minutes ago –
Tools for package owners.