Info

See also

Notifications:
The Info object uses notifications to notify observers of changes.

Tasks

Generic Miscellaneous

Macintosh FOND Resource

Info

class defcon.Info

This object represents info values.

This object posts the following notifications:

Name Note
Info.Changed Posted when the dirty attribute is set.

Note: The documentation strings here were automatically generated from the UFO specification.

ascender

Ascender value. This should be a integer or float. Setting this will post an Info.Changed notification.

capHeight

Cap height value. This should be a integer or float. Setting this will post an Info.Changed notification.

copyright

Copyright statement. This should be a string. Setting this will post an Info.Changed notification.

descender

Descender value. This should be a integer or float. Setting this will post an Info.Changed notification.

familyName

Family name. This should be a string. Setting this will post an Info.Changed notification.

italicAngle

Italic angle. This should be a float. Setting this will post an Info.Changed notification.

macintoshFONDFamilyID

Family ID number. Corresponds to the ffFamID in the FOND resource. This should be a integer. Setting this will post an Info.Changed notification.

macintoshFONDName

Font name for the FOND resource. This should be a String. Setting this will post an Info.Changed notification.

note

Arbitrary note about the font. This should be a string. Setting this will post an Info.Changed notification.

openTypeHeadCreated

Creation date. Expressed as a string of the format “YYYY/MM/DD HH:MM:SS”. “YYYY/MM/DD” is year/month/day. The month should be in the range 1-12 and the day should be in the range 1-end of month. “HH:MM:SS” is hour:minute:second. The hour should be in the range 0:23. The minute and second should each be in the range 0-59. This should be a string. Setting this will post an Info.Changed notification.

openTypeHeadFlags

A list of bit numbers indicating the flags. The bit numbers are listed in the OpenType head specification. Corresponds to the OpenType head table flags field. This should be a number list. Setting this will post an Info.Changed notification.

openTypeHeadLowestRecPPEM

Smallest readable size in pixels. Corresponds to the OpenType head table lowestRecPPEM field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeHheaAscender

Ascender value. Corresponds to the OpenType hhea table Ascender field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeHheaCaretOffset

Caret offset value. Corresponds to the OpenType hhea table caretOffset field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeHheaCaretSlopeRise

Caret slope rise value. Corresponds to the OpenType hhea table caretSlopeRise field. This should be a integer. Setting this will post an Info.Changed notification.

openTypeHheaCaretSlopeRun

Caret slope run value. Corresponds to the OpenType hhea table caretSlopeRun field. This should be a integer. Setting this will post an Info.Changed notification.

openTypeHheaDescender

Descender value. Corresponds to the OpenType hhea table Descender field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeHheaLineGap

Line gap value. Corresponds to the OpenType hhea table LineGap field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeNameCompatibleFullName

Compatible full name. Corresponds to the OpenType name table name ID 18. This should be a string. Setting this will post an Info.Changed notification.

openTypeNameDescription

Description of the font. Corresponds to the OpenType name table name ID 10. This should be a string. Setting this will post an Info.Changed notification.

openTypeNameDesigner

Designer name. Corresponds to the OpenType name table name ID 9. This should be a string. Setting this will post an Info.Changed notification.

openTypeNameDesignerURL

URL for the designer. Corresponds to the OpenType name table name ID 12. This should be a string. Setting this will post an Info.Changed notification.

openTypeNameLicense

License text. Corresponds to the OpenType name table name ID 13. This should be a string. Setting this will post an Info.Changed notification.

openTypeNameLicenseURL

URL for the license. Corresponds to the OpenType name table name ID 14. This should be a string. Setting this will post an Info.Changed notification.

openTypeNameManufacturer

Manufacturer name. Corresponds to the OpenType name table name ID 8. This should be a string. Setting this will post an Info.Changed notification.

openTypeNameManufacturerURL

Manufacturer URL. Corresponds to the OpenType name table name ID 11. This should be a string. Setting this will post an Info.Changed notification.

openTypeNamePreferredFamilyName

Preferred family name. Corresponds to the OpenType name table name ID 16. This should be a string. Setting this will post an Info.Changed notification.

openTypeNamePreferredSubfamilyName

Preferred subfamily name. Corresponds to the OpenType name table name ID 17. This should be a string. Setting this will post an Info.Changed notification.

openTypeNameSampleText

Sample text. Corresponds to the OpenType name table name ID 20. This should be a string. Setting this will post an Info.Changed notification.

openTypeNameUniqueID

Unique ID string. Corresponds to the OpenType name table name ID 3. This should be a string. Setting this will post an Info.Changed notification.

openTypeNameVersion

Version string. Corresponds to the OpenType name table name ID 5. This should be a string. Setting this will post an Info.Changed notification.

openTypeNameWWSFamilyName

WWS family name. Corresponds to the OpenType name table name ID 21. This should be a string. Setting this will post an Info.Changed notification.

openTypeNameWWSSubfamilyName

WWS Subfamily name. Corresponds to the OpenType name table name ID 22. This should be a string. Setting this will post an Info.Changed notification.

openTypeOS2CodePageRanges

A list of bit numbers that are supported code page ranges in the font. The bit numbers are listed in the OpenType OS/2 specification. Corresponds to the OpenType OS/2 table ulCodePageRange1 and ulCodePageRange2 fields. This should be a number list. Setting this will post an Info.Changed notification.

openTypeOS2FamilyClass

Two integers representing the IBM font class and font subclass of the font. The first number, representing the class ID, should be in the range 0-14. The second number, representing the subclass, should be in the range 0-15. The numbers are listed in the OpenType OS/2 specification. Corresponds to the OpenType OS/2 table sFamilyClass field. This should be a number list. Setting this will post an Info.Changed notification.

openTypeOS2Panose

The list should contain 10 integers that represent the setting for each category in the Panose specification. The integers correspond with the option numbers in each of the Panose categories. This corresponds to the OpenType OS/2 table Panose field. This should be a number list. Setting this will post an Info.Changed notification.

openTypeOS2Selection

A list of bit numbers indicating the bits that should be set in fsSelection. The bit numbers are listed in the OpenType OS/2 specification. Corresponds to the OpenType OS/2 table selection field. Note: Bits 0 (italic), 5 (bold) and 6 (regular) should not be set here. These bits should be taken from the generic styleMapStyle attribute. This should be a number list. Setting this will post an Info.Changed notification.

openTypeOS2StrikeoutPosition

Strikeout position. Corresponds to the OpenType OS/2 table yStrikeoutPosition field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeOS2StrikeoutSize

Strikeout size. Corresponds to the OpenType OS/2 table yStrikeoutSize field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeOS2SubscriptXOffset

Subscript x offset. Corresponds to the OpenType OS/2 table ySubscriptXOffset field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeOS2SubscriptXSize

Subscript horizontal font size. Corresponds to the OpenType OS/2 table ySubscriptXSize field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeOS2SubscriptYOffset

Subscript y offset. Corresponds to the OpenType OS/2 table ySubscriptYOffset field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeOS2SubscriptYSize

Subscript vertical font size. Corresponds to the OpenType OS/2 table ySubscriptYSize field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeOS2SuperscriptXOffset

Superscript x offset. Corresponds to the OpenType OS/2 table ySuperscriptXOffset field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeOS2SuperscriptXSize

Superscript horizontal font size. Corresponds to the OpenType OS/2 table ySuperscriptXSize field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeOS2SuperscriptYOffset

Superscript y offset. Corresponds to the OpenType OS/2 table ySuperscriptYOffset field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeOS2SuperscriptYSize

Superscript vertical font size. Corresponds to the OpenType OS/2 table ySuperscriptYSize field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeOS2Type

A list of bit numbers indicating the embedding type. The bit numbers are listed in the OpenType OS/2 specification. Corresponds to the OpenType OS/2 table fsType field. This should be a number list. Setting this will post an Info.Changed notification.

openTypeOS2TypoAscender

Ascender value. Corresponds to the OpenType OS/2 table sTypoAscender field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeOS2TypoDescender

Descender value. Corresponds to the OpenType OS/2 table sTypoDescender field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeOS2TypoLineGap

Line gap value. Corresponds to the OpenType OS/2 table sTypoLineGap field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeOS2UnicodeRanges

A list of bit numbers that are supported Unicode ranges in the font. The bit numbers are listed in the OpenType OS/2 specification. Corresponds to the OpenType OS/2 table ulUnicodeRange1, ulUnicodeRange2, ulUnicodeRange3 and ulUnicodeRange4 fields. This should be a number list. Setting this will post an Info.Changed notification.

openTypeOS2VendorID

Four character identifier for the creator of the font. Corresponds to the OpenType OS/2 table achVendID field. This should be a string. Setting this will post an Info.Changed notification.

openTypeOS2WeightClass

Weight class value. Must be a positive integer. Corresponds to the OpenType OS/2 table usWeightClass field. This should be a integer. Setting this will post an Info.Changed notification.

openTypeOS2WidthClass

Width class value. Must be in the range 1-9. Corresponds to the OpenType OS/2 table usWidthClass field. This should be a integer. Setting this will post an Info.Changed notification.

openTypeOS2WinAscent

Ascender value. Corresponds to the OpenType OS/2 table usWinAscent field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeOS2WinDescent

Descender value. Corresponds to the OpenType OS/2 table usWinDescent field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeVheaCaretOffset

Caret offset value. Corresponds to the OpenType vhea table caretOffset field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeVheaCaretSlopeRise

Caret slope rise value. Corresponds to the OpenType vhea table caretSlopeRise field. This should be a integer. Setting this will post an Info.Changed notification.

openTypeVheaCaretSlopeRun

Caret slope run value. Corresponds to the OpenType vhea table caretSlopeRun field. This should be a integer. Setting this will post an Info.Changed notification.

openTypeVheaVertTypoAscender

Ascender value. Corresponds to the OpenType vhea table vertTypoAscender field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeVheaVertTypoDescender

Descender value. Corresponds to the OpenType vhea table vertTypoDescender field. This should be a integer or float. Setting this will post an Info.Changed notification.

openTypeVheaVertTypoLineGap

Line gap value. Corresponds to the OpenType vhea table vertTypoLineGap field. This should be a integer or float. Setting this will post an Info.Changed notification.

postscriptBlueFuzz

BlueFuzz value. This corresponds to the Type 1/CFF BlueFuzz field. This should be a integer or float. Setting this will post an Info.Changed notification.

postscriptBlueScale

BlueScale value. This corresponds to the Type 1/CFF BlueScale field. This should be a float. Setting this will post an Info.Changed notification.

postscriptBlueShift

BlueShift value. This corresponds to the Type 1/CFF BlueShift field. This should be a integer or float. Setting this will post an Info.Changed notification.

postscriptBlueValues

A list of up to 14 integers or floats specifying the values that should be in the Type 1/CFF BlueValues field. This list must contain an even number of integers following the rules defined in the Type 1/CFF specification. This should be a number list. Setting this will post an Info.Changed notification.

postscriptDefaultCharacter

The name of the glyph that should be used as the default character in PFM files. This should be a string. Setting this will post an Info.Changed notification.

postscriptDefaultWidthX

Default width for glyphs. This should be a integer or float. Setting this will post an Info.Changed notification.

postscriptFamilyBlues

A list of up to 14 integers or floats specifying the values that should be in the Type 1/CFF FamilyBlues field. This list must contain an even number of integers following the rules defined in the Type 1/CFF specification. This should be a number list. Setting this will post an Info.Changed notification.

postscriptFamilyOtherBlues

A list of up to 10 integers or floats specifying the values that should be in the Type 1/CFF FamilyOtherBlues field. This list must contain an even number of integers following the rules defined in the Type 1/CFF specification. This should be a number list. Setting this will post an Info.Changed notification.

postscriptFontName

Name to be used for the FontName field in Type 1/CFF table. This should be a string. Setting this will post an Info.Changed notification.

postscriptForceBold

Indicates how the Type 1/CFF ForceBold field should be set. This should be a boolean. Setting this will post an Info.Changed notification.

postscriptFullName

Name to be used for the FullName field in Type 1/CFF table. This should be a string. Setting this will post an Info.Changed notification.

postscriptIsFixedPitch

Indicates if the font is monospaced. A compiler could calculate this automatically, but the designer may wish to override this setting. This corresponds to the Type 1/CFF isFixedPitched field This should be a boolean. Setting this will post an Info.Changed notification.

postscriptNominalWidthX

Nominal width for glyphs. This should be a integer or float. Setting this will post an Info.Changed notification.

postscriptOtherBlues

A list of up to 10 integers or floats specifying the values that should be in the Type 1/CFF OtherBlues field. This list must contain an even number of integers following the rules defined in the Type 1/CFF specification. This should be a number list. Setting this will post an Info.Changed notification.

postscriptSlantAngle

Artificial slant angle. This should be a float. Setting this will post an Info.Changed notification.

postscriptStemSnapH

List of horizontal stems sorted in increasing order. Up to 12 integers or floats are possible. This corresponds to the Type 1/CFF StemSnapH field. This should be a number list. Setting this will post an Info.Changed notification.

postscriptStemSnapV

List of vertical stems sorted in increasing order. Up to 12 integers or floats are possible. This corresponds to the Type 1/CFF StemSnapV field. This should be a number list. Setting this will post an Info.Changed notification.

postscriptUnderlinePosition

Underline position value. Corresponds to the Type 1/CFF/post table UnderlinePosition field. This should be a integer or float. Setting this will post an Info.Changed notification.

postscriptUnderlineThickness

Underline thickness value. Corresponds to the Type 1/CFF/post table UnderlineThickness field. This should be a integer or float. Setting this will post an Info.Changed notification.

postscriptUniqueID

A unique ID number as defined in the Type 1/CFF specification. This should be a integer. Setting this will post an Info.Changed notification.

postscriptWeightName

A string indicating the overall weight of the font. This corresponds to the Type 1/CFF Weight field. It should be in sync with the openTypeOS2WeightClass value. This should be a string. Setting this will post an Info.Changed notification.

postscriptWindowsCharacterSet

The Windows character set. The values are defined below. This should be a integer. Setting this will post an Info.Changed notification.

styleMapFamilyName

Family name used for bold, italic and bold italic style mapping. This should be a string. Setting this will post an Info.Changed notification.

styleMapStyleName

Style map style. The possible values are regular, italic, bold and bold italic. These are case sensitive. This should be a string. Setting this will post an Info.Changed notification.

styleName

Style name. This should be a string. Setting this will post an Info.Changed notification.

trademark

Trademark statement. This should be a string. Setting this will post an Info.Changed notification.

unitsPerEm

Units per em. This should be a integer or float. Setting this will post an Info.Changed notification.

versionMajor

Major version. This should be a integer. Setting this will post an Info.Changed notification.

versionMinor

Minor version. This should be a integer. Setting this will post an Info.Changed notification.

xHeight

x-height value. This should be a integer or float. Setting this will post an Info.Changed notification.

year

The year the font was created. This attribute is deprecated as of version 2. It’s presence should not be relied upon by applications. However, it may occur in a font’s info so applications should preserve it if present. This should be a integer. Setting this will post an Info.Changed notification.

addObserver(observer, methodName, notification)

Add an observer to this object’s notification dispatcher.

  • observer An object that can be referenced with weakref.
  • methodName A string epresenting the method to be called when the notification is posted.
  • notification The notification that the observer should be notified of.

The method that will be called as a result of the action must accept a single notification argument. This will be a defcon.tools.notifications.Notification object.

This is a convenience method that does the same thing as:

dispatcher = anObject.dispatcher
dispatcher.addObserver(observer=observer, methodName=methodName,
    notification=notification, observable=anObject)
dirty

The dirty state of the object. True if the object has been changed. False if not. Setting this to True will cause the base changed notification to be posted. The object will automatically maintain this attribute and update it as you change the object.

disableNotifications(notification=None, observer=None)

Disable this object’s notifications until told to resume them.

  • notification The specific notification to disable. This is optional. If no notification is given, all notifications will be disabled.

This is a convenience method that does the same thing as:

dispatcher = anObject.dispatcher
dispatcher.disableNotifications(
    observable=anObject, notification=notification, observer=observer)
dispatcher

The defcon.tools.notifications.NotificationCenter assigned to this object.

enableNotifications(notification=None, observer=None)

Enable this object’s notifications.

  • notification The specific notification to enable. This is optional.

This is a convenience method that does the same thing as:

dispatcher = anObject.dispatcher
dispatcher.enableNotifications(
    observable=anObject, notification=notification, observer=observer)
getParent()

Get the parent. Returns None if no parent is set. Note that because the reference to the parent is stored as a weakref, the parent can disappear if it is no longer referenced by any object other than this one.

hasObserver(observer, notification)

Returns a boolean indicating is the observer is registered for notification.

This is a convenience method that does the same thing as:

dispatcher = anObject.dispatcher
dispatcher.hasObserver(observer=observer,
    notification=notification, observable=anObject)
holdNotifications(notification=None)

Hold this object’s notifications until told to release them.

  • notification The specific notification to hold. This is optional. If no notification is given, all notifications will be held.

This is a convenience method that does the same thing as:

dispatcher = anObject.dispatcher
dispatcher.holdNotifications(
    observable=anObject, notification=notification)
releaseHeldNotifications(notification=None)

Release this object’s held notifications.

  • notification The specific notification to hold. This is optional.

This is a convenience method that does the same thing as:

dispatcher = anObject.dispatcher
dispatcher.releaseHeldNotifications(
    observable=anObject, notification=notification)
removeObserver(observer, notification)

Remove an observer from this object’s notification dispatcher.

  • observer A registered object.
  • notification The notification that the observer was registered to be notified of.

This is a convenience method that does the same thing as:

dispatcher = anObject.dispatcher
dispatcher.removeObserver(observer=observer,
    notification=notification, observable=anObject)
setParent(obj)

Set the parent of the object. This will reference the parent using weakref.

undoManager

The undo manager assigned to this object.