Source code for ooodev.format.inner.direct.chart2.legend.font.font_only

# region Import
from __future__ import annotations
from typing import Any, TYPE_CHECKING
from ooodev.format.inner.direct.write.char.font.font_only import FontOnly as CharFontOnly
from ooodev.units.unit_obj import UnitT

if TYPE_CHECKING:
    from ooodev.format.proto.font.font_lang_t import FontLangT
else:
    FontLangT = Any
# endregion Import


[docs]class FontOnly(CharFontOnly): """ Character Font for a chart legend. Any properties starting with ``prop_`` set or get current instance values. All methods starting with ``fmt_`` can be used to chain together font properties. .. seealso:: - :ref:`help_chart2_format_direct_legend_font_only` .. versionadded:: 0.9.4 """
[docs] def __init__( self, *, name: str | None = None, size: float | UnitT | None = None, font_style: str | None = None, lang: FontLangT | None = None, ) -> None: """ Font options used in styles. Args: 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 :ref:`proto_unit_obj`. font_style (str, optional): Font style name such as ``Bold``. lang (Lang, optional): Font Language Returns: None: See Also: - :ref:`help_chart2_format_direct_legend_font_only` """ super().__init__(name=name, size=size, font_style=font_style, lang=lang)