Font Manager Bug
Paul G. Kelaita
kelaita at wk19..nas.nasa.gov
Fri Sep 14 02:52:18 AEST 1990
Has anyone else experienced the following problem with the font
manager on a 3.3 320 VGX?
This code puts up a test string twice: first in single matrix mode,
then (after clicking LEFTMOUSE) switches to viewing matrix mode.
The bug is this: After switching to mmode(MVIEWING), the string
is truncated to just the first character (with certain fonts greater
than 30 points).
The code runs fine on non-VGX, non-3.3 machines. Is this a 3.3 bug,
a VGX bug, or both?
Thanks,
Paul Kelaita
/********************************** CUT *******************************/
#include <gl.h>
#include <device.h>
#include <fmclient.h>
main()
{
static char tstring[] = "a b c d e";
fmfonthandle f;
int i;
foreground();
prefposition( 100, 600, 200, 400 );
winopen("test");
fminit();
for ( i = 1; i <= 2; i++ ) {
if ( i == 2 )
{
mmode(MVIEWING);
}
else
{
mmode(MSINGLE);
}
ortho2( 0., 10., 0., 10. );
color(BLACK);
clear();
color(GREEN);
f = fmfindfont("Times-Roman");
f = fmscalefont(f, 32);
fmsetfont(f);
cmov2(3.,3.);
fmprstr(tstring);
while( !getbutton( LEFTMOUSE ) );
while( getbutton( LEFTMOUSE ) );
}
}
/********************************** CUT *******************************/
Paul Kelaita NASA Ames Research Center
kelaita at wk19.nas.nasa.gov Mail Stop 258-2
(415) 604-4453 Moffett Field, CA 94035
More information about the Comp.sys.sgi
mailing list