| Constructor and Description |
|---|
TextLine(int start,
int length,
TextRun[] runs,
float width,
float ascent,
float descent,
float leading) |
| Modifier and Type | Method and Description |
|---|---|
RectBounds |
getBounds()
Returns metrics information about the line as follow:
bounds().getWidth() - the width of the line.
|
float |
getLeading() |
float |
getLeftSideBearing()
Returns the left side bearing of the line (negative).
|
int |
getLength()
Returns the line length in character.
|
float |
getRightSideBearing()
Returns the right side bearing of the line (positive).
|
TextRun[] |
getRuns()
Returns the list of GlyphList in the line.
|
int |
getStart()
Returns the line start offset.
|
void |
setAlignment(float x) |
void |
setSideBearings(float lsb,
float rsb) |
void |
setWidth(float width) |
public TextLine(int start,
int length,
TextRun[] runs,
float width,
float ascent,
float descent,
float leading)
public RectBounds getBounds()
TextLinepublic float getLeading()
public TextRun[] getRuns()
TextLinepublic int getStart()
TextLinepublic int getLength()
TextLinepublic void setSideBearings(float lsb,
float rsb)
public float getLeftSideBearing()
TextLinegetLeftSideBearing in interface TextLinepublic float getRightSideBearing()
TextLinegetRightSideBearing in interface TextLinepublic void setAlignment(float x)
public void setWidth(float width)
Copyright © 2025. All rights reserved.