java - Create conveniently Bold version of Font -


does know whether there convenient way, method perhaps take font instance , return bold version?

thank help.

use font.derivefont()

font original = getoriginalfont(); font bold = original.derivefont(font.bold); 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

java - where to store the user credentials in an enterprise application(EAI)? -

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -