tn5250j/src/org/tn5250j Screen5250.java,1.53,1.54
"Kenneth J. Pouncey" <[email protected]> Sat, 26 Jun 2004 06:22:15 +0000
| Newsgroups | gmane.comp.java.tn5250j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18215
Modified Files:
Screen5250.java
Log Message:
If font from properties file does not exist select default font - Luc - LDC
Index: Screen5250.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/Screen5250.java,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -d -r1.53 -r1.54
*** Screen5250.java 26 Jun 2004 05:36:32 -0000 1.53
--- Screen5250.java 26 Jun 2004 06:22:11 -0000 1.54
***************
*** 196,200 ****
fullRepaint = true;
! if (!config.isPropertyExists("font")) {
font = new Font(GUIGraphicsUtils.getDefaultFont(),Font.PLAIN,14);
// font = new Font("Courier New",Font.PLAIN,14);
--- 196,210 ----
fullRepaint = true;
! // change by Luc - LDC If the font from the properties file does not exist
! // select the default font
! if (config.isPropertyExists("font"))
! {
! fontName = getStringProperty("font");
! if (GUIGraphicsUtils.isFontNameExists(fontName) == false)
! fontName = null;
! }
!
! // if (!config.isPropertyExists("font")) {
! if (fontName == null) {
font = new Font(GUIGraphicsUtils.getDefaultFont(),Font.PLAIN,14);
// font = new Font("Courier New",Font.PLAIN,14);
***************
*** 202,206 ****
}
else {
! font = new Font(getStringProperty("font"),Font.PLAIN,14);
}
--- 212,217 ----
}
else {
! //font = new Font(getStringProperty("font"),Font.PLAIN,14);
! font = new Font(fontName,Font.PLAIN,14);
}
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com