com.itextpdf.text.Font.isStandardFont()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(178)

本文整理了Java中com.itextpdf.text.Font.isStandardFont()方法的一些代码示例,展示了Font.isStandardFont()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Font.isStandardFont()方法的具体详情如下:
包路径:com.itextpdf.text.Font
类名称:Font
方法名:isStandardFont

Font.isStandardFont介绍

[英]Checks if the properties of this font are undefined or null.

If so, the standard should be used.
[中]检查此字体的属性是否未定义或为空。
如果是,则应使用该标准。

代码示例

代码示例来源:origin: com.itextpdf/itextpdf

/**
 * Sets the listsymbol.
 *
 * @param    symbol    a <CODE>Chunk</CODE>
 */
public void setListSymbol(final Chunk symbol) {
  if (this.symbol == null) {
    this.symbol = symbol;
    if (this.symbol.getFont().isStandardFont()) {
      this.symbol.setFont(font);
    }
  }
}

代码示例来源:origin: com.itextpdf/itextg

/**
 * Sets the listsymbol.
 *
 * @param    symbol    a <CODE>Chunk</CODE>
 */
public void setListSymbol(final Chunk symbol) {
  if (this.symbol == null) {
    this.symbol = symbol;
    if (this.symbol.getFont().isStandardFont()) {
      this.symbol.setFont(font);
    }
  }
}

代码示例来源:origin: com.itextpdf/itextpdf

case Element.CHUNK:
  Chunk chunk = (Chunk) element;
  if (!font.isStandardFont()) {
    chunk.setFont(font.difference(chunk.getFont()));

代码示例来源:origin: com.itextpdf/itextg

case Element.CHUNK:
  Chunk chunk = (Chunk) element;
  if (!font.isStandardFont()) {
    chunk.setFont(font.difference(chunk.getFont()));

代码示例来源:origin: com.itextpdf/itextpdf

Font f = chunk.getFont();
String c = chunk.getContent();
if (font != null && !font.isStandardFont()) {
  f = font.difference(chunk.getFont());

代码示例来源:origin: com.itextpdf/itextg

Font f = chunk.getFont();
String c = chunk.getContent();
if (font != null && !font.isStandardFont()) {
  f = font.difference(chunk.getFont());

相关文章