| Modifier and Type | Field and Description |
|---|---|
| public static final FontWeight | BLACK
represents Black font weight (900). |
| public static final FontWeight | BOLD
represents Bold font weight (700). |
| public static final FontWeight | EXTRA_BOLD
represents 'Extra Bold' font weight (800). |
| public static final FontWeight | EXTRA_LIGHT
represents 'Extra Light' font weight (200). |
| public static final FontWeight | LIGHT
represents Light font weight (300). |
| public static final FontWeight | MEDIUM
represents Medium font weight (500). |
| private final String[] | |
| public static final FontWeight | NORMAL
represents Normal font weight (400). |
| public static final FontWeight | SEMI_BOLD
represents 'Demi Bold' font weight (600). |
| public static final FontWeight | THIN
represents Thin font weight (100). |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FontWeight | Returns: the FontWeight by its namename of the name)FontWeightReturns |
| public static FontWeight | Returns: closestFontWeightthe weight value weight)Returns the closest |
| public int | Returns: weightReturn the visual weight (degree of blackness or thickness)
specified by this |
| public static FontWeight | |
| public static FontWeight[] |
| BLACK | back to summary |
|---|---|
| public static final FontWeight BLACK represents Black font weight (900). | |
| BOLD | back to summary |
|---|---|
| public static final FontWeight BOLD represents Bold font weight (700). | |
| EXTRA_BOLD | back to summary |
|---|---|
| public static final FontWeight EXTRA_BOLD represents 'Extra Bold' font weight (800). | |
| EXTRA_LIGHT | back to summary |
|---|---|
| public static final FontWeight EXTRA_LIGHT represents 'Extra Light' font weight (200). | |
| LIGHT | back to summary |
|---|---|
| public static final FontWeight LIGHT represents Light font weight (300). | |
| MEDIUM | back to summary |
|---|---|
| public static final FontWeight MEDIUM represents Medium font weight (500). | |
| names | back to summary |
|---|---|
| private final String[] names | |
| NORMAL | back to summary |
|---|---|
| public static final FontWeight NORMAL represents Normal font weight (400). | |
| SEMI_BOLD | back to summary |
|---|---|
| public static final FontWeight SEMI_BOLD represents 'Demi Bold' font weight (600). | |
| THIN | back to summary |
|---|---|
| public static final FontWeight THIN represents Thin font weight (100). | |
| weight | back to summary |
|---|---|
| private final int weight | |
| FontWeight | back to summary |
|---|---|
| private FontWeight(int weight, String... names) | |
| findByName | back to summary |
|---|---|
| public static FontWeight findByName(String name) Returns
| |
| findByWeight | back to summary |
|---|---|
| public static FontWeight findByWeight(int weight) Returns the closest
| |
| getWeight | back to summary |
|---|---|
| public int getWeight() Return the visual weight (degree of blackness or thickness)
specified by this
| |
| valueOf | back to summary |
|---|---|
| public static FontWeight valueOf(String name) | |
| values | back to summary |
|---|---|
| public static FontWeight[] values() | |