Event processing.
Added font routines and also fixed init order.