Typeface.CreateFromAsset(AssetManager, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.