jdk/src/share/classes/sun/font/Font2D.java
changeset 547 ff9562f275ab
parent 2 90ce3da70b43
child 715 f16baef3a20e
equal deleted inserted replaced
546:06253731a445 547:ff9562f275ab
   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(),