Change method for font shape detection to allow for e.g. \scshape