<s> '''<STR_LIT>''' <EOL> __docformat__ = '<STR_LIT>' <EOL> __version__ = '<STR_LIT>' <EOL> import os <EOL> import unittest <EOL> from pyglet import font <EOL> import base_text <EOL> base_path = os . path . dirname ( __file__ ) <EOL> class TEST_ADD_FONT ( base_text . TextTestBase ) : <EOL> font_name = '<STR_LIT>' <EOL> def render ( self ) : <EOL> font . add_file ( os . path . join ( base_path , '<STR_LIT>' ) ) <EOL> font . add_file ( os . path . join ( base_path , '<STR_LIT>' ) ) <EOL> font . add_file ( os . path . join ( base_path , '<STR_LIT>' ) ) <EOL> font . add_file ( os . path . join ( base_path , '<STR_LIT>' ) ) <EOL> fnt = font . load ( '<STR_LIT>' , self . font_size ) <EOL> fnt_b = font . load ( '<STR_LIT>' , self . font_size , bold = True ) <EOL> fnt_i = font . load ( '<STR_LIT>' , self . font_size , italic = True ) <EOL> fnt_bi = font . load ( '<STR_LIT>' , self . font_size , bold = True , italic = True ) <EOL> h = fnt . ascent - fnt . descent <EOL> self . labels = [ <EOL> font . Text ( fnt , '<STR_LIT>' , <NUM_LIT:10> , <NUM_LIT:10> + <NUM_LIT:3> * h ) , <EOL> font . Text ( fnt_i , '<STR_LIT>' , <NUM_LIT:10> , <NUM_LIT:10> + <NUM_LIT:2> * h ) , <EOL> font . Text ( fnt_b , '<STR_LIT>' , <NUM_LIT:10> , <NUM_LIT:10> + h ) , <EOL> font . Text ( fnt_bi , '<STR_LIT>' , <NUM_LIT:10> , <NUM_LIT:10> ) <EOL> ] <EOL> def draw ( self ) : <EOL> for label in self . labels : <EOL> label . draw ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
