chore: improve card logo position

This commit is contained in:
2024-09-14 17:58:26 +08:00
parent 7998857853
commit 86581e7998
3 files changed
+27 -11

No files matched your search

@@ -30,8 +30,8 @@ class WeatherCommand : BaseCommand() {
private val canvasWidth = 800
private val canvasHeight = 600
private val font = Font("Serif", Font.ITALIC, 60).deriveFont(Font.BOLD)
private val locationFont = Font("Serif", Font.ITALIC, 50)
private val font = Font("Serif", Font.PLAIN, 60).deriveFont(Font.BOLD or Font.ITALIC)
private val locationFont = Font("Serif", Font.PLAIN, 50).deriveFont(Font.BOLD or Font.ITALIC)
private fun createWeatherCard(weather: Weather, geoResult: Geo.Location): String {
val emptyImage = BufferedImage(canvasWidth, canvasHeight, BufferedImage.TYPE_INT_RGB)