File tree Expand file tree Collapse file tree
compose/ui/ui-text/src/skikoMain/kotlin/androidx/compose/ui/text/platform Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -755,26 +755,13 @@ private fun SpanStyle.copyWithDefaultFontSize(drawStyle: DrawStyle? = null): Spa
755755 )
756756}
757757
758- // TODO: Remove from public
759- @InternalTextApi
760- fun FontStyle.toSkFontStyle (): SkFontStyle {
758+ internal fun FontStyle.toSkFontStyle (): SkFontStyle {
761759 return when (this ) {
762760 FontStyle .Italic -> SkFontStyle .ITALIC
763761 else -> SkFontStyle .NORMAL
764762 }
765763}
766764
767- // TODO: Remove from public
768- @Suppress(" unused" )
769- @Deprecated(
770- message = " This method was not intended to be public" ,
771- level = DeprecationLevel .HIDDEN
772- )
773- @InternalTextApi
774- fun TextDecoration.toSkDecorationStyle (color : Color ): SkDecorationStyle {
775- return toSkDecorationStyle(color, null )
776- }
777-
778765private fun TextDecoration.toSkDecorationStyle (
779766 color : Color ,
780767 textDecorationLineStyle : TextDecorationLineStyle ?
@@ -808,9 +795,7 @@ private fun TextDecorationLineStyle.toSkDecorationLineStyle(): SkDecorationLineS
808795 }
809796}
810797
811- // TODO: Remove from public
812- @InternalTextApi
813- fun PlaceholderVerticalAlign.toSkPlaceholderAlignment (): PlaceholderAlignment {
798+ private fun PlaceholderVerticalAlign.toSkPlaceholderAlignment (): PlaceholderAlignment {
814799 return when (this ) {
815800 PlaceholderVerticalAlign .AboveBaseline -> PlaceholderAlignment .ABOVE_BASELINE
816801 PlaceholderVerticalAlign .TextTop -> PlaceholderAlignment .TOP
You can’t perform that action at this time.
0 commit comments