Skip to content

text_font

TextFont

Bases: Photoshop

An installed font.

Source code in photoshop/api/text_font.py
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class TextFont(Photoshop):
    """An installed font."""

    def __init__(self, parent=None):
        super().__init__(parent=parent)

    @property
    def family(self) -> str:
        """The font family"""
        return self.app.family

    @property
    def name(self):
        """The name of the font."""
        return self.app.name

    @property
    def postScriptName(self):
        """The PostScript name of the font."""
        return self.app.postScriptName

    @property
    def style(self):
        """The font style."""
        return self.app.style

family: str property

The font family

name property

The name of the font.

postScriptName property

The PostScript name of the font.

style property

The font style.


Last update: 2024-03-05
Created: 2024-03-05