ooodev.format.inner.direct.calc.char.font.font_only module

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

Bases: FontOnly

Calc Character Font

Any properties starting with prop_ set or get current instance values.

All methods starting with fmt_ can be used to chain together font properties.

New in version 0.9.4.

__init__(*, name=None, size=None, font_style=None, lang=None)[source]

Font options used in styles.

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 (str, optional) – Font style name such as Bold.

  • lang (FontLangT, optional) – Font Language

Return type:

None

Hint

  • FontLang can be imported from ooodev.format.inner.direct.write.char.font.font_only