FL.objects.AuditRecord.AuditRecord

class FL.objects.AuditRecord.AuditRecord(parent: Glyph, _called_from_FL: bool = False)

Bases: object

AuditRecord - class to represent Font Audit error record

__init__(parent: Glyph, _called_from_FL: bool = False) None

There is no explicit constructor for object of this type.

Note that objects of this class cannot be created explicitly, they are only generated as a result of a Glyph.Audit() operation

Parameters:

parent (Glyph) – The parent of the AuditRecord, a glyph.

Methods

CanBeFixed()

Repair()

Try to automatically fix error.

__init__(parent[, _called_from_FL])

There is no explicit constructor for object of this type.

fake_create(parent)

Attributes

description

The error description.

id

The error name.

index

The node index in the glyph to which error is attached.

p

The position of the audit mark as a point.

parent

The audit record's parent object.

position

The position of the audit mark as a point.

CanBeFixed() bool
Returns:

True if this error can be automatically fixed.

Return type:

bool

Repair() None

Try to automatically fix error.

property description: str

The error description.

Returns:

The description.

Return type:

str

property id: str

The error name.

Returns:

The name.

Return type:

str

property index: int

The node index in the glyph to which error is attached.

Returns:

The node index.

Return type:

int

property p: Point

The position of the audit mark as a point.

Returns:

The point.

Return type:

Point

property parent: Glyph

The audit record’s parent object.

Returns:

The parent glyph.

Return type:

Glyph

property position: Point

The position of the audit mark as a point.

Returns:

The point.

Return type:

Point