Functions
drawTextClipped
- drawTextClipped(renderer: Renderer, text: string, position: Vec2Like, bounds: AABB, font: Font): void
-
Parameters
-
renderer: Renderer
-
text: string
-
position: Vec2Like
-
bounds: AABB
-
font: Font
Returns void
getTextLinesHeight
- getTextLinesHeight(text: string, width: number, font: Font): number
-
Parameters
-
text: string
-
width: number
-
font: Font
Returns number
高さ。
typeWrite
- typeWrite(text: string, font: Font, lineHeight: number, cursor: Vec2Like, rightBorder: number | null, bottomBorder: number | null, callback?: undefined | ((curPos: Vec2Like, glyph: Glyph) => void)): Vec2Like
-
Parameters
-
text: string
-
font: Font
-
lineHeight: number
-
cursor: Vec2Like
-
rightBorder: number | null
-
bottomBorder: number | null
-
Optional callback: undefined | ((curPos: Vec2Like, glyph: Glyph) => void)
Returns Vec2Like
文字列描画後のカーソル位置。
文字列を領域内に描画する。