comparison src/name/blackcap/clipman/CoerceDialog.kt @ 58:88056f373a94

Set app name, deal with some deprecation.
author David Barts <n5jrn@me.com>
date Sat, 26 Mar 2022 23:45:34 -0700
parents 22725d4d7849
children
comparison
equal deleted inserted replaced
57:c6cccbe2f393 58:88056f373a94
207 } 207 }
208 return found 208 return found
209 } 209 }
210 210
211 private fun normalizeFont(font: String): String { 211 private fun normalizeFont(font: String): String {
212 val lcFont = font.toLowerCase() 212 val lcFont = font.lowercase()
213 return when (lcFont) { 213 return when (lcFont) {
214 in setOf("monospace", "serif", "sans-serif") -> lcFont 214 in setOf("monospace", "serif", "sans-serif") -> lcFont
215 "monospaced" -> "monospace" 215 "monospaced" -> "monospace"
216 "sansserif" -> "sans-serif" 216 "sansserif" -> "sans-serif"
217 else -> font 217 else -> font