First, you get the straightest ruler possible, then you wrap your head around the Ruler until the left ear touches the right ear. If you feel pain, stop and try again until you no longer feel pain -- or your nose. :cheers
The standard for measuring hat width is using a tape measure, measuring slightly above the ears.