Partager via


IFontScaleConverter.IsNonLinearFontScalingActive(Single) Method

Definition

Returns true if non-linear font scaling curves would be in effect for the given scale, false if the scaling would follow a linear curve or for no scaling.

[Android.Runtime.Register("isNonLinearFontScalingActive", "(F)Z", "", ApiSince=35)]
public static bool IsNonLinearFontScalingActive (float fontScale);
[<Android.Runtime.Register("isNonLinearFontScalingActive", "(F)Z", "", ApiSince=35)>]
static member IsNonLinearFontScalingActive : single -> bool

Parameters

fontScale
Single

Returns

Attributes

Remarks

Returns true if non-linear font scaling curves would be in effect for the given scale, false if the scaling would follow a linear curve or for no scaling.

Example usage: isNonLinearFontScalingActive(getResources().getConfiguration().fontScale)

Java documentation for android.content.res.FontScaleConverter.isNonLinearFontScalingActive(float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to