Ported Fl.H except for the cairo functions