public Byte getPitchFamily() { if (font.isSetPitchFamily()) { return font.getPitchFamily(); } else { return null; } }
@Override public void setFamily(FontFamily family) { CTTextFont tf = getXmlObject(true); if (tf == null || (family == null && !tf.isSetPitchFamily())) { return; } FontPitch pitch = (tf.isSetPitchFamily()) ? FontPitch.valueOfPitchFamily(tf.getPitchFamily()) : FontPitch.VARIABLE; byte pitchFamily = FontPitch.getNativeId(pitch, family != null ? family : FontFamily.FF_SWISS); tf.setPitchFamily(pitchFamily); }
@Override public void setPitch(FontPitch pitch) { CTTextFont tf = getXmlObject(true); if (tf == null || (pitch == null && !tf.isSetPitchFamily())) { return; } FontFamily family = (tf.isSetPitchFamily()) ? FontFamily.valueOfPitchFamily(tf.getPitchFamily()) : FontFamily.FF_SWISS; byte pitchFamily = FontPitch.getNativeId(pitch != null ? pitch : FontPitch.VARIABLE, family); tf.setPitchFamily(pitchFamily); }
@Override public FontFamily getFamily() { CTTextFont tf = getXmlObject(false); return (tf != null && tf.isSetPitchFamily()) ? FontFamily.valueOfPitchFamily(tf.getPitchFamily()) : null; }
@Override public FontPitch getPitch() { CTTextFont tf = getXmlObject(false); return (tf != null && tf.isSetPitchFamily()) ? FontPitch.valueOfPitchFamily(tf.getPitchFamily()) : null; }
void copyFrom(FontInfo fontInfo) { CTTextFont tf = getXmlObject(true); if (tf == null) { return; } setTypeface(fontInfo.getTypeface()); setCharset(fontInfo.getCharset()); FontPitch pitch = fontInfo.getPitch(); FontFamily family = fontInfo.getFamily(); if (pitch == null && family == null) { if (tf.isSetPitchFamily()) { tf.unsetPitchFamily(); } } else { setPitch(pitch); setFamily(family); } }
if (font.isSetPitchFamily()) { font.unsetPitchFamily();
public Byte getPitchFamily() { if (font.isSetPitchFamily()) { return font.getPitchFamily(); } else { return null; } }
@Override public void setFamily(FontFamily family) { CTTextFont tf = getXmlObject(true); if (tf == null || (family == null && !tf.isSetPitchFamily())) { return; } FontPitch pitch = (tf.isSetPitchFamily()) ? FontPitch.valueOfPitchFamily(tf.getPitchFamily()) : FontPitch.VARIABLE; byte pitchFamily = FontPitch.getNativeId(pitch, family != null ? family : FontFamily.FF_SWISS); tf.setPitchFamily(pitchFamily); }
@Override public void setPitch(FontPitch pitch) { CTTextFont tf = getXmlObject(true); if (tf == null || (pitch == null && !tf.isSetPitchFamily())) { return; } FontFamily family = (tf.isSetPitchFamily()) ? FontFamily.valueOfPitchFamily(tf.getPitchFamily()) : FontFamily.FF_SWISS; byte pitchFamily = FontPitch.getNativeId(pitch != null ? pitch : FontPitch.VARIABLE, family); tf.setPitchFamily(pitchFamily); }
@Override public FontFamily getFamily() { CTTextFont tf = getXmlObject(false); return (tf != null && tf.isSetPitchFamily()) ? FontFamily.valueOfPitchFamily(tf.getPitchFamily()) : null; }
@Override public FontPitch getPitch() { CTTextFont tf = getXmlObject(false); return (tf != null && tf.isSetPitchFamily()) ? FontPitch.valueOfPitchFamily(tf.getPitchFamily()) : null; }
void copyFrom(FontInfo fontInfo) { CTTextFont tf = getXmlObject(true); if (tf == null) { return; } setTypeface(fontInfo.getTypeface()); setCharset(fontInfo.getCharset()); FontPitch pitch = fontInfo.getPitch(); FontFamily family = fontInfo.getFamily(); if (pitch == null && family == null) { if (tf.isSetPitchFamily()) { tf.unsetPitchFamily(); } } else { setPitch(pitch); setFamily(family); } }
if (font.isSetPitchFamily()) { font.unsetPitchFamily();