How shares are allocated in IPO?

How shares are allocated in IPO? Do it depends on the Face value or the Issue price?