Posso fare una cosa del genere?

codice:
Font cFont = new Font(charOfFont, 
if(decOfFont1.substring(0,1) != "no"){
Font.decOfFont1
},
if(decOfFont2.substring(0,1) != "no"){
Font.decOfFont2
},
if(decOfFont3.substring(0,1) != "no"){
Font.decOfFont3
}, sizeOfFont);