Android Guides | Samples

Android.Graphics.Typeface.Create Method

Create a typeface object given a family name, and option style information.

Syntax

[Android.Runtime.Register("create", "(Ljava/lang/String;I)Landroid/graphics/Typeface;", "")]
public static Typeface Create (String familyName, [Android.Runtime.GeneratedEnum] TypefaceStyle style)

Parameters

familyName
May be null. The name of the font family.
style
The style (normal, bold, italic) of the typeface. e.g. NORMAL, BOLD, ITALIC, BOLD_ITALIC

Remarks

Create a typeface object given a family name, and option style information. If null is passed for the name, then the "default" font will be chosen. The resulting typeface object can be queried (getStyle()) to discover what its "real" style characteristics are.

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1