TextAttribute.Family Property
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.
Attribute key for the font name.
[Android.Runtime.Register("FAMILY")]
public static Java.Awt.Font.TextAttribute? Family { get; }
[<Android.Runtime.Register("FAMILY")>]
static member Family : Java.Awt.Font.TextAttribute
Property Value
- Attributes
Remarks
Attribute key for the font name. Values are instances of <b>String
</b>. The default value is "Default"
, which causes the platform default font family to be used.
The Font
class defines constants for the logical font names.
This defines the value passed as name
to the Font
constructor. Both logical and physical font names are allowed. If a font with the requested name is not found, the default font is used.
<em>Note:</em> This attribute is unfortunately misnamed, as it specifies the face name and not just the family. Thus values such as "Lucida Sans Bold" will select that face if it exists. Note, though, that if the requested face does not exist, the default will be used with <em>regular</em> weight. The "Bold" in the name is part of the face name, not a separate request that the font's weight be bold.
Java documentation for java.awt.font.TextAttribute.FAMILY
.
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.