scaleFontToFit

fun scaleFontToFit(bounds: Rectangle, font: MkFont, elabel: EnhancedLabel, pf: PreferredSize, fontSize: Double, shrink: Boolean, expand: Boolean): MkFont