ooodev.format.inner.direct.general_style.text.font module

class ooodev.format.inner.direct.general_style.text.font.Font(*, b=None, i=None, u=None, bg_color=None, bg_transparent=None, charset=None, color=None, family=None, name=None, overline=None, rotation=None, shadow_fmt=None, shadowed=None, size=None, slant=None, spacing=None, strike=None, subscript=None, superscript=None, underline=None, weight=None, word_mode=None)[source]

Bases: Font

General font class for text.

No validation is done other then checking of the object supports the XPropertySet interface.

If validation fails then nothing happens.

Any errors are suppressed.

apply(obj, **kwargs)[source]

Applies styles to object

Parameters:
  • obj (object) – UNO object that has supports com.sun.star.style.CharacterProperties service.

  • kwargs (Any) –

Return type:

None