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

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

本文整理了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

  1. /**
  2. * Sets the listsymbol.
  3. *
  4. * @param symbol a <CODE>Chunk</CODE>
  5. */
  6. public void setListSymbol(final Chunk symbol) {
  7. if (this.symbol == null) {
  8. this.symbol = symbol;
  9. if (this.symbol.getFont().isStandardFont()) {
  10. this.symbol.setFont(font);
  11. }
  12. }
  13. }

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

  1. /**
  2. * Sets the listsymbol.
  3. *
  4. * @param symbol a <CODE>Chunk</CODE>
  5. */
  6. public void setListSymbol(final Chunk symbol) {
  7. if (this.symbol == null) {
  8. this.symbol = symbol;
  9. if (this.symbol.getFont().isStandardFont()) {
  10. this.symbol.setFont(font);
  11. }
  12. }
  13. }

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

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

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

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

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

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

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

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

相关文章