public final class

SunLayoutEngine

extends Object
implements GlyphLayout.LayoutEngine GlyphLayout.LayoutEngineFactory
java.lang.Object
   ↳ sun.font.SunLayoutEngine

Summary

Public Methods
GlyphLayout.LayoutEngine getEngine(Font2D font, int script, int lang)
Given a font, script, and language, determine a layout engine to use.
GlyphLayout.LayoutEngine getEngine(GlyphLayout.LayoutEngineKey key)
Given a key, determine a layout engine to use.
static GlyphLayout.LayoutEngineFactory instance()
void layout(FontStrikeDesc desc, float[] mat, int gmask, int baseIndex, TextRecord tr, int typo_flags, Point2D.Float pt, GlyphLayout.GVData data)
Given a strike descriptor, text, rtl flag, and starting point, append information about glyphs, positions, and character indices to the glyphvector data, and advance the point.
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.font.GlyphLayout.LayoutEngine
From interface sun.font.GlyphLayout.LayoutEngineFactory

Public Methods

public GlyphLayout.LayoutEngine getEngine (Font2D font, int script, int lang)

Given a font, script, and language, determine a layout engine to use.

public GlyphLayout.LayoutEngine getEngine (GlyphLayout.LayoutEngineKey key)

Given a key, determine a layout engine to use.

public static GlyphLayout.LayoutEngineFactory instance ()

public void layout (FontStrikeDesc desc, float[] mat, int gmask, int baseIndex, TextRecord tr, int typo_flags, Point2D.Float pt, GlyphLayout.GVData data)

Given a strike descriptor, text, rtl flag, and starting point, append information about glyphs, positions, and character indices to the glyphvector data, and advance the point. If the GVData does not have room for the glyphs, throws an IndexOutOfBoundsException and leave pt and the gvdata unchanged.