getTextSize

@FloatRange(from = 1.0)
abstract fun getTextSize(@NonNull annotationTool: AnnotationTool): Float

Gets last configured text size from preferences.

Return

Last configured text size from preferences or default size if not available.

Parameters

annotationTool

Annotation tool for which we need the preferences.


@FloatRange(from = 1.0)
abstract fun getTextSize(@NonNull annotationTool: AnnotationTool, @NonNull toolVariant: AnnotationToolVariant): Float

Gets last configured text size from preferences.

Return

Last configured text size from preferences or default size if not available.

Parameters

annotationTool

Annotation tool for which we need the preferences.

toolVariant

Variant of the annotation tool.