/** * set character-set to use. * * @param charSet */ public void setCharSet(FontCharset charSet) { CTIntProperty charsetProperty; if(_ctFont.sizeOfCharsetArray() == 0) { charsetProperty = _ctFont.addNewCharset(); } else { charsetProperty = _ctFont.getCharsetArray(0); } // We know that FontCharset only has valid entries in it, // so we can just set the int value from it charsetProperty.setVal( charSet.getValue() ); }
if(pr.sizeOfFamilyArray() > 0) ctFont.addNewFamily().setVal(pr.getFamilyArray(0).getVal()); if(pr.sizeOfSchemeArray() > 0) ctFont.addNewScheme().setVal(pr.getSchemeArray(0).getVal()); if(pr.sizeOfCharsetArray() > 0) ctFont.addNewCharset().setVal(pr.getCharsetArray(0).getVal()); if(pr.sizeOfCondenseArray() > 0) ctFont.addNewCondense().setVal(pr.getCondenseArray(0).getVal()); if(pr.sizeOfExtendArray() > 0) ctFont.addNewExtend().setVal(pr.getExtendArray(0).getVal());
/** * set character-set to use. * * @param charSet */ public void setCharSet(FontCharset charSet) { CTIntProperty charsetProperty; if(_ctFont.sizeOfCharsetArray() == 0) { charsetProperty = _ctFont.addNewCharset(); } else { charsetProperty = _ctFont.getCharsetArray(0); } // We know that FontCharset only has valid entries in it, // so we can just set the int value from it charsetProperty.setVal( charSet.getValue() ); }
/** * set character-set to use. * * @param charSet */ public void setCharSet(FontCharset charSet) { CTIntProperty charsetProperty; if(_ctFont.sizeOfCharsetArray() == 0) { charsetProperty = _ctFont.addNewCharset(); } else { charsetProperty = _ctFont.getCharsetArray(0); } // We know that FontCharset only has valid entries in it, // so we can just set the int value from it charsetProperty.setVal( charSet.getValue() ); }
if(pr.sizeOfFamilyArray() > 0) ctFont.addNewFamily().setVal(pr.getFamilyArray(0).getVal()); if(pr.sizeOfSchemeArray() > 0) ctFont.addNewScheme().setVal(pr.getSchemeArray(0).getVal()); if(pr.sizeOfCharsetArray() > 0) ctFont.addNewCharset().setVal(pr.getCharsetArray(0).getVal()); if(pr.sizeOfCondenseArray() > 0) ctFont.addNewCondense().setVal(pr.getCondenseArray(0).getVal()); if(pr.sizeOfExtendArray() > 0) ctFont.addNewExtend().setVal(pr.getExtendArray(0).getVal());
if(pr.sizeOfFamilyArray() > 0) ctFont.addNewFamily().setVal(pr.getFamilyArray(0).getVal()); if(pr.sizeOfSchemeArray() > 0) ctFont.addNewScheme().setVal(pr.getSchemeArray(0).getVal()); if(pr.sizeOfCharsetArray() > 0) ctFont.addNewCharset().setVal(pr.getCharsetArray(0).getVal()); if(pr.sizeOfCondenseArray() > 0) ctFont.addNewCondense().setVal(pr.getCondenseArray(0).getVal()); if(pr.sizeOfExtendArray() > 0) ctFont.addNewExtend().setVal(pr.getExtendArray(0).getVal());