myLayout = {
'title': { # text only block
'image': None, # do not expect an image
'max_lines': 2, # number of lines of text
'width': 1, # 1/1 of the width - this stretches the entire width of the display
'height': 2/3, # 1/3 of the entire height
'abs_coordinates': (0, 0), # this block is the key block that all other blocks will be defined in terms of
'hcenter': True, # horizontally center text
'vcenter': True, # vertically center text
'relative': False, # this block is not relative to any other. It has an ABSOLUTE position (0, 0)
'font': './fonts/Font.ttc', # path to font file
'font_size': None # Calculate the font size because none was provided
},
'artist': {
'image': None,
'max_lines': 1,
'width': 1,
'height': 1/3,
'abs_coordinates': (0, None), # X = 0, Y will be calculated
'hcenter': True,
'vcenter': True,
'font': './fonts/Font.ttc',
'relative': ['artist', 'title'], # use the X postion from abs_coord from `artist` (this block: 0)
# calculate the y position based on the size of `title` block
}
}