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.

[Android.Runtime.Register("createFromFile", "(Ljava/io/File;)Landroid/graphics/Typeface;", "")]
public static Android.Graphics.Typeface? CreateFromFile (Java.IO.File? file);
[<Android.Runtime.Register("createFromFile", "(Ljava/io/File;)Landroid/graphics/Typeface;", "")>]
static member CreateFromFile : Java.IO.File -> Android.Graphics.Typeface

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

CreateFromFile(String)

Create a new typeface from the specified font file.

[Android.Runtime.Register("createFromFile", "(Ljava/lang/String;)Landroid/graphics/Typeface;", "")]
public static Android.Graphics.Typeface? CreateFromFile (string? path);
[<Android.Runtime.Register("createFromFile", "(Ljava/lang/String;)Landroid/graphics/Typeface;", "")>]
static member CreateFromFile : string -> Android.Graphics.Typeface

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