mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 14:19:19 +01:00
oops
This commit is contained in:
@@ -1055,8 +1055,8 @@ public class PdeBase extends Frame implements ActionListener {
|
||||
String fontname = st.nextToken();
|
||||
String fontstyle = st.nextToken();
|
||||
return new Font(fontname,
|
||||
(fonstyle.indexOf("bold") ? Font.BOLD : 0) |
|
||||
(fonstyle.indexOf("italic") ? Font.ITALIC : 0),
|
||||
((fontstyle.indexOf("bold") != -1) ? Font.BOLD : 0) |
|
||||
((fontstyle.indexOf("italic") != -1) ? Font.ITALIC : 0),
|
||||
Integer.parseInt(st.nextToken()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user