ooodev.format.inner.modify.write.char.font.font_only module

class ooodev.format.inner.modify.write.char.font.font_only.FontOnly(*, name=None, size=None, font_style_name=None, lang=None, style_name=StyleCharKind.STANDARD, style_family='CharacterStyles')[source]

Bases: CharStyleBaseMulti

Character Style Font

New in version 0.9.0.

__init__(*, name=None, size=None, font_style_name=None, lang=None, style_name=StyleCharKind.STANDARD, style_family='CharacterStyles')[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, UnitT, optional) – This value contains the size of the characters in pt (point) units or Class UnitT.

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

  • lang (Lang, optional) – Font Language

  • shadowed (bool, optional) – Specifies if the characters are formatted and displayed with a shadow effect.

  • 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 CharacterStyles.

Return type:

None

classmethod from_style(doc, style_name=StyleCharKind.STANDARD, style_family='CharacterStyles')[source]

Gets instance from Document.

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

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

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

Returns:

FontOnly instance from document properties.

Return type:

FontOnly

property prop_inner: FontOnly

Gets/Sets Inner Font instance

Return type:

FontOnly

property prop_style_name: str

Gets/Sets property Style Name

Return type:

str