def style_key(style): style = style.copy() style['font-family'] = font_families_from_style(style)[0] return font_key(style)