Use FT_BDF_H macro. Include fontconfig/fcfreetype.h.
(MRealizedFontFT): New member face_encapsulated.
(free_ft_rfont): Pay attention to ft_rfont->face_encapsulated.
(ft_gen_font): New function.
(ft_add_font): Use ft_gen_font.
(ft_list_script): Store lists in ft_script_list.
(ft_check_otf): New arg ft_face. Caller changed.
(ft_check_language): Likewise.
(ft_check_script): Likewise.
(ft_encapsulate, ft_close): New functions.
(mfont__ft_driver): Initialize members encapsulate and close.
(mfont__ft_drive_otf): Use OTF_open_ft_face if it is available.