All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmMain.earth.worldwind.render.Font.kt Maven / Gradle / Ivy

Go to download

The WorldWind Kotlin SDK (WWK) includes the library, examples and tutorials for building multiplatform 3D virtual globe applications for Android, Web and Java.

The newest version!
package earth.worldwind.render

actual open class Font(var font: java.awt.Font) {
    actual constructor() : this("Arial", FontWeight.BOLD, 14)
    actual constructor(family: String, weight: FontWeight, size: Int) : this(java.awt.Font.decode("$family-$weight-$size"))

    actual fun copy(font: Font) { this.font = font.font }

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false
        other as Font
        if (font != other.font) return false
        return true
    }

    override fun hashCode() = font.hashCode()

    override fun toString() = font.toString()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy