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

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

Bases: ParaStyleBaseMulti

Style Font

New in version 0.9.0.

__init__(*, name=None, size=None, font_style_name=None, lang=None, style_name=StyleParaKind.STANDARD, style_family='ParagraphStyles')[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

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

Return type:

None

classmethod from_style(doc, style_name=StyleParaKind.STANDARD, style_family='ParagraphStyles')[source]

Gets instance from Document.

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

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

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