TextRenderer extends AbstractRenderer implements ILeafElementRenderer { static boolean codePointIsOfSpecialScript(int codePoint) { Character.UnicodeScript glyphScript = Character.UnicodeScript.of(codePoint); return Character.UnicodeScript.THAI == glyphScript || Character.UnicodeScript.KHMER == glyphScript || Character.UnicodeScript.LAO == glyphScript || Character.UnicodeScript.MYANMAR == glyphScript; } TextRenderer(Text textElement);  TextRenderer(Text textElement, String text); protected  TextRenderer(TextRenderer other); @Override LayoutResult layout(LayoutContext layoutContext); void applyOtf(); @Override void draw(DrawContext drawContext); void trimFirst(); @Override float getAscent(); @Override float getDescent(); float getYLine(); void moveYLineTo(float y); void setText(String text); @Deprecated void setText(GlyphLine text, int leftPos, int rightPos); void setText(GlyphLine text, PdfFont font); GlyphLine getText(); int length(); @Override String toString(); int charAt(int pos); float getTabAnchorCharacterPosition(); @Override IRenderer getNextRenderer(); static float[] calculateAscenderDescender(PdfFont font); static float[] calculateAscenderDescender(PdfFont font, RenderingMode mode); @Override MinMaxWidth getMinMaxWidth();  }
@Test public void myanmarCharacterBelongsToSpecificScripts() { Assert.assertTrue(TextRenderer.codePointIsOfSpecialScript(4162)); }
@Test public void thaiCharacterBelongsToSpecificScripts() { Assert.assertTrue(TextRenderer.codePointIsOfSpecialScript(3609)); }
@Test public void laoCharacterBelongsToSpecificScripts() { Assert.assertTrue(TextRenderer.codePointIsOfSpecialScript(3784)); }
@Test public void khmerCharacterBelongsToSpecificScripts() { Assert.assertTrue(TextRenderer.codePointIsOfSpecialScript(6025)); }
@Test public void cyrillicCharacterDoesntBelongToSpecificScripts() { Assert.assertFalse(TextRenderer.codePointIsOfSpecialScript(1091)); }