examples/fontfeature: show the state of 'zero'

Updates #2454
This commit is contained in:
Hajime Hoshi 2023-11-23 18:51:30 +09:00
parent 30f05f4ad7
commit daa14ac686

View File

@ -99,7 +99,7 @@ func (g *Game) Draw(screen *ebiten.Image) {
[L] 'liga' (Standard Ligatures) (%d) [L] 'liga' (Standard Ligatures) (%d)
[T] 'tnum' (Tabular Figures) (%d) [T] 'tnum' (Tabular Figures) (%d)
[S] 'smcp' (Small Capitals) (%d) [S] 'smcp' (Small Capitals) (%d)
[Z] 'zero' (Slashed Zero) `, g.liga, g.tnum, g.smcp) [Z] 'zero' (Slashed Zero) (%d)`, g.liga, g.tnum, g.smcp, g.zero)
op := &text.DrawOptions{} op := &text.DrawOptions{}
op.GeoM.Translate(20, 20) op.GeoM.Translate(20, 20)
op.LineSpacingInPixels = 30 op.LineSpacingInPixels = 30