| Modifier and Type | Field and Description |
|---|---|
| public static final FontPitch | DEFAULT
The default pitch, which is implementation-dependent. |
| public static final FontPitch | FIXED
A fixed pitch, which means that all the characters in the font occupy the same width when output in a string. |
| private int | |
| public static final FontPitch | VARIABLE
A variable pitch, which means that the characters in the font occupy widths that are proportional to the actual widths of the glyphs when output in a string. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public static byte | Returns: The resulting combined byte-value with pitch and family encoded into one byteThe pitch-value, cannot be null pitch, FontFamily The family-value, cannot be null family)Combine pitch and family to native id |
| public static FontPitch | |
| public static FontPitch | |
| public static FontPitch | Returns: The resulting FontPitch enumeration valueThe combined byte value for pitch and family pitchAndFamily)Get FontPitch from native id |
| public static FontPitch[] |
| DEFAULT | back to summary |
|---|---|
| public static final FontPitch DEFAULT The default pitch, which is implementation-dependent. | |
| FIXED | back to summary |
|---|---|
| public static final FontPitch FIXED A fixed pitch, which means that all the characters in the font occupy the same width when output in a string. | |
| nativeId | back to summary |
|---|---|
| private int nativeId | |
| VARIABLE | back to summary |
|---|---|
| public static final FontPitch VARIABLE A variable pitch, which means that the characters in the font occupy widths that are proportional to the actual widths of the glyphs when output in a string. For example, the "i" and space characters usually have much smaller widths than a "W" or "O" character. | |
| FontPitch | back to summary |
|---|---|
| private FontPitch(int nativeId) | |
| getNativeId | back to summary |
|---|---|
| public int getNativeId() | |
| getNativeId | back to summary |
|---|---|
| public static byte getNativeId(FontPitch pitch, FontFamily family) Combine pitch and family to native id
| |
| valueOf | back to summary |
|---|---|
| public static FontPitch valueOf(String name) | |
| valueOf | back to summary |
|---|---|
| public static FontPitch valueOf(int flag) | |
| valueOfPitchFamily | back to summary |
|---|---|
| public static FontPitch valueOfPitchFamily(byte pitchAndFamily) Get FontPitch from native id
| |
| values | back to summary |
|---|---|
| public static FontPitch[] values() | |