Share via


Typeface.CreateFromAsset(AssetManager, String) Method

Definition

Create a new typeface from the specified font data.

[Android.Runtime.Register("createFromAsset", "(Landroid/content/res/AssetManager;Ljava/lang/String;)Landroid/graphics/Typeface;", "")]
public static Android.Graphics.Typeface? CreateFromAsset (Android.Content.Res.AssetManager? mgr, string? path);
[<Android.Runtime.Register("createFromAsset", "(Landroid/content/res/AssetManager;Ljava/lang/String;)Landroid/graphics/Typeface;", "")>]
static member CreateFromAsset : Android.Content.Res.AssetManager * string -> Android.Graphics.Typeface

Parameters

mgr
AssetManager

The application's asset manager

path
String

The file name of the font data in the assets directory

Returns

The new typeface.

Attributes

Remarks

Create a new typeface from the specified font data.

Java documentation for android.graphics.Typeface.createFromAsset(android.content.res.AssetManager, 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