In front is always two words. Infront is incorrect and should not be used in English.
In front
In front is usually a preposition that means that something is ahead of something in a positional sense.
There are a lot of people in front of me in the queue.
The chair is in front of the table.
Infront
Infront is incorrect in English and should not be used. The correct spelling is “in front”.