enaml.fonts

Functions

parse_font Parse a CSS3 shorthand font string into an Enaml Font object.

Classes

Font
FontMember An Atom member class which coerces a value to a font.
enaml.fonts.parse_font(font)[source]

Parse a CSS3 shorthand font string into an Enaml Font object.

Returns :

result : Font or None

A font object representing the parsed font. If the string is invalid, None will be returned.

class enaml.fonts.Font

Bases: object

static __new__(S, ...) → a new object with type S, a subtype of T
__repr__() <==> repr(x)
caps

Get the caps enum for the font.

family

Get the family name for the font.

pointsize

Get the point size for the font.

style

Get the style enum for the font.

weight

Get the weight for the font.