125 // positioning information and required float.
126 advX += (cacheEntry.getXAdvance() - cacheEntry.getXOff());
127 advY += (cacheEntry.getYAdvance() - cacheEntry.getYOff());
128 }
129 /*
130 * Offset of the current glyph is the difference to the last
131 * glyph and this one
132 */
133 eltList.setXOff(eltIndex, (posX - oldPosX));
134 eltList.setYOff(eltIndex, (posY - oldPosY));
135
136 oldPosX = posX;
137 oldPosY = posY;
138
139 } else {
140 eltList.setCharCnt(eltIndex, eltList.getCharCnt(eltIndex) + 1);
141 }
142 }
143
144 int maskFormat = containsLCDGlyphs ? XRUtils.PictStandardARGB32 : XRUtils.PictStandardA8;
145 maskBuffer.compositeText(x11sd.picture, 0, maskFormat, eltList);
146
147 eltList.clear();
148 } finally {
149 SunToolkit.awtUnlock();
150 }
151 }
152 }
|
125 // positioning information and required float.
126 advX += (cacheEntry.getXAdvance() - cacheEntry.getXOff());
127 advY += (cacheEntry.getYAdvance() - cacheEntry.getYOff());
128 }
129 /*
130 * Offset of the current glyph is the difference to the last
131 * glyph and this one
132 */
133 eltList.setXOff(eltIndex, (posX - oldPosX));
134 eltList.setYOff(eltIndex, (posY - oldPosY));
135
136 oldPosX = posX;
137 oldPosY = posY;
138
139 } else {
140 eltList.setCharCnt(eltIndex, eltList.getCharCnt(eltIndex) + 1);
141 }
142 }
143
144 int maskFormat = containsLCDGlyphs ? XRUtils.PictStandardARGB32 : XRUtils.PictStandardA8;
145 maskBuffer.compositeText(x11sd, (int) gl.getX(), (int) gl.getY(), 0, maskFormat, eltList);
146
147 eltList.clear();
148 } finally {
149 SunToolkit.awtUnlock();
150 }
151 }
152 }
|