use generic functions instead of x-specific
font config needs to be before changing frame size