Lines Matching defs:positions

77  * this means a glyph transform affects the positions of all
80 * bounds including the glyph transform, and the positions are as
81 * computed, and the advances are the deltas between the positions.
125 * the transformed glyph advances will affect the glyph positions.
141 private float[] positions; // only if not default advances
143 private int flags; // indicates whether positions, charIndices is interesting
184 public StandardGlyphVector(Font font, FontRenderContext frc, int[] glyphs, float[] positions,
186 initGlyphVector(font, frc, glyphs, positions, indices, flags);
210 positions[i] += delta;
214 positions[positions.length-2+j] += delta;
220 public void initGlyphVector(Font font, FontRenderContext frc, int[] glyphs, float[] positions,
226 this.positions = positions;
299 positions = null;
391 maxX = positions[positions.length - 2];
444 return new Point2D.Float(positions[ix], positions[ix + 1]);
451 positions[ix2] = (float)pos.getX();
452 positions[ix2 + 1] = (float)pos.getY();
555 float x = positions[ix*2] + gs.dx - adl.ascentX;
556 float y = positions[ix*2+1] + gs.dy - adl.ascentY;
659 if ((other.positions == null) != (positions == null)) {
660 if (positions == null) {
667 if (positions != null) {
668 for (int i = 0; i < positions.length; ++i) {
669 if (positions[i] != other.positions[i]) {
721 // positions, gti are mutable so we have to clone them
729 if (positions != null) {
730 result.positions = (float[])positions.clone();
750 * Set a multiple glyph positions at one time. GlyphVector only
761 positions[i] = srcPositions[p];
769 * Set all the glyph positions, including the 'after last glyph' position.
778 positions = (float[])srcPositions.clone();
785 * This is a convenience overload that gets all the glyph positions, which
853 float x = positions[i*2];
854 float y = positions[i*2+1];
900 // used by glyphlist to determine if it needs to allocate/size positions array
901 // gti always uses positions because the gtx might have translation. We also
902 // need positions if the rendering dtx is different from the frctx.
919 * passing the devTX, to see if it should provide us a positions array to fill.
922 * Then it calls setupGlyphImages. If we need positions, we make sure we have our
923 * default positions based on the frctx first. Then we set the devTX, and use
924 * strikes based on it to generate the images. Finally, we fill in the positions
927 * initialized the positions and devTX.
929 Object setupGlyphImages(long[] images, float[] positions, double[] devTX) {
930 initPositions(); // FIRST ensure we have positions based on our frctx
934 return gti.setupGlyphImages(images, positions, dtx);
940 if (positions != null) {
942 System.arraycopy(this.positions, 0, positions, 0, glyphs.length * 2);
944 dtx.transform(this.positions, 0, positions, 0, glyphs.length);
1057 this.positions = gv.getGlyphPositions(0, nGlyphs + 1, null);
1153 * @param result an array to hold the x,y positions
1165 result[i] = positions[p];
1174 return getGlyphStrike(ix).getGlyphOutlineBounds(glyphs[ix], positions[ix*2], positions[ix*2+1]);
1186 float px = x + positions[n];
1187 float py = y + positions[n+1];
1196 initPositions(); // FIRST ensure we have positions based on our frctx
1216 pt.x = x + positions[n++];
1217 pt.y = y + positions[n++];
1292 * Ensure that the positions array exists and holds position data.
1293 * If the array is null, this allocates it and sets default positions.
1296 if (positions == null) {
1299 positions = new float[glyphs.length * 2 + 2];
1312 positions[0] = pt.x;
1313 positions[1] = pt.y;
1325 positions[n] = pt.x;
1326 positions[n+1] = pt.y;
1591 Object setupGlyphImages(long[] images, float[] positions, AffineTransform tx) {
1600 gs.getGlyphPosition(glyphID, i*2, sgv.positions, positions);
1602 tx.transform(positions, 0, positions, 0, len);
1614 pt.x = x + sgv.positions[n++] + gs.dx;
1615 pt.y = y + sgv.positions[n++] + gs.dy;
1773 void getGlyphPosition(int glyphID, int ix, float[] positions, float[] result) {
1774 result[ix] = positions[ix] + dx;
1776 result[ix] = positions[ix] + dy;
1851 if (positions != null) {
1852 buf.append(", positions: (");
1853 buf.append(positions.length);
1855 for (int i = 0; i < positions.length; i += 2) {
1859 buf.append(positions[i]);
1861 buf.append(positions[i+1]);