eVision Python API
Loading...
Searching...
No Matches
eVision.EFont Class Reference

Font. More...

Public Member Functions

None __init__ (self)
 Constructs a eVision.EFont.
None __init__ (self, str fontFamily, int pointSize, eVision.EFontStyle style)
 Constructs a eVision.EFont.
None __init__ (self, str fontFamily, int pointSize)
 Constructs a eVision.EFont.
None __init__ (self, eVision.EFont other)
 Constructs a eVision.EFont.
bool IsValid (self)
 Whether the font is valid (Size != 0 and Family defined).
None Serialize (self, eVision.ESerializer|None serializer)
 Serializes the eVision.EFont.
None Load (self, str path)
 Loads the eVision.EFont.
None Load (self, eVision.ESerializer|None serializer)
 Loads the eVision.EFont.
None Save (self, str path)
 Saves the eVision.EFont.
None Save (self, eVision.ESerializer|None serializer)
 Saves the eVision.EFont.
str Family (self)
 Font family name.
 Family (self, str value)
 Font family name.
int Size (self)
 Size of the font.
 Size (self, int value)
 Size of the font.
eVision.EFontStyle Style (self)
 Font style.
 Style (self, eVision.EFontStyle value)
 Font style.

Detailed Description

Font.

Remarks:

License(s): None

Constructor & Destructor Documentation

◆ __init__() [1/4]

None eVision.EFont.__init__ ( self)

Constructs a eVision.EFont.

◆ __init__() [2/4]

None eVision.EFont.__init__ ( self,
str fontFamily,
int pointSize,
eVision.EFontStyle style )

Constructs a eVision.EFont.

Parameters
fontFamilyFont family
pointSizeFont size
styleFont style

◆ __init__() [3/4]

None eVision.EFont.__init__ ( self,
str fontFamily,
int pointSize )

Constructs a eVision.EFont.

Parameters
fontFamilyFont family
pointSizeFont size

◆ __init__() [4/4]

None eVision.EFont.__init__ ( self,
eVision.EFont other )

Constructs a eVision.EFont.

Parameters
otherThe other eVision.EFont that will be copied into this one.

Member Function Documentation

◆ Family() [1/2]

str eVision.EFont.Family ( self)

Font family name.

◆ Family() [2/2]

eVision.EFont.Family ( self,
str value )

Font family name.

◆ IsValid()

bool eVision.EFont.IsValid ( self)

Whether the font is valid (Size != 0 and Family defined).

◆ Load() [1/2]

None eVision.EFont.Load ( self,
eVision.ESerializer | None serializer )

Loads the eVision.EFont.

The given eVision.ESerializer must have been created for reading.

Parameters
serializerThe serializer.

◆ Load() [2/2]

None eVision.EFont.Load ( self,
str path )

Loads the eVision.EFont.

The given eVision.ESerializer must have been created for reading.

Parameters
pathThe file path.

◆ Save() [1/2]

None eVision.EFont.Save ( self,
eVision.ESerializer | None serializer )

Saves the eVision.EFont.

The given eVision.ESerializer must have been created for writing.

Parameters
serializerThe eVision.ESerializer object that is written to.

◆ Save() [2/2]

None eVision.EFont.Save ( self,
str path )

Saves the eVision.EFont.

The given eVision.ESerializer must have been created for writing.

Parameters
pathThe file path.

◆ Serialize()

None eVision.EFont.Serialize ( self,
eVision.ESerializer | None serializer )

Serializes the eVision.EFont.

Deprecated

Use eVision.EFont.Save or eVision.EFont.Load instead.

Deprecated in version 24.10. Scheduled to be removed in version 27.6.

Parameters
serializerSerializer

◆ Size() [1/2]

int eVision.EFont.Size ( self)

Size of the font.

◆ Size() [2/2]

eVision.EFont.Size ( self,
int value )

Size of the font.

◆ Style() [1/2]

eVision.EFontStyle eVision.EFont.Style ( self)

Font style.

◆ Style() [2/2]

eVision.EFont.Style ( self,
eVision.EFontStyle value )

Font style.