listFonts function
Returns a list of font ids.
Implementation
Future<List<String>> listFonts() async {
final response = await http.get(Uri.parse('$apiUrl/fontlist'));
Map<String, String> fontList =
jsonDecode(response.body).cast<String, String>();
return fontList.keys.toList();
}