equal
deleted
inserted
replaced
239 AffineTransform glyphTx = (AffineTransform)devTx.clone(); |
239 AffineTransform glyphTx = (AffineTransform)devTx.clone(); |
240 glyphTx.scale(ptSize, ptSize); |
240 glyphTx.scale(ptSize, ptSize); |
241 if (font.isTransformed()) { |
241 if (font.isTransformed()) { |
242 glyphTx.concatenate(font.getTransform()); |
242 glyphTx.concatenate(font.getTransform()); |
243 } |
243 } |
|
244 if (glyphTx.getTranslateX() != 0 || glyphTx.getTranslateY() != 0) { |
|
245 glyphTx.setTransform(glyphTx.getScaleX(), |
|
246 glyphTx.getShearY(), |
|
247 glyphTx.getShearX(), |
|
248 glyphTx.getScaleY(), |
|
249 0.0, 0.0); |
|
250 } |
244 FontStrikeDesc desc = new FontStrikeDesc(devTx, glyphTx, |
251 FontStrikeDesc desc = new FontStrikeDesc(devTx, glyphTx, |
245 font.getStyle(), aa, fm); |
252 font.getStyle(), aa, fm); |
246 return getStrike(desc, false); |
253 return getStrike(desc, false); |
247 } |
254 } |
248 |
255 |
264 AffineTransform at = frc.getTransform(); |
271 AffineTransform at = frc.getTransform(); |
265 double ptSize = font.getSize2D(); |
272 double ptSize = font.getSize2D(); |
266 at.scale(ptSize, ptSize); |
273 at.scale(ptSize, ptSize); |
267 if (font.isTransformed()) { |
274 if (font.isTransformed()) { |
268 at.concatenate(font.getTransform()); |
275 at.concatenate(font.getTransform()); |
|
276 if (at.getTranslateX() != 0 || at.getTranslateY() != 0) { |
|
277 at.setTransform(at.getScaleX(), |
|
278 at.getShearY(), |
|
279 at.getShearX(), |
|
280 at.getScaleY(), |
|
281 0.0, 0.0); |
|
282 } |
269 } |
283 } |
270 int aa = FontStrikeDesc.getAAHintIntVal(this, font, frc); |
284 int aa = FontStrikeDesc.getAAHintIntVal(this, font, frc); |
271 int fm = FontStrikeDesc.getFMHintIntVal(frc.getFractionalMetricsHint()); |
285 int fm = FontStrikeDesc.getFMHintIntVal(frc.getFractionalMetricsHint()); |
272 FontStrikeDesc desc = new FontStrikeDesc(frc.getTransform(), |
286 FontStrikeDesc desc = new FontStrikeDesc(frc.getTransform(), |
273 at, font.getStyle(), |
287 at, font.getStyle(), |