Typeface.Builder Constructors

Definition

Overloads

Typeface.Builder(File)

Constructs a builder with a file path.

Typeface.Builder(FileDescriptor)

Constructs a builder with a file descriptor.

Typeface.Builder(String)

Constructs a builder with a file path.

Typeface.Builder(AssetManager, String)

Constructs a builder from an asset manager and a file path in an asset directory.

Typeface.Builder(File)

Constructs a builder with a file path.

[Android.Runtime.Register(".ctor", "(Ljava/io/File;)V", "", ApiSince=26)]
public Builder (Java.IO.File path);
[<Android.Runtime.Register(".ctor", "(Ljava/io/File;)V", "", ApiSince=26)>]
new Android.Graphics.Typeface.Builder : Java.IO.File -> Android.Graphics.Typeface.Builder

Parameters

path
File

The file object refers to the font file.

Attributes

Remarks

Constructs a builder with a file path.

Java documentation for android.graphics.Typeface.Builder.Typeface$Builder(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

Typeface.Builder(FileDescriptor)

Constructs a builder with a file descriptor.

[Android.Runtime.Register(".ctor", "(Ljava/io/FileDescriptor;)V", "", ApiSince=26)]
public Builder (Java.IO.FileDescriptor fd);
[<Android.Runtime.Register(".ctor", "(Ljava/io/FileDescriptor;)V", "", ApiSince=26)>]
new Android.Graphics.Typeface.Builder : Java.IO.FileDescriptor -> Android.Graphics.Typeface.Builder

Parameters

fd
FileDescriptor

The file descriptor. The passed fd must be mmap-able.

Attributes

Remarks

Constructs a builder with a file descriptor.

Caller is responsible for closing the passed file descriptor after #build is called.

Java documentation for android.graphics.Typeface.Builder.Typeface$Builder(java.io.FileDescriptor).

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

Typeface.Builder(String)

Constructs a builder with a file path.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=26)]
public Builder (string path);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=26)>]
new Android.Graphics.Typeface.Builder : string -> Android.Graphics.Typeface.Builder

Parameters

path
String

The full path to the font file.

Attributes

Remarks

Constructs a builder with a file path.

Java documentation for android.graphics.Typeface.Builder.Typeface$Builder(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

Typeface.Builder(AssetManager, String)

Constructs a builder from an asset manager and a file path in an asset directory.

[Android.Runtime.Register(".ctor", "(Landroid/content/res/AssetManager;Ljava/lang/String;)V", "", ApiSince=26)]
public Builder (Android.Content.Res.AssetManager assetManager, string path);
[<Android.Runtime.Register(".ctor", "(Landroid/content/res/AssetManager;Ljava/lang/String;)V", "", ApiSince=26)>]
new Android.Graphics.Typeface.Builder : Android.Content.Res.AssetManager * string -> Android.Graphics.Typeface.Builder

Parameters

assetManager
AssetManager

The application's asset manager

path
String

The file name of the font data in the asset directory

Attributes

Remarks

Constructs a builder from an asset manager and a file path in an asset directory.

Java documentation for android.graphics.Typeface.Builder.Typeface$Builder(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