Language

Font.CreateFromResource(RenderScript, Resources, Int32, Single) Method

Definition

Caution

deprecated

This member is deprecated.

[Android.Runtime.Register("createFromResource", "(Landroid/renderscript/RenderScript;Landroid/content/res/Resources;IF)Landroid/renderscript/Font;", "")]
[System.Obsolete("deprecated")]
public static Android.Renderscripts.Font? CreateFromResource(Android.Renderscripts.RenderScript? rs, Android.Content.Res.Resources? res, int id, float pointSize);
[<Android.Runtime.Register("createFromResource", "(Landroid/renderscript/RenderScript;Landroid/content/res/Resources;IF)Landroid/renderscript/Font;", "")>]
[<System.Obsolete("deprecated")>]
static member CreateFromResource : Android.Renderscripts.RenderScript * Android.Content.Res.Resources * int * single -> Android.Renderscripts.Font

Parameters

rs
RenderScript

The RenderScript context that owns the font.

res
Resources

The resources containing the font and supplying the display density.

id
Int32

The raw resource identifier for the font.

pointSize
Single

The font size, in points.

Returns

The font loaded from the resource.

Attributes

Remarks

This member is deprecated. in API 16

Java documentation for android.renderscript.Font.createFromResource(android.renderscript.RenderScript, android.content.res.Resources, int, 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