• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet default font

 
Drew Lane
Ranch Hand
Posts: 296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I get the default font & size that is being used by my applet across various platforms and browsers?
I don't really care which font it's using as default, I just need to make a line bold using the same font & size so that it looks consistant.
BTW, this is an AWT applet.
Thanks!
Drew
 
Peter Gragert
Ranch Hand
Posts: 424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use something like this:
Font myHelvetica = new Font( "Serif" , Font.BOLD , 14);
roundedTaylor.setFont( myHelvetica ); // an object with a setFont method.
It means: look at the Font Api !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic