getTTF method

Future<List<int>?> getTTF(
  1. String fontName
)

Implementation

Future<List<int>?> getTTF(String fontName) async {
  final ttf = await _dio.get<List<int>>(
    '${isTemp ? "temp" : ""}/$hostId/$projectName/$fontName.ttf',
    options: Options(responseType: ResponseType.bytes),
  );

  return ttf.data;
}