Läs på engelska

Dela via


Typeface.CreateFromFile Method

Definition

Overloads

CreateFromFile(File)

Create a new typeface from the specified font file.

CreateFromFile(String)

Create a new typeface from the specified font file.

CreateFromFile(File)

Create a new typeface from the specified font file.

C#
[Android.Runtime.Register("createFromFile", "(Ljava/io/File;)Landroid/graphics/Typeface;", "")]
public static Android.Graphics.Typeface? CreateFromFile(Java.IO.File? file);

Parameters

file
File

The path to the font data.

Returns

The new typeface.

Attributes

Remarks

Create a new typeface from the specified font file.

Java documentation for android.graphics.Typeface.createFromFile(java.io.File).

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

.NET for Android .NET for Android API 35 och .NET for Android .NET for Android API 34
Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35

CreateFromFile(String)

Create a new typeface from the specified font file.

C#
[Android.Runtime.Register("createFromFile", "(Ljava/lang/String;)Landroid/graphics/Typeface;", "")]
public static Android.Graphics.Typeface? CreateFromFile(string? path);

Parameters

path
String

The full path to the font data.

Returns

The new typeface.

Attributes

Remarks

Create a new typeface from the specified font file.

Java documentation for android.graphics.Typeface.createFromFile(java.lang.String).

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

.NET for Android .NET for Android API 35 och .NET for Android .NET for Android API 34
Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35