Skip to content

Modifying the font weight or font face after a Text type object is created. #250

@Ammar34

Description

@Ammar34

Hi, I have grown a fondness for the Text class. However, soon I realized that after such an object is created, I could change the color of the object but I was not able to change the font-weight or cant even change the font used. It seems that the constructor for Text object changes these properties and once created cant be modified. I am a new learner so I am not sure. I want something like the following:
text` = Text("But what is...",font="Minion Pro") text.set_font_(font="Berolina").set_weight("bold")
Is this possible? I hope I am not asking for too much!

Any help would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions