Language

Font.Create(RenderScript, Resources, String, Font+Style, Single) Method

Definition

Caution

deprecated

Selects a system font for the requested family, style, and size.

[Android.Runtime.Register("create", "(Landroid/renderscript/RenderScript;Landroid/content/res/Resources;Ljava/lang/String;Landroid/renderscript/Font$Style;F)Landroid/renderscript/Font;", "")]
[System.Obsolete("deprecated")]
public static Android.Renderscripts.Font? Create(Android.Renderscripts.RenderScript? rs, Android.Content.Res.Resources? res, string? familyName, Android.Renderscripts.Font.Style? fontStyle, float pointSize);
[<Android.Runtime.Register("create", "(Landroid/renderscript/RenderScript;Landroid/content/res/Resources;Ljava/lang/String;Landroid/renderscript/Font$Style;F)Landroid/renderscript/Font;", "")>]
[<System.Obsolete("deprecated")>]
static member Create : Android.Renderscripts.RenderScript * Android.Content.Res.Resources * string * Android.Renderscripts.Font.Style * single -> Android.Renderscripts.Font

Parameters

rs
RenderScript

The RenderScript context that owns the font.

res
Resources

The resources supplying the display density.

familyName
String

The requested system font family.

fontStyle
Font.Style

The requested style within the family.

pointSize
Single

The font size, in points.

Returns

The font loaded from the selected system font file.

Attributes

Remarks

Java documentation for android.renderscript.Font.create(android.renderscript.RenderScript, android.content.res.Resources, java.lang.String, android.renderscript.Style, float).

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