ooodev.format.draw.modify.font.font_only module

Font Only Style for Draw Documents

New in version 0.17.9.

class ooodev.format.draw.modify.font.font_only.FontOnly(*, name=None, size=None, font_style_name=None, lang=None, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]

Bases: CharStyleBaseMulti

Character Style Font

See also

New in version 0.17.9.

__init__(*, name=None, size=None, font_style_name=None, lang=None, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[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 (FamilyGraphics, str, optional) – Specifies the Style that instance applies to. Default is Default standard Style.

  • style_family (str, DrawStyleFamilyKind, optional) – Family Style. Defaults to graphics.

Return type:

None

See also

classmethod from_style(doc, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]

Gets instance from Document.

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

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

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

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