deriveFont(float size) Creates a new Font object by replicating the current Font object and applying a new > > size to it. deriveFont(int style, float size) Creates a new Font object by replicating this Font object and applying a new style and > size.
现在还有用awt来写么,我建议你去看下官方api
Reference: Java8 doc