MCPcopy Create free account
hub / github.com/cogentcore/core / openFont

Method openFont

plot/text.go:42–46  ·  view source on GitHub ↗
(pt *Plot)

Source from the content-addressed store, hash-verified

40}
41
42func (ts *TextStyle) openFont(pt *Plot) {
43 if ts.Font.Face == nil {
44 paint.OpenFont(&ts.FontRender, &pt.Paint.UnitContext) // calls SetUnContext after updating metrics
45 }
46}
47
48func (ts *TextStyle) ToDots(uc *units.Context) {
49 ts.FontRender.ToDots(uc)

Callers 2

drawConfigMethod · 0.80
drawMethod · 0.80

Calls 1

OpenFontFunction · 0.92

Tested by

no test coverage detected