本文整理了Java中com.lowagie.text.Font.getColor()
方法的一些代码示例,展示了Font.getColor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Font.getColor()
方法的具体详情如下:
包路径:com.lowagie.text.Font
类名称:Font
方法名:getColor
[英]Gets the color of this font.
[中]获取此字体的颜色。
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
/**
* Adds a <CODE>Font</CODE> to be searched for valid characters.
* @param font the <CODE>Font</CODE>
*/
public void addFont(Font font) {
if (font.getBaseFont() != null) {
fonts.add(font);
return;
}
BaseFont bf = font.getCalculatedBaseFont(true);
Font f2 = new Font(bf, font.getSize(), font.getCalculatedStyle(), font.getColor());
fonts.add(f2);
}
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
/**
* Adds a <CODE>Font</CODE> to be searched for valid characters.
* @param font the <CODE>Font</CODE>
*/
public void addFont(Font font) {
if (font.getBaseFont() != null) {
fonts.add(font);
return;
}
BaseFont bf = font.getCalculatedBaseFont(true);
Font f2 = new Font(bf, font.getSize(), font.getCalculatedStyle(), font.getColor());
fonts.add(f2);
}
代码示例来源:origin: com.github.librepdf/openpdf
/**
* Adds a <CODE>Font</CODE> to be searched for valid characters.
* @param font the <CODE>Font</CODE>
*/
public void addFont(Font font) {
if (font.getBaseFont() != null) {
fonts.add(font);
return;
}
BaseFont bf = font.getCalculatedBaseFont(true);
Font f2 = new Font(bf, font.getSize(), font.getCalculatedStyle(), font.getColor());
fonts.add(f2);
}
代码示例来源:origin: com.github.librepdf/openpdf
/**
* Gets a chunk with a symbol character.
* @param c a character that has to be changed into a symbol
* @param font Font if there is no SYMBOL character corresponding with c
* @return a SYMBOL version of a character
*/
public static Chunk get(char c, Font font) {
char greek = SpecialSymbol.getCorrespondingSymbol(c);
if (greek == ' ') {
return new Chunk(String.valueOf(c), font);
}
Font symbol = new Font(Font.SYMBOL, font.getSize(), font.getStyle(), font.getColor());
String s = String.valueOf(greek);
return new Chunk(s, symbol);
}
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
/**
* Gets a chunk with a symbol character.
* @param c a character that has to be changed into a symbol
* @param font Font if there is no SYMBOL character corresponding with c
* @return a SYMBOL version of a character
*/
public static Chunk get(char c, Font font) {
char greek = SpecialSymbol.getCorrespondingSymbol(c);
if (greek == ' ') {
return new Chunk(String.valueOf(c), font);
}
Font symbol = new Font(Font.SYMBOL, font.getSize(), font.getStyle(), font.getColor());
String s = String.valueOf(greek);
return new Chunk(s, symbol);
}
代码示例来源:origin: com.github.librepdf/openpdf
return 4;
if (this.color.equals(font.getColor())) {
return 0;
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
/**
* Gets a chunk with a symbol character.
* @param e a symbol value (see Entities class: alfa is greek alfa,...)
* @param font the font if the symbol isn't found (otherwise Font.SYMBOL)
* @return a Chunk
*/
public static Chunk get(String e, Font font) {
char s = getCorrespondingSymbol(e);
if (s == (char)0) {
try {
return new Chunk(String.valueOf((char)Integer.parseInt(e)), font);
}
catch(Exception exception) {
return new Chunk(e, font);
}
}
Font symbol = new Font(Font.SYMBOL, font.getSize(), font.getStyle(), font.getColor());
return new Chunk(String.valueOf(s), symbol);
}
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
/**
* Gets a chunk with a symbol character.
* @param c a character that has to be changed into a symbol
* @param font Font if there is no SYMBOL character corresponding with c
* @return a SYMBOL version of a character
*/
public static Chunk get(char c, Font font) {
char greek = SpecialSymbol.getCorrespondingSymbol(c);
if (greek == ' ') {
return new Chunk(String.valueOf(c), font);
}
Font symbol = new Font(Font.SYMBOL, font.getSize(), font.getStyle(), font.getColor());
String s = String.valueOf(greek);
return new Chunk(s, symbol);
}
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
/**
* Gets a chunk with a symbol character.
* @param e a symbol value (see Entities class: alfa is greek alfa,...)
* @param font the font if the symbol isn't found (otherwise Font.SYMBOL)
* @return a Chunk
*/
public static Chunk get(String e, Font font) {
char s = getCorrespondingSymbol(e);
if (s == (char)0) {
try {
return new Chunk(String.valueOf((char)Integer.parseInt(e)), font);
}
catch(Exception exception) {
return new Chunk(e, font);
}
}
Font symbol = new Font(Font.SYMBOL, font.getSize(), font.getStyle(), font.getColor());
return new Chunk(String.valueOf(s), symbol);
}
代码示例来源:origin: com.github.librepdf/openpdf
/**
* Gets a chunk with a symbol character.
* @param e a symbol value (see Entities class: alfa is greek alfa,...)
* @param font the font if the symbol isn't found (otherwise Font.SYMBOL)
* @return a Chunk
*/
public static Chunk get(String e, Font font) {
char s = getCorrespondingSymbol(e);
if (s == (char)0) {
try {
return new Chunk(String.valueOf((char)Integer.parseInt(e)), font);
}
catch(Exception exception) {
return new Chunk(e, font);
}
}
Font symbol = new Font(Font.SYMBOL, font.getSize(), font.getStyle(), font.getColor());
return new Chunk(String.valueOf(s), symbol);
}
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
string = string.substring(index);
Font symbol = new Font(Font.SYMBOL, font.getSize(), font.getStyle(), font.getColor());
StringBuffer buf = new StringBuffer();
buf.append(SpecialSymbol.getCorrespondingSymbol(string.charAt(0)));
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
string = string.substring(index);
Font symbol = new Font(Font.SYMBOL, font.getSize(), font.getStyle(), font.getColor());
StringBuffer buf = new StringBuffer();
buf.append(SpecialSymbol.getCorrespondingSymbol(string.charAt(0)));
代码示例来源:origin: com.github.librepdf/openpdf
string = string.substring(index);
Font symbol = new Font(Font.SYMBOL, font.getSize(), font.getStyle(), font.getColor());
StringBuffer buf = new StringBuffer();
buf.append(SpecialSymbol.getCorrespondingSymbol(string.charAt(0)));
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
return 4;
if (this.color.equals(font.getColor())) {
return 0;
代码示例来源:origin: org.jboss.itext/itext-rtf
Color dColor = font.getColor();
if(dColor == null) {
dColor = this.getColor();
代码示例来源:origin: com.github.bengolder/pdf-rtf
Color dColor = font.getColor();
if(dColor == null) {
dColor = this.getColor();
代码示例来源:origin: com.github.bengolder/pdf-rtf
setColor(font.getColor());
if(document != null) {
this.fontNumber = document.getDocumentHeader().getFontNumber(this);
代码示例来源:origin: fr.opensagres.xdocreport/org.odftoolkit.odfdom.converter.pdf
applyStyles( ele, anchor );
if ( anchor.getFont().getColor() == null )
代码示例来源:origin: fr.opensagres.xdocreport/fr.opensagres.odfdom.converter.pdf
applyStyles( ele, anchor );
if ( anchor.getFont().getColor() == null )
代码示例来源:origin: fr.opensagres/org.odftoolkit.odfdom.converter
applyStyles(ele, anchor);
if (anchor.getFont().getColor() == null) {
内容来源于网络,如有侵权,请联系作者删除!