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.

Properties

 Family = property(_Family__getter, _Family__setter)
 Font family name.
 Size = property(_Size__getter, _Size__setter)
 Size of the font.
 Style = property(_Style__getter, _Style__setter)
 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

◆ 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

Property Documentation

◆ Family

eVision.EFont.Family = property(_Family__getter, _Family__setter)
static

Font family name.

◆ Size

eVision.EFont.Size = property(_Size__getter, _Size__setter)
static

Size of the font.

◆ Style

eVision.EFont.Style = property(_Style__getter, _Style__setter)
static

Font style.