Skip to content

Commit 0668e32

Browse files
committed
fix of Font. deriveFont(float)
1 parent 7992349 commit 0668e32

File tree

1 file changed

+1
-1
lines changed
  • sources/net.sf.j2s.java.core/src/java/awt

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.core/src/java/awt/Font.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1977,7 +1977,7 @@ public Font deriveFont(float sizePts) {
19771977
return f;
19781978
}
19791979
AttributeValues newValues = getAttributeValues().clone();
1980-
newValues.setSize(size);
1980+
newValues.setSize(sizePts);
19811981
return new Font(newValues, null, -1, createdFont, font2DHandle);
19821982
}
19831983

0 commit comments

Comments
 (0)