diff options
Diffstat (limited to 'Build/source/libs/freetype/freetype-1.5/test/textdisp.c')
-rw-r--r-- | Build/source/libs/freetype/freetype-1.5/test/textdisp.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/Build/source/libs/freetype/freetype-1.5/test/textdisp.c b/Build/source/libs/freetype/freetype-1.5/test/textdisp.c deleted file mode 100644 index c6ac8df860f..00000000000 --- a/Build/source/libs/freetype/freetype-1.5/test/textdisp.c +++ /dev/null @@ -1,47 +0,0 @@ -/****************************************************************************/ -/* */ -/* The FreeType project -- a free and portable quality TrueType renderer. */ -/* */ -/* Copyright 1996-2001 by */ -/* D. Turner, R.Wilhelm, and W. Lemberg */ -/* */ -/* textdisp.c: Text-mode display component used by some test programs. */ -/* */ -/* This file is used to display glyphs using only text, with ' ' and '*'. */ -/* */ -/****************************************************************************/ - -#include <stdio.h> - -#include "textdisp.h" - - void - Show_Single_Glyph( const TT_Raster_Map* map ) - { - int y; - - unsigned char* line = map->bitmap; - - - for ( y = 0; y < map->rows; y++, line += map->cols ) - { - unsigned char* ptr = line; - int x; - unsigned char mask = 0x80; - - - for ( x = 0; x < map->width; x++ ) - { - printf( "%c", (ptr[0] & mask) ? '*' : '.' ); - mask >>= 1; - if ( mask == 0 ) - { - mask = 0x80; - ptr++; - } - } - printf( "\n" ); - } - } - -/* End */ |