|
Foxit PDF SDK
|
Public 成员函数 | |
| TextState () | |
| 构造函数。 | |
| TextState (int version, Font font, float font_size, float charspace, float wordspace, int textmode, PointF origin_position, float[] textmatrix) | |
| 带参数的构造函数。 更多... | |
| TextState (TextState state) | |
| 使用另一个文本状态对象的构造函数。 更多... | |
| synchronized void | delete () |
| 直接清除C++相关资源。 更多... | |
| float | getCharspace () |
| Get 字符间距。 更多... | |
| Font | getFont () |
| Get 字体对象。 更多... | |
| float | getFont_horizontal_size () |
| Get 设备单位中的字体水平大小(只读)。如果有效,应该大于0。 更多... | |
| float | getFont_size () |
| Get "Tf"中的字体大小。如果有效,应该大于0。 更多... | |
| float | getFont_vertical_size () |
| Get 设备单位中的字体垂直大小(只读)。如果有效,应该大于0。 更多... | |
| PointF | getOrigin_position () |
| Get 原点,在中。 更多... | |
| float[] | getTextmatrix () |
| Get 文本变换矩阵。 更多... | |
| int | getTextmode () |
| Get 文本渲染模式。请参考从com.foxit.sdk.pdf.graphics.TextState.e_ModeFill 开始的值, 这应该是这些值中的一个。 更多... | |
| int | getVersion () |
| Get 此类的版本。 更多... | |
| float | getWordspace () |
| Get 单词间距(仅适用于空格字符)。 更多... | |
| void | set (int version, Font font, float font_size, float charspace, float wordspace, int textmode, PointF origin_position, float[] textmatrix) |
| 设置值。 更多... | |
| void | setCharspace (float value) |
| Set 字符间距。 更多... | |
| void | setFont (Font value) |
| Set 字体对象。 更多... | |
| void | setFont_horizontal_size (float value) |
| Set 设备单位中的字体水平大小(只读)。如果有效,应该大于0。 更多... | |
| void | setFont_size (float value) |
| Set "Tf"中的字体大小。如果有效,应该大于0。 更多... | |
| void | setFont_vertical_size (float value) |
| Set 设备单位中的字体垂直大小(只读)。如果有效,应该大于0。 更多... | |
| void | setOrigin_position (PointF value) |
| Set 原点,在中。 更多... | |
| void | setTextmatrix (float[] value) |
| Set 文本变换矩阵。 更多... | |
| void | setTextmode (int value) |
| Set 文本渲染模式。请参考从com.foxit.sdk.pdf.graphics.TextState.e_ModeFill 开始的值, 这应该是这些值中的一个。 更多... | |
| void | setVersion (int value) |
| Set 此类的版本。 更多... | |
| void | setWordspace (float value) |
| Set 单词间距(仅适用于空格字符)。 更多... | |
静态 Public 属性 | |
| static final int | e_ModeClip = 7 |
| 文本模式:将文本添加到路径以进行裁剪。 | |
| static final int | e_ModeFill = 0 |
| 文本模式:填充文本。 | |
| static final int | e_ModeFillClip = 4 |
| 文本模式:填充文本并添加到路径以进行裁剪。 | |
| static final int | e_ModeFillStroke = 2 |
| 文本模式:填充和描边文本。 | |
| static final int | e_ModeFillStrokeClip = 6 |
| 文本模式:填充和描边文本,并添加到路径以进行裁剪。 | |
| static final int | e_ModeInvisible = 3 |
| 文本模式:既不填充也不描边文本,使其不可见。 | |
| static final int | e_ModeStroke = 1 |
| 文本模式:描边文本。 | |
| static final int | e_ModeStrokeClip = 5 |
| 文本模式:描边文本并添加到路径以进行裁剪。 | |
此类表示PDF文本状态。
| com.foxit.sdk.pdf.graphics.TextState.TextState | ( | int | version, |
| Font | font, | ||
| float | font_size, | ||
| float | charspace, | ||
| float | wordspace, | ||
| int | textmode, | ||
| PointF | origin_position, | ||
| float[] | textmatrix | ||
| ) |
带参数的构造函数。
| [in] | version | 此结构的版本,用于决定哪些成员有用。 目前,只有1是有效的。 |
| [in] | font | (版本1) 有效的字体对象。 |
| [in] | font_size | (版本1) "Tf"中的字体大小,应该大于0。 |
| [in] | charspace | (版本1) 字符间距。 |
| [in] | wordspace | (版本1) 单词间距(仅适用于空格字符)。 |
| [in] | textmode | (版本1) 文本渲染模式。请参考从 com.foxit.sdk.pdf.graphics.TextState.e_ModeFill 开始的值,这应该是这些值中的一个。 |
| [in] | origin_position | (版本1) 原点,在中。 |
| [in] | textmatrix | (版本1) 文本变换矩阵。这是一个由四个数字组成的数组。 |
| com.foxit.sdk.pdf.graphics.TextState.TextState | ( | TextState | state | ) |
使用另一个文本状态对象的构造函数。
| [in] | state | 另一个文本状态对象。 |
| synchronized void com.foxit.sdk.pdf.graphics.TextState.delete | ( | ) |
直接清除C++相关资源。
| com.foxit.sdk.pdf.graphics.TextState.getCharspace | ( | ) |
Get 字符间距。
对于水平书写,正值有扩展字形之间距离的效果, 而对于垂直书写,负值有此效果。
| com.foxit.sdk.pdf.graphics.TextState.getFont | ( | ) |
Get 字体对象。
| com.foxit.sdk.pdf.graphics.TextState.getFont_horizontal_size | ( | ) |
Get 设备单位中的字体水平大小(只读)。如果有效,应该大于0。
| com.foxit.sdk.pdf.graphics.TextState.getFont_size | ( | ) |
Get "Tf"中的字体大小。如果有效,应该大于0。
| com.foxit.sdk.pdf.graphics.TextState.getFont_vertical_size | ( | ) |
Get 设备单位中的字体垂直大小(只读)。如果有效,应该大于0。
| com.foxit.sdk.pdf.graphics.TextState.getOrigin_position | ( | ) |
Get 原点,在中。
| com.foxit.sdk.pdf.graphics.TextState.getTextmatrix | ( | ) |
Get 文本变换矩阵。
这是一个由四个数字组成的数组。第一个数字是输入系数a,第二个数字是 输入系数b,第三个数字是输入系数c,第四个数字是输入系数d。
| com.foxit.sdk.pdf.graphics.TextState.getTextmode | ( | ) |
Get 文本渲染模式。请参考从com.foxit.sdk.pdf.graphics.TextState.e_ModeFill 开始的值, 这应该是这些值中的一个。
| com.foxit.sdk.pdf.graphics.TextState.getVersion | ( | ) |
Get 此类的版本。
此类的成员将来可能会扩展。此版本可用于区分不同的扩展成员。
| com.foxit.sdk.pdf.graphics.TextState.getWordspace | ( | ) |
Get 单词间距(仅适用于空格字符)。
对于水平书写,正值有增加单词之间间距的效果。 对于垂直书写,正值减少单词之间的间距(负值增加间距), 因为垂直坐标从下到上增加。 如果当前对象的font是嵌入字体,这将不起作用。
| void com.foxit.sdk.pdf.graphics.TextState.set | ( | int | version, |
| Font | font, | ||
| float | font_size, | ||
| float | charspace, | ||
| float | wordspace, | ||
| int | textmode, | ||
| PointF | origin_position, | ||
| float[] | textmatrix | ||
| ) |
设置值。
| [in] | version | 此结构的版本,用于决定哪些成员有用。 目前,只有1是有效的。 |
| [in] | font | (版本1) 有效的字体对象。 |
| [in] | font_size | (版本1) "Tf"中的字体大小。应该大于0。 |
| [in] | charspace | (版本1) 字符间距。 |
| [in] | wordspace | (版本1) 单词间距(仅适用于空格字符)。 |
| [in] | textmode | (版本1) 文本渲染模式。请参考从 com.foxit.sdk.pdf.graphics.TextState.e_ModeFill 开始的值,这应该是这些值中的一个。 |
| [in] | origin_position | (版本1) 原点,在中。 |
| [in] | textmatrix | (版本1) 文本变换矩阵。这是一个由四个数字组成的数组。 |
| com.foxit.sdk.pdf.graphics.TextState.setCharspace | ( | float | value | ) |
Set 字符间距。
对于水平书写,正值有扩展字形之间距离的效果, 而对于垂直书写,负值有此效果。
| [in] | value | 字符间距。 |
| com.foxit.sdk.pdf.graphics.TextState.setFont | ( | Font | value | ) |
Set 字体对象。
| [in] | value | 字体对象。 |
| com.foxit.sdk.pdf.graphics.TextState.setFont_horizontal_size | ( | float | value | ) |
Set 设备单位中的字体水平大小(只读)。如果有效,应该大于0。
| [in] | value | 设备单位中的字体水平大小(只读)。如果有效,应该大于0。 |
| com.foxit.sdk.pdf.graphics.TextState.setFont_size | ( | float | value | ) |
Set "Tf"中的字体大小。如果有效,应该大于0。
| [in] | value | "Tf"中的字体大小。如果有效,应该大于0。 |
| com.foxit.sdk.pdf.graphics.TextState.setFont_vertical_size | ( | float | value | ) |
Set 设备单位中的字体垂直大小(只读)。如果有效,应该大于0。
| [in] | value | 设备单位中的字体垂直大小(只读)。如果有效,应该大于0。 |
| com.foxit.sdk.pdf.graphics.TextState.setOrigin_position | ( | PointF | value | ) |
Set 原点,在中。
| [in] | value | 原点,在中。 |
| com.foxit.sdk.pdf.graphics.TextState.setTextmatrix | ( | float[] | value | ) |
Set 文本变换矩阵。
这是一个由四个数字组成的数组。第一个数字是输入系数a,第二个数字是 输入系数b,第三个数字是输入系数c,第四个数字是输入系数d。
| [in] | value | 文本变换矩阵。 |
| com.foxit.sdk.pdf.graphics.TextState.setTextmode | ( | int | value | ) |
Set 文本渲染模式。请参考从com.foxit.sdk.pdf.graphics.TextState.e_ModeFill 开始的值, 这应该是这些值中的一个。
| [in] | value | 文本渲染模式。请参考从com.foxit.sdk.pdf.graphics.TextState.e_ModeFill 开始的值, 这应该是这些值中的一个。 |
| com.foxit.sdk.pdf.graphics.TextState.setVersion | ( | int | value | ) |
Set 此类的版本。
此类的成员将来可能会扩展。此版本可用于区分不同的扩展成员。
| [in] | value | 此类的版本。 |
| com.foxit.sdk.pdf.graphics.TextState.setWordspace | ( | float | value | ) |
Set 单词间距(仅适用于空格字符)。
对于水平书写,正值有增加单词之间间距的效果。 对于垂直书写,正值减少单词之间的间距(负值增加间距), 因为垂直坐标从下到上增加。 如果当前对象的font是嵌入字体,这将不起作用。
| [in] | value | 单词间距(仅适用于空格字符)。 |