/** * Get FontPitch from native id * * @param pitchAndFamily The combined byte value for pitch and family * * @return The resulting FontPitch enumeration value */ public static FontPitch valueOfPitchFamily(byte pitchAndFamily) { return valueOf(pitchAndFamily & 0x3); } }
/** * Get FontPitch from native id * * @param pitchAndFamily The combined byte value for pitch and family * * @return The resulting FontPitch enumeration value */ public static FontPitch valueOfPitchFamily(byte pitchAndFamily) { return valueOf(pitchAndFamily & 0x3); } }
@Override public FontPitch getPitch() { return FontPitch.valueOf((pitchAndFamily >>> 6) & 3); }