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: object

Partial 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 0 for automatic; Otherwise value from 1 to 100.

  • 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_number is cancelled and not handled.

Returns:

Font Only instance or None if cancelled.

Return type:

FontPositionT | None

Hint

  • Angle can be imported from ooodev.units

  • CharSpacingKind can be imported from ooodev.format.writer.direct.char.font

  • FontScriptKind can be imported from ooodev.format.writer.direct.char.font

  • Intensity can be imported from ooodev.utils.data_type.intensity

style_font_position_get()[source]

Gets the Font Position Style.

Raises:

CancelEventError – If the event before_style_number_number_get is cancelled and not handled.

Returns:

Font Position style or None if cancelled.

Return type:

FontPositionT | None