@no_asan('issues with freetype itself')
@needs_make('configure script')
@is_slow_test
def test_freetype(self):
    if (self.run_name == 'asm2g'):
        self.set_setting('ALIASING_FUNCTION_POINTERS', (1 - self.get_setting('ALIASING_FUNCTION_POINTERS')))
    self.add_pre_run(("FS.createDataFile('/', 'font.ttf', %s, true, false, false);" % str(list(bytearray(open(path_from_root('tests', 'freetype', 'LiberationSansBold.ttf'), 'rb').read())))))
    shutil.copyfile(path_from_root('tests', 'freetype', 'LiberationSansBold.ttf'), 'font.ttf')
    self.do_run(open(path_from_root('tests', 'freetype', 'main.c')).read(), open(path_from_root('tests', 'freetype', 'ref.txt')).read(), ['font.ttf', 'test!', '150', '120', '25'], libraries=self.get_freetype_library(), includes=[path_from_root('tests', 'third_party', 'freetype', 'include')])
    print('[issue 324]')
    self.do_run(open(path_from_root('tests', 'freetype', 'main_2.c')).read(), open(path_from_root('tests', 'freetype', 'ref_2.txt')).read(), ['font.ttf', 'w', '32', '32', '25'], libraries=self.get_freetype_library(), includes=[path_from_root('tests', 'third_party', 'freetype', 'include')])
    print('[issue 324 case 2]')
    self.do_run(open(path_from_root('tests', 'freetype', 'main_3.c')).read(), open(path_from_root('tests', 'freetype', 'ref_3.txt')).read(), ['font.ttf', 'W', '32', '32', '0'], libraries=self.get_freetype_library(), includes=[path_from_root('tests', 'third_party', 'freetype', 'include')])
    print('[issue 324 case 3]')
    self.do_run(None, open(path_from_root('tests', 'freetype', 'ref_4.txt')).read(), ['font.ttf', 'ea', '40', '32', '0'], no_build=True)
@no_asan('issues with freetype itself')
@needs_make('configure script')
@is_slow_test
def test_freetype(self):
    if (self.run_name == 'asm2g'):
        self.set_setting('ALIASING_FUNCTION_POINTERS', (1 - self.get_setting('ALIASING_FUNCTION_POINTERS')))
    self.add_pre_run(("FS.createDataFile('/', 'font.ttf', %s, true, false, false);" % str(list(bytearray(open(path_from_root('tests', 'freetype', 'LiberationSansBold.ttf'), 'rb').read())))))
    shutil.copyfile(path_from_root('tests', 'freetype', 'LiberationSansBold.ttf'), 'font.ttf')
    self.do_run(open(path_from_root('tests', 'freetype', 'main.c')).read(), open(path_from_root('tests', 'freetype', 'ref.txt')).read(), ['font.ttf', 'test!', '150', '120', '25'], libraries=self.get_freetype_library(), includes=[path_from_root('tests', 'third_party', 'freetype', 'include')])
    print('[issue 324]')
    self.do_run(open(path_from_root('tests', 'freetype', 'main_2.c')).read(), open(path_from_root('tests', 'freetype', 'ref_2.txt')).read(), ['font.ttf', 'w', '32', '32', '25'], libraries=self.get_freetype_library(), includes=[path_from_root('tests', 'third_party', 'freetype', 'include')])
    print('[issue 324 case 2]')
    self.do_run(open(path_from_root('tests', 'freetype', 'main_3.c')).read(), open(path_from_root('tests', 'freetype', 'ref_3.txt')).read(), ['font.ttf', 'W', '32', '32', '0'], libraries=self.get_freetype_library(), includes=[path_from_root('tests', 'third_party', 'freetype', 'include')])
    print('[issue 324 case 3]')
    self.do_run(None, open(path_from_root('tests', 'freetype', 'ref_4.txt')).read(), ['font.ttf', 'ea', '40', '32', '0'], no_build=True)