public class FontConfiguration extends Object
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-pdfbox is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
Modifier and Type | Field and Description |
---|---|
protected Float |
characterSpacing
字符间距
|
protected Float |
fontAlpha
字体透明度
|
protected Color |
fontColor
字体颜色
|
protected String |
fontName
字体名称
|
protected Float |
fontSize
字体大小
|
protected Float |
fontSlope
字体斜率(斜体字)
|
protected FontStyle |
fontStyle
字体样式
|
protected Float |
leading
行间距
|
protected List<String> |
specialFontNames
特殊字体名称
|
protected Color |
strokColor
字体描边颜色
|
Constructor and Description |
---|
FontConfiguration()
无参构造
|
FontConfiguration(FontConfiguration configuration)
有参构造
|
Modifier and Type | Method and Description |
---|---|
void |
init()
初始化
|
void |
init(FontConfiguration configuration)
初始化
|
void |
setCharacterSpacing(float spacing)
设置字符间距
|
void |
setFontSize(float fontSize)
设置字体大小
|
void |
setLeading(float leading)
设置行间距
|
protected String fontName
protected Float fontSize
protected Color fontColor
protected Color strokColor
protected Float fontAlpha
protected FontStyle fontStyle
protected Float fontSlope
protected Float characterSpacing
protected Float leading
public FontConfiguration()
public FontConfiguration(FontConfiguration configuration)
configuration
- 配置public void setFontSize(float fontSize)
fontSize
- 字体大小public void setCharacterSpacing(float spacing)
spacing
- 字符间距public void setLeading(float leading)
leading
- 行间距public void init()
public void init(FontConfiguration configuration)
configuration
- 配置Copyright © 2024. All rights reserved.