作者:miwn4_651 | 来源:互联网 | 2023-08-12 16:39
本文整理了Java中com.lowagie.text.Font.getCalculatedSize()
方法的一些代码示例,展示了Font.getCalculatedSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Font.getCalculatedSize()
方法的具体详情如下:
包路径:com.lowagie.text.Font
类名称:Font
方法名:getCalculatedSize
Font.getCalculatedSize介绍
[英]Gets the size that can be used with the calculated BaseFont
.
[中]获取可用于计算的BaseFont
的大小。
代码示例
代码示例来源:origin: com.github.librepdf/openpdf
/**
* Gets the leading that can be used with this font.
*
* @param linespacing
* a certain linespacing
* @return the height of a line
*/
public float getCalculatedLeading(float linespacing) {
return linespacing * getCalculatedSize();
}
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
/**
* Gets the leading that can be used with this font.
*
* @param linespacing
* a certain linespacing
* @return the height of a line
*/
public float getCalculatedLeading(float linespacing) {
return linespacing * getCalculatedSize();
}
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
/**
* Gets the leading that can be used with this font.
*
* @param linespacing
* a certain linespacing
* @return the height of a line
*/
public float getCalculatedLeading(float linespacing) {
return linespacing * getCalculatedSize();
}
代码示例来源:origin: com.github.librepdf/openpdf
/**
* Gets the width of the Chunk in points.
*
* @return a width in points
*/
public float getWidthPoint() {
if (getImage() != null) {
return getImage().getScaledWidth();
}
return font.getCalculatedBaseFont(true).getWidthPoint(getContent(),
font.getCalculatedSize())
* getHorizontalScaling();
}
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
/**
* Gets the width of the Chunk in points.
*
* @return a width in points
*/
public float getWidthPoint() {
if (getImage() != null) {
return getImage().getScaledWidth();
}
return font.getCalculatedBaseFont(true).getWidthPoint(getContent(),
font.getCalculatedSize())
* getHorizontalScaling();
}
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
/**
* Gets the width of the Chunk in points.
*
* @return a width in points
*/
public float getWidthPoint() {
if (getImage() != null) {
return getImage().getScaledWidth();
}
return font.getCalculatedBaseFont(true).getWidthPoint(getContent(),
font.getCalculatedSize())
* getHorizontalScaling();
}
代码示例来源:origin: fr.opensagres.xdocreport/fr.opensagres.odfdom.converter.pdf
if ( Boolean.TRUE.equals( autoTextIndent ) )
float fOntSize= font != null ? font.getCalculatedSize() : Font.DEFAULTSIZE;
super.setFirstLineIndent( 1.3f * fontSize );
代码示例来源:origin: fr.opensagres.xdocreport/org.odftoolkit.odfdom.converter.pdf
if ( Boolean.TRUE.equals( autoTextIndent ) )
float fOntSize= font != null ? font.getCalculatedSize() : Font.DEFAULTSIZE;
super.setFirstLineIndent( 1.3f * fontSize );