Language

FontFamilyResultStatus Enum

Definition

public enum FontFamilyResultStatus
type FontFamilyResultStatus = 
Inheritance
FontFamilyResultStatus

Fields

Name Value Description
Ok 0

Constant represents that the font was successfully retrieved. Note that when this value is set and getFonts() returns an empty array, it means there were no fonts matching the given query.

Android reference for android.provider.FontsContract.FontFamilyResult.STATUS_OK.

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.

WrongCertificates 1

Constant represents that the given certificate was not matched with the provider's signature. getFonts() returns null if this status was set.

Android reference for android.provider.FontsContract.FontFamilyResult.STATUS_WRONG_CERTIFICATES.

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.

UnexpectedDataProvided 2

Constant represents that the provider returns unexpected data. getFonts() returns null if this status was set. For example, this value is set when the font provider gives invalid format of variation settings.

Android reference for android.provider.FontsContract.FontFamilyResult.STATUS_UNEXPECTED_DATA_PROVIDED.

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.

Rejected 3

Constant represents that the fetching font data was rejected by system. This happens if the passed context is restricted.

Android reference for android.provider.FontsContract.FontFamilyResult.STATUS_REJECTED.

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.

Remarks

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