Font.CreateFromFile 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.
Overloads
| Name | Description |
|---|---|
| CreateFromFile(RenderScript, Resources, File, Single) |
Obsolete.
This member is deprecated. |
| CreateFromFile(RenderScript, Resources, String, Single) |
Obsolete.
This member is deprecated. |
CreateFromFile(RenderScript, Resources, File, Single)
Caution
deprecated
This member is deprecated.
[Android.Runtime.Register("createFromFile", "(Landroid/renderscript/RenderScript;Landroid/content/res/Resources;Ljava/io/File;F)Landroid/renderscript/Font;", "")]
[System.Obsolete("deprecated")]
public static Android.Renderscripts.Font? CreateFromFile(Android.Renderscripts.RenderScript? rs, Android.Content.Res.Resources? res, Java.IO.File? path, float pointSize);
[<Android.Runtime.Register("createFromFile", "(Landroid/renderscript/RenderScript;Landroid/content/res/Resources;Ljava/io/File;F)Landroid/renderscript/Font;", "")>]
[<System.Obsolete("deprecated")>]
static member CreateFromFile : Android.Renderscripts.RenderScript * Android.Content.Res.Resources * Java.IO.File * single -> Android.Renderscripts.Font
Parameters
- rs
- RenderScript
The RenderScript context that owns the font.
- res
- Resources
The resources supplying the display density.
- path
- File
The font file whose absolute path is used for loading.
- pointSize
- Single
The font size, in points.
Returns
The font loaded from the file.
- Attributes
Remarks
This member is deprecated. in API 16
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
CreateFromFile(RenderScript, Resources, String, Single)
Caution
deprecated
This member is deprecated.
[Android.Runtime.Register("createFromFile", "(Landroid/renderscript/RenderScript;Landroid/content/res/Resources;Ljava/lang/String;F)Landroid/renderscript/Font;", "")]
[System.Obsolete("deprecated")]
public static Android.Renderscripts.Font? CreateFromFile(Android.Renderscripts.RenderScript? rs, Android.Content.Res.Resources? res, string? path, float pointSize);
[<Android.Runtime.Register("createFromFile", "(Landroid/renderscript/RenderScript;Landroid/content/res/Resources;Ljava/lang/String;F)Landroid/renderscript/Font;", "")>]
[<System.Obsolete("deprecated")>]
static member CreateFromFile : Android.Renderscripts.RenderScript * Android.Content.Res.Resources * string * single -> Android.Renderscripts.Font
Parameters
- rs
- RenderScript
The RenderScript context that owns the font.
- res
- Resources
The resources supplying the display density.
- path
- String
The path to the font file.
- pointSize
- Single
The font size, in points.
Returns
The font loaded from the file.
- Attributes
Remarks
This member is deprecated. in API 16 Takes a specific file name as an argument
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.