toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.image.text
/
Text2TextRendererActions
Text2Text
Renderer
Actions
class
Text2TextRendererActions
:
TextRendererActions
Members
Members & Extensions
Constructors
Text2Text
Renderer
Actions
Link copied to clipboard
constructor
(
)
Types
Entry
Link copied to clipboard
data
class
Entry
(
var
tex
:
BmpSlice
=
Bitmaps.transparent
,
var
x
:
Double
=
0.0
,
var
y
:
Double
=
0.0
,
var
sx
:
Double
=
1.0
,
var
sy
:
Double
=
1.0
,
var
rot
:
Angle
=
0.radians
)
Line
Info
Link copied to clipboard
data
class
LineInfo
(
var
maxTop
:
Double
=
0.0
,
var
minBottom
:
Double
=
0.0
,
var
maxLineHeight
:
Double
=
0.0
)
Properties
align
Link copied to clipboard
var
align
:
TextAlignment
array
Metrics
Link copied to clipboard
val
arrayMetrics
:
DoubleVectorArrayList
current
Line
Num
Link copied to clipboard
open
override
var
currentLineNum
:
Int
font
Link copied to clipboard
lateinit
var
font
:
Font
font
Metrics
Link copied to clipboard
val
fontMetrics
:
FontMetrics
font
Size
Link copied to clipboard
var
fontSize
:
Double
horizontal
Align
Link copied to clipboard
val
horizontalAlign
:
HorizontalAlign
line
Height
Link copied to clipboard
open
override
val
lineHeight
:
Double
paint
Link copied to clipboard
var
paint
:
Paint
?
pos
Link copied to clipboard
open
override
var
pos
:
Vector2D
size
Link copied to clipboard
val
size
:
Int
tint
Link copied to clipboard
var
tint
:
RGBA
transform
Link copied to clipboard
open
override
var
transform
:
Matrix
vertical
Align
Link copied to clipboard
val
verticalAlign
:
VerticalAlign
Functions
advance
Link copied to clipboard
open
fun
advance
(
x
:
Double
)
around
Path
Link copied to clipboard
fun
ITextRendererActions
.
aroundPath
(
curve
:
Curve
)
:
ITextRendererActions
get
Bounds
Link copied to clipboard
fun
getBounds
(
)
:
Rectangle
get
Glyph
Bounds
Link copied to clipboard
fun
getGlyphBounds
(
n
:
Int
)
:
Rectangle
get
Glyph
Metrics
Link copied to clipboard
open
override
fun
getGlyphMetrics
(
reader
:
WStringReader
?
,
codePoint
:
Int
)
:
GlyphMetrics
get
Kerning
Link copied to clipboard
open
override
fun
getKerning
(
leftCodePoint
:
Int
,
rightCodePoint
:
Int
)
:
Double
get
Line
Infos
Link copied to clipboard
fun
getLineInfos
(
)
:
List
<
Text2TextRendererActions.LineInfo
>
mreset
Link copied to clipboard
fun
mreset
(
)
new
Line
Link copied to clipboard
open
fun
newLine
(
y
:
Double
,
end
:
Boolean
)
put
Link copied to clipboard
open
override
fun
put
(
reader
:
WStringReader
,
codePoint
:
Int
)
:
GlyphMetrics
read
Link copied to clipboard
fun
read
(
n
:
Int
,
out
:
Text2TextRendererActions.Entry
=
Entry()
)
:
Text2TextRendererActions.Entry
read
All
Link copied to clipboard
fun
readAll
(
)
:
List
<
Text2TextRendererActions.Entry
>
reset
Link copied to clipboard
open
fun
reset
(
)
set
Font
Link copied to clipboard
open
override
fun
setFont
(
font
:
Font
,
size
:
Double
)