~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to routines/gd/bdftogd.c

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
     char *FontName;
46
46
 
47
47
{
48
 
  char s[MAXLINE],hex[3];
 
48
  char s[MAXLINE],hex[3],Spacing[3];
49
49
  char tag[MAXLINE];
50
50
  int curptr, curptrs, curcharptr;
51
51
  int  bottom, width, currentchar, globalleft, globaltop, left;
54
54
  int i, j, nrow, nbytes,k ;
55
55
  int c;
56
56
 
57
 
 
 
57
  FontPtr->fixed =0;
58
58
  gobitmap =0;
59
59
  hex[2]=0;
60
60
 
67
67
      else if (!strcmp(tag,"FONT")){
68
68
        sscanf(s,"%s %s",tag,FontName);
69
69
      }
 
70
      else if (!strcmp(tag,"SPACING")){
 
71
        sscanf(s,"%s %s",tag,Spacing);
 
72
        if (Spacing[1]=='M') FontPtr->fixed=1;
 
73
      }
70
74
      else if (!strcmp(tag,"FONTBOUNDINGBOX")){
71
75
        sscanf(s,"%s %d %d %d %d",tag,&width,&height,&globalleft,&globaltop);
72
76
        Data = (char *)calloc(256*width*height,sizeof(char));