public class RMTextShapeUtils
extends java.lang.Object
Constructor and Description |
---|
RMTextShapeUtils() |
Modifier and Type | Method and Description |
---|---|
static RMShape |
getTextCharsShape(RMTextShape aText)
Returns a group shape with a text shape for each individual character in this text shape.
|
static RMPath |
getTextPath(RMTextShape aText)
Returns a path for all text chars.
|
static RMPolygonShape |
getTextPathShape(RMTextShape aText)
Returns an RMPolygon shape with the glyph path for the chars in this text.
|
static RMPath |
getTextRunPath(RMTextShape aText,
RMTextRun aRun)
Returns a path for given run.
|
static RMPolygonShape |
getTextRunPathShape(RMTextShape aText,
RMTextRun aRun)
Returns a polygon shape for the glyphs in a given text run.
|
static void |
scaleTextToFit(RMTextShape aText)
Scales font sizes of all text in an RMText shape to fit in bounds.
|
public static RMPath getTextPath(RMTextShape aText)
public static RMPath getTextRunPath(RMTextShape aText, RMTextRun aRun)
public static RMPolygonShape getTextPathShape(RMTextShape aText)
public static RMPolygonShape getTextRunPathShape(RMTextShape aText, RMTextRun aRun)
public static RMShape getTextCharsShape(RMTextShape aText)
public static void scaleTextToFit(RMTextShape aText)