MCPcopy Index your code
hub / github.com/tdewolff/canvas / ScriptRotation

Function ScriptRotation

text/text.go:146–153  ·  view source on GitHub ↗
(script Script)

Source from the content-addressed store, hash-verified

144)
145
146func ScriptRotation(script Script) Rotation {
147 if script == Mongolian || script == PhagsPa {
148 return CW
149 } else if script == Ogham || script == OldTurkic {
150 return CCW
151 }
152 return NoRotation
153}

Callers 2

scriptDirectionFunction · 0.92
RotationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected