ooodev.format.proto.font.font_only_t module
- protocol ooodev.format.proto.font.font_only_t.FontOnlyT[source]
Bases:
StyleMultiT
,Protocol
Font Only Protocol
Classes that implement this protocol must have the following methods / attributes:
- fmt_name(value=None)[source]
Get copy of instance with name set.
- Parameters:
value (str, optional) – The name of the font.
- Returns:
Font with style added or removed
- Return type:
- fmt_size(value=None)[source]
Get copy of instance with text size set.
- Parameters:
value (float, UnitT, optional) – The size of the characters in
pt
(point) units or Class UnitT.- Returns:
Font with style added
- Return type:
- fmt_style_name(value=None)[source]
Get copy of instance with style name set.
- Parameters:
value (str, optional) – The style name of the font.
- Returns:
Font with style added or removed
- Return type:
- from_obj(obj: Any) FontOnlyT
- from_obj(obj: Any, **kwargs) FontOnlyT
- from_obj(**kwds)
Helper for @overload to raise when called.
- __protocol_attrs__ = {'add_event_listener', 'add_event_observer', 'apply', 'backup', 'copy', 'fmt_name', 'fmt_size', 'fmt_style_name', 'from_obj', 'get_attrs', 'get_props', 'get_update_obj', 'has_update_obj', 'on_applied', 'on_applying', 'on_property_backed_up', 'on_property_backing_up', 'on_property_restore_set', 'on_property_restore_setting', 'on_property_set', 'on_property_set_error', 'prop_format_kind', 'prop_has_attribs', 'prop_has_backup', 'prop_inner', 'prop_name', 'prop_parent', 'prop_size', 'prop_style_name', 'remove_event_listener', 'remove_event_observer', 'restore', 'set_update_obj', 'support_service', 'update'}
- property prop_name: str | None
This property specifies the name of the font style.
- Return type:
str | None
- property prop_size: UnitPT | None
This value contains the size of the characters in point.
- Return type:
UnitPT | None
- property prop_style_name: str | None
This property specifies the style name of the font style.
- Return type:
str | None