ooodev.format.inner.modify.write.para.font.font_position module
- class ooodev.format.inner.modify.write.para.font.font_position.FontPosition(*, script_kind=None, raise_lower=None, rel_size=None, rotation=None, scale=None, fit=None, spacing=None, pair=None, style_name=StyleParaKind.STANDARD, style_family='ParagraphStyles')[source]
Bases:
ParaStyleBaseMulti
Character Style Font Effects
See also
New in version 0.9.0.
- __init__(*, script_kind=None, raise_lower=None, rel_size=None, rotation=None, scale=None, fit=None, spacing=None, pair=None, style_name=StyleParaKind.STANDARD, style_family='ParagraphStyles')[source]
Constructor
- Parameters:
script_kind (FontScriptKind, optional) – Specifies Superscript/Subscript option.
raise_lower (int, optional) – Specifies raise or Lower as percent value. Set to a value of 0 for automatic.
rel_size (int, Intensity, optional) – Specifies relative Font Size as percent value. Set this value to
0
for automatic; Otherwise value from1
to100
.rotation (int, Angle, optional) – Specifies the rotation of a character in degrees. Depending on the implementation only certain values may be allowed.
scale (int, optional) – Specifies scale width as percent value. Min value is
1
.fit (bool, optional) – Specifies if rotation is fit to line.
spacing (CharSpacingKind, float, UnitT, optional) – Specifies character spacing in
pt
(point) units or Class UnitT.pair (bool, optional) – Specifies pair kerning.
style_name (StyleParaKind, str, optional) – Specifies the Character Style that instance applies to. Default is Default Character Style.
style_family (str, optional) – Style family. Default
ParagraphStyles
.
- Return type:
None
See also
- classmethod from_style(doc, style_name=StyleParaKind.STANDARD, style_family='ParagraphStyles')[source]
Gets instance from Document.
- Parameters:
doc (Any) – UNO Document Object.
style_name (StyleParaKind, str, optional) – Specifies the Character Style that instance applies to. Default is Default Character Style.
style_family (str, optional) – Style family. Default
ParagraphStyles
.
- Returns:
FontPosition
instance from document properties.- Return type:
- property prop_inner: FontPosition
Gets/Sets Inner Font Position instance
- Return type:
- property prop_style_name: str
Gets/Sets property Style Name
- Return type:
str