``` val fontSize = if (fontSize < 0) Math.min(w...
# announcements
d
Copy code
val fontSize = if (fontSize < 0) Math.min(width, height) / 2 else fontSize
val fontSize = if (fontSize < 0) ( Math.min(width, height) / 2 ) else ( fontSize )
val fontSize = fontSize < 0 ? Math.min(width, height) / 2 : fontSize
val fontSize = (fontSize < 0) then { Math.min(width, height) / 2 } otherwise { fontSize }