/** * sets the font to be bold or not */ public void setBold(boolean bold) { if (bold) font.setBoldWeight(BOLDWEIGHT_BOLD); else font.setBoldWeight(BOLDWEIGHT_NORMAL); }
/** * creates a Font record with the following magic values: <P> * fontheight = 0xc8<P> * attributes = 0x0<P> * color palette index = 0x7fff<P> * bold weight = 0x190<P> * Font Name Length = 5 <P> * Font Name = Arial <P> */ private static FontRecord createFont() { FontRecord retval = new FontRecord(); retval.setFontHeight(( short ) 0xc8); retval.setAttributes(( short ) 0x0); retval.setColorPaletteIndex(( short ) 0x7fff); retval.setBoldWeight(( short ) 0x190); retval.setFontName("Arial"); return retval; }
/** * set the boldness to use * @param boldweight * @see #BOLDWEIGHT_NORMAL * @see #BOLDWEIGHT_BOLD */ public void setBoldweight(short boldweight) { font.setBoldWeight(boldweight); }
/** * sets the font to be bold or not */ public void setBold(boolean bold) { if (bold) font.setBoldWeight(BOLDWEIGHT_BOLD); else font.setBoldWeight(BOLDWEIGHT_NORMAL); }
/** * set the boldness to use * @param boldweight * @see #BOLDWEIGHT_NORMAL * @see #BOLDWEIGHT_BOLD */ public void setBoldweight(short boldweight) { font.setBoldWeight(boldweight); }
/** * creates a Font record with the following magic values: <P> * fontheight = 0xc8<P> * attributes = 0x0<P> * color palette index = 0x7fff<P> * bold weight = 0x190<P> * Font Name Length = 5 <P> * Font Name = Arial <P> */ private static FontRecord createFont() { FontRecord retval = new FontRecord(); retval.setFontHeight(( short ) 0xc8); retval.setAttributes(( short ) 0x0); retval.setColorPaletteIndex(( short ) 0x7fff); retval.setBoldWeight(( short ) 0x190); retval.setFontName("Arial"); return retval; }
/** * creates a Font record with the following magic values: <P> * fontheight = 0xc8<P> * attributes = 0x0<P> * color palette index = 0x7fff<P> * bold weight = 0x190<P> * Font Name Length = 5 <P> * Font Name = Arial <P> */ private static FontRecord createFont() { FontRecord retval = new FontRecord(); retval.setFontHeight(( short ) 0xc8); retval.setAttributes(( short ) 0x0); retval.setColorPaletteIndex(( short ) 0x7fff); retval.setBoldWeight(( short ) 0x190); retval.setFontName("Arial"); return retval; }
/** * creates a Font record with the following magic values: <P> * fontheight = 0xc8<P> * attributes = 0x0<P> * color palette index = 0x7fff<P> * bold weight = 0x190<P> * Font Name Length = 5 <P> * Font Name = Arial <P> */ private static FontRecord createFont() { FontRecord retval = new FontRecord(); retval.setFontHeight(( short ) 0xc8); retval.setAttributes(( short ) 0x0); retval.setColorPaletteIndex(( short ) 0x7fff); retval.setBoldWeight(( short ) 0x190); retval.setFontName("Arial"); return retval; }