in skiko/src/commonMain/kotlin/org/jetbrains/skia/FontMetrics.kt [117:135]
override fun equals(other: Any?): Boolean {
if (other === this) return true
if (other !is FontMetrics) return false
if (top.compareTo(other.top) != 0) return false
if (ascent.compareTo(other.ascent) != 0) return false
if (descent.compareTo(other.descent) != 0) return false
if (bottom.compareTo(other.bottom) != 0) return false
if (leading.compareTo(other.leading) != 0) return false
if (avgCharWidth.compareTo(other.avgCharWidth) != 0) return false
if (maxCharWidth.compareTo(other.maxCharWidth) != 0) return false
if (xMin.compareTo(other.xMin) != 0) return false
if (xMax.compareTo(other.xMax) != 0) return false
if (xHeight.compareTo(other.xHeight) != 0) return false
if (capHeight.compareTo(other.capHeight) != 0) return false
if (if (this.underlineThickness == null) other.underlineThickness != null else this.underlineThickness != other.underlineThickness) return false
if (if (this.underlinePosition == null) other.underlinePosition != null else this.underlinePosition != other.underlinePosition) return false
if (if (this.strikeoutThickness == null) other.strikeoutThickness != null else this.strikeoutThickness != other.strikeoutThickness) return false
return !if (this.strikeoutPosition == null) other.strikeoutPosition != null else this.strikeoutPosition != other.strikeoutPosition
}