ooodev.format.inner.partial.font.font_position_partial module
- class ooodev.format.inner.partial.font.font_position_partial.FontPositionPartial(factory_name, component, lo_inst=None)[source]
Bases:
objectPartial class for Char Font Position.
- Parameters:
factory_name (str) –
component (Any) –
lo_inst (LoInst | None) –
- __init__(factory_name, component, lo_inst=None)[source]
- Parameters:
factory_name (str) –
component (Any) –
lo_inst (LoInst | None) –
- Return type:
None
- style_font_position(script_kind=None, raise_lower=None, rel_size=None, rotation=None, scale=None, fit=None, spacing=None, pair=None)[source]
Style Axis Line.
- 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
0for automatic; Otherwise value from1to100.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.
- Raises:
CancelEventError – If the event
before_style_number_numberis cancelled and not handled.- Returns:
Font Only instance or
Noneif cancelled.- Return type:
FontPositionT | None
Hint
Anglecan be imported fromooodev.unitsCharSpacingKindcan be imported fromooodev.format.writer.direct.char.fontFontScriptKindcan be imported fromooodev.format.writer.direct.char.fontIntensitycan be imported fromooodev.utils.data_type.intensity
- style_font_position_get()[source]
Gets the Font Position Style.
- Raises:
CancelEventError – If the event
before_style_number_number_getis cancelled and not handled.- Returns:
Font Position style or
Noneif cancelled.- Return type:
FontPositionT | None