Package de.xima.fc.common.text.shape
Interface ITextShaper
-
- All Superinterfaces:
AutoCloseable
public interface ITextShaper extends AutoCloseable
Interface for shaping text. Text shaping is the process of converting a sequence of characters into a sequence of glyphs, together with the geometry (mainly width) of that glyph sequence.- Since:
- 8.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IShapedText
shape(List<TextRun> runs, double fontSize)
Shapes a piece of text runs.-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
shape
IShapedText shape(List<TextRun> runs, double fontSize)
Shapes a piece of text runs. Each run must be in the same script and direction.- Parameters:
runs
- The text runs to shape.fontSize
- The font size.- Returns:
- The shaped text.
-
-