mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
text/shaper: add fmt.Stringer() implementation for Style
Signed-off-by: Walter Werner SCHNEIDER <contact@schnwalter.eu>
This commit is contained in:
committed by
Elias Naur
parent
86b685abe5
commit
a5625031a4
@@ -103,3 +103,14 @@ func (a Alignment) String() string {
|
|||||||
panic("invalid Alignment")
|
panic("invalid Alignment")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s Style) String() string {
|
||||||
|
switch s {
|
||||||
|
case Regular:
|
||||||
|
return "Regular"
|
||||||
|
case Italic:
|
||||||
|
return "Italic"
|
||||||
|
default:
|
||||||
|
panic("invalid Style")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user