deriveFont
specifys the font style rather than the size so the loaded font retains its default size of 0
Font font = tempFont.deriveFont(48);
You want the overloaded version of the method
Font font = tempFont.deriveFont(48f);
^