24 lines
361 B
Go
24 lines
361 B
Go
package svg
|
|
|
|
type (
|
|
LengthAdjust int
|
|
)
|
|
|
|
const (
|
|
LengthAdjustSpacing LengthAdjust = iota
|
|
LengthAdjustSpacingAndGlyph
|
|
)
|
|
|
|
func (LengthAdjust) PrintTag() string {
|
|
return "lengthAdjust"
|
|
}
|
|
|
|
func (l LengthAdjust) PrintValue() (string, bool) {
|
|
switch l {
|
|
case LengthAdjustSpacingAndGlyph:
|
|
return "spacingAndGlyphs", true
|
|
default:
|
|
return "spacing", true
|
|
}
|
|
}
|