Lines Matching refs:VGLTextFont
36 static VGLText *VGLTextFont;
45 if (VGLTextFont) {
46 if (VGLTextFont->BitmapArray != VGLFont)
47 free (VGLTextFont->BitmapArray);
48 free(VGLTextFont);
51 if ((VGLTextFont=(VGLText*)malloc(sizeof(VGLText))) == (VGLText*)0)
55 VGLTextFont->Width = 8;
56 VGLTextFont->Height = 8;
57 VGLTextFont->BitmapArray = VGLFont;
62 fread(&VGLTextFont->Width, 1 , 1, fd);
63 fread(&VGLTextFont->Height, 1 , 1, fd);
64 VGLTextFont->BitmapArray =
65 (byte*)malloc(256*((VGLTextFont->Width + 7)/8)*VGLTextFont->Height);
66 fread(VGLTextFont->BitmapArray, 1,
67 (256*VGLTextFont->Width* VGLTextFont->Height), fd);
79 for(lin = 0; lin < VGLTextFont->Height; lin++) {
80 for(bit = 0; bit < VGLTextFont->Width; bit++) {
81 if (VGLTextFont->BitmapArray[((ch*VGLTextFont->Height)+lin)]&(1<<bit))
130 VGLBitmapPutChar(Object, x+(pos*VGLTextFont->Width), y,
134 VGLBitmapPutChar(Object, x, y-(pos*VGLTextFont->Width),
138 VGLBitmapPutChar(Object, x-(pos*VGLTextFont->Width), y,
142 VGLBitmapPutChar(Object, x, y+(pos*VGLTextFont->Width),
146 VGLBitmapPutChar(Object, x+(pos*VGLTextFont->Width),
147 y-(pos*VGLTextFont->Width),