ooodev.format.inner.modify.calc.font.font_only module

class ooodev.format.inner.modify.calc.font.font_only.FontOnly(*, name=None, size=None, font_style=None, lang=None, style_name=StyleCellKind.DEFAULT, style_family='CellStyles')[source]

Bases: CellStyleBaseMulti

Style Font

New in version 0.9.0.

__init__(*, name=None, size=None, font_style=None, lang=None, style_name=StyleCellKind.DEFAULT, style_family='CellStyles')[source]

Constructor

Parameters:
  • name (str, optional) – This property specifies the name of the font style. It may contain more than one name separated by comma.

  • size (float, optional) – This value contains the size of the characters in pt (point) units or Class UnitT.

  • font_style (str, optional) – Font style name such as Bold.

  • lang (Lang, optional) – Font Language

  • style_name (StyleCellKind, str, optional) – Specifies the Cell Style that instance applies to. Default is Default Cell Style.

  • style_family (str, optional) – Style family. Default CellStyles.

Return type:

None

classmethod from_style(doc, style_name=StyleCellKind.DEFAULT, style_family='CellStyles')[source]

Gets instance from Document.

Parameters:
  • doc (object) – UNO Document Object.

  • style_name (StyleCellKind, str, optional) – Specifies the Cell Style that instance applies to. Default is Default Cell Style.

  • style_family (str, optional) – Style family. Default CellStyles.

Returns:

FontOnly instance from document properties.

Return type:

FontOnly

property prop_inner: InnerFontOnly

Gets/Sets Inner Font instance

Return type:

InnerFontOnly

property prop_style_name: str

Gets/Sets property Style Name

Return type:

str

class ooodev.format.inner.modify.calc.font.font_only.InnerFontOnly(*, name=None, size=None, font_style=None, lang=None)[source]

Bases: FontOnly

Inner Style Font

New in version 0.9.0.

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind