Freigeben über


Font.Builder Constructors

Definition

Overloads

Font.Builder(Font)

Constructs a builder from existing Font instance.

Font.Builder(ParcelFileDescriptor)

Constructs a builder with a file descriptor.

Font.Builder(File)

Constructs a builder with a file path.

Font.Builder(ByteBuffer)

Constructs a builder with a byte buffer.

Font.Builder(AssetManager, String)

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

Font.Builder(Resources, Int32)

Constructs a builder from resources.

Font.Builder(ParcelFileDescriptor, Int64, Int64)

Constructs a builder with a file descriptor.

Font.Builder(Font)

Constructs a builder from existing Font instance.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/fonts/Font;)V", "", ApiSince=31)]
public Builder (Android.Graphics.Fonts.Font font);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/fonts/Font;)V", "", ApiSince=31)>]
new Android.Graphics.Fonts.Font.Builder : Android.Graphics.Fonts.Font -> Android.Graphics.Fonts.Font.Builder

Parameters

font
Font

the font instance.

Attributes

Remarks

Constructs a builder from existing Font instance.

Java documentation for android.graphics.fonts.Font.Builder.Font$Builder(android.graphics.fonts.Font).

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

Font.Builder(ParcelFileDescriptor)

Constructs a builder with a file descriptor.

[Android.Runtime.Register(".ctor", "(Landroid/os/ParcelFileDescriptor;)V", "", ApiSince=29)]
public Builder (Android.OS.ParcelFileDescriptor fd);
[<Android.Runtime.Register(".ctor", "(Landroid/os/ParcelFileDescriptor;)V", "", ApiSince=29)>]
new Android.Graphics.Fonts.Font.Builder : Android.OS.ParcelFileDescriptor -> Android.Graphics.Fonts.Font.Builder

Parameters

fd
ParcelFileDescriptor

a file descriptor

Attributes

Remarks

Constructs a builder with a file descriptor.

Java documentation for android.graphics.fonts.Font.Builder.Font$Builder(android.os.ParcelFileDescriptor).

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

Font.Builder(File)

Constructs a builder with a file path.

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

Parameters

path
File

a file path to the font file

Attributes

Remarks

Constructs a builder with a file path.

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

Font.Builder(ByteBuffer)

Constructs a builder with a byte buffer.

[Android.Runtime.Register(".ctor", "(Ljava/nio/ByteBuffer;)V", "", ApiSince=29)]
public Builder (Java.Nio.ByteBuffer buffer);
[<Android.Runtime.Register(".ctor", "(Ljava/nio/ByteBuffer;)V", "", ApiSince=29)>]
new Android.Graphics.Fonts.Font.Builder : Java.Nio.ByteBuffer -> Android.Graphics.Fonts.Font.Builder

Parameters

buffer
ByteBuffer

a byte buffer of a font data

Attributes

Remarks

Constructs a builder with a byte buffer.

Note that only direct buffer can be used as the source of font data.

Java documentation for android.graphics.fonts.Font.Builder.Font$Builder(java.nio.ByteBuffer).

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

Font.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=29)]
public Builder (Android.Content.Res.AssetManager am, string path);
[<Android.Runtime.Register(".ctor", "(Landroid/content/res/AssetManager;Ljava/lang/String;)V", "", ApiSince=29)>]
new Android.Graphics.Fonts.Font.Builder : Android.Content.Res.AssetManager * string -> Android.Graphics.Fonts.Font.Builder

Parameters

am
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.fonts.Font.Builder.Font$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

Font.Builder(Resources, Int32)

Constructs a builder from resources.

[Android.Runtime.Register(".ctor", "(Landroid/content/res/Resources;I)V", "", ApiSince=29)]
public Builder (Android.Content.Res.Resources res, int resId);
[<Android.Runtime.Register(".ctor", "(Landroid/content/res/Resources;I)V", "", ApiSince=29)>]
new Android.Graphics.Fonts.Font.Builder : Android.Content.Res.Resources * int -> Android.Graphics.Fonts.Font.Builder

Parameters

res
Resources

the resource of this application.

resId
Int32

the resource ID of font file.

Attributes

Remarks

Constructs a builder from resources.

Resource ID must points the font file. XML font can not be used here.

Java documentation for android.graphics.fonts.Font.Builder.Font$Builder(android.content.res.Resources, int).

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

Font.Builder(ParcelFileDescriptor, Int64, Int64)

Constructs a builder with a file descriptor.

[Android.Runtime.Register(".ctor", "(Landroid/os/ParcelFileDescriptor;JJ)V", "", ApiSince=29)]
public Builder (Android.OS.ParcelFileDescriptor fd, long offset, long size);
[<Android.Runtime.Register(".ctor", "(Landroid/os/ParcelFileDescriptor;JJ)V", "", ApiSince=29)>]
new Android.Graphics.Fonts.Font.Builder : Android.OS.ParcelFileDescriptor * int64 * int64 -> Android.Graphics.Fonts.Font.Builder

Parameters

fd
ParcelFileDescriptor

a file descriptor

offset
Int64

an offset to of the font data in the file

size
Int64

a size of the font data. If -1 is passed, use until end of the file.

Attributes

Remarks

Constructs a builder with a file descriptor.

Java documentation for android.graphics.fonts.Font.Builder.Font$Builder(android.os.ParcelFileDescriptor, long, long).

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