littlekt
0.6.0
common
core
/
com.lehaine.littlekt.graphics.g2d.font
/
GlyphPath
Glyph
Path
data
class
GlyphPath
(
val
unitsPerEm
:
Int
=
1000
)
Author
Colton Daily
Types
Constructors
Functions
Properties
Constructors
Glyph
Path
Link copied to clipboard
fun
GlyphPath
(
unitsPerEm
:
Int
=
1000
)
Types
Command
Link copied to clipboard
data
class
Command
(
val
type
:
GlyphPath.CommandType
,
val
x
:
Float
=
0.0f
,
val
y
:
Float
=
0.0f
,
val
x1
:
Float
=
0.0f
,
val
y1
:
Float
=
0.0f
,
val
x2
:
Float
=
0.0f
,
val
y2
:
Float
=
0.0f
)
Command
Type
Link copied to clipboard
enum
CommandType
:
Enum
<
GlyphPath.CommandType
>
Functions
bezier
Curve
To
Link copied to clipboard
fun
bezierCurveTo
(
x1
:
Float
,
y1
:
Float
,
x2
:
Float
,
y2
:
Float
,
x
:
Float
,
y
:
Float
)
calculate
Bounding
Box
Link copied to clipboard
fun
calculateBoundingBox
(
)
:
Rect
close
Link copied to clipboard
fun
close
(
)
curve
To
Link copied to clipboard
fun
curveTo
(
x1
:
Float
,
y1
:
Float
,
x2
:
Float
,
y2
:
Float
,
x
:
Float
,
y
:
Float
)
extend
Link copied to clipboard
fun
extend
(
path
:
GlyphPath
)
fun
extend
(
rect
:
Rect
)
is
Empty
Link copied to clipboard
fun
isEmpty
(
)
:
Boolean
line
To
Link copied to clipboard
fun
lineTo
(
x
:
Float
,
y
:
Float
)
move
To
Link copied to clipboard
fun
moveTo
(
x
:
Float
,
y
:
Float
)
quad
To
Link copied to clipboard
fun
quadTo
(
x1
:
Float
,
y1
:
Float
,
x
:
Float
,
y
:
Float
)
recalculate
Link copied to clipboard
fun
recalculate
(
x
:
Int
=
0
,
y
:
Int
=
0
,
fontSize
:
Int
=
72
,
scaleX
:
Float
?
=
null
,
scaleY
:
Float
?
=
null
)
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
Properties
commands
Link copied to clipboard
val
commands
:
List
<
GlyphPath.Command
>
units
Per
Em
Link copied to clipboard
val
unitsPerEm
:
Int
=
1000