Sprache

FontsContract.BuildTypeface Methode

Definition

Erstellen einer Schriftart aus einem Array von FontInfo

        Results that are marked as not ready will be skipped.
[Android.Runtime.Register("buildTypeface", "(Landroid/content/Context;Landroid/os/CancellationSignal;[Landroid/provider/FontsContract$FontInfo;)Landroid/graphics/Typeface;", "", ApiSince=26)]
public static Android.Graphics.Typeface? BuildTypeface(Android.Content.Context context, Android.OS.CancellationSignal? cancellationSignal, Android.Provider.FontsContract.FontInfo[] fonts);
[<Android.Runtime.Register("buildTypeface", "(Landroid/content/Context;Landroid/os/CancellationSignal;[Landroid/provider/FontsContract$FontInfo;)Landroid/graphics/Typeface;", "", ApiSince=26)>]
static member BuildTypeface : Android.Content.Context * Android.OS.CancellationSignal * Android.Provider.FontsContract.FontInfo[] -> Android.Graphics.Typeface

Parameter

context
Context

A Context that will be used to fetch the font contents.

cancellationSignal
CancellationSignal

Ein Signal, um den Vorgang in Bearbeitung abzubrechen, oder null, wenn keine. Wenn der Vorgang abgebrochen wird, android.os.OperationCanceledException wird der Vorgang ausgelöst.

fonts
FontsContract.FontInfo[]

Ein Array, das FontInfo zum Erstellen einer Schriftart verwendet werden soll.

Gibt zurück

Ein Typeface-Objekt. Gibt NULL zurück, wenn die Erstellung von Schriftarten fehlschlägt.

Attribute

Hinweise

Java Dokumentation für android.provider.FontsContract.buildTypeface(android.content.Context, android.os.CancellationSignal, android.provider.FontInfo[]).

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: