pike.git / src / modules / Image / font.c

version» Context lines:

pike.git/src/modules/Image/font.c:298:    unsigned INT32 height;    unsigned INT32 baseline;    unsigned INT32 o[1];    } *fh = NULL;   #ifdef HAVE_MMAP    size_t mmaped_size = 0;   #endif    int size = 0;    char *filename = NULL;    -  get_all_args("load", args, ".%s", &filename); +  get_all_args(NULL, args, ".%s", &filename);       if (!filename)    {    fh = (struct file_head *)image_default_font;    size = IMAGE_DEFAULT_FONT_SIZE;    } else {    int fd = -1;       do    {
pike.git/src/modules/Image/font.c:799:    *! Set spacing scale to write characters closer    *! or more far away. This does not change scale    *! of character, only the space between them.    */      void font_set_xspacing_scale(INT32 args)   {    FLOAT_TYPE f;       if(!THIS) Pike_error("font->set_xspacing_scale(): No font loaded.\n"); -  get_all_args("set_xspaxing_scale", args, "%f", &f); +  get_all_args(NULL, args, "%f", &f);       if(f < 0.0) f=0.1;    THIS->xspacing_scale = (double)f;   }         void font_set_yspacing_scale(INT32 args)   {    FLOAT_TYPE f;       if(!THIS) Pike_error("font->set_yspacing_scale(): No font loaded.\n"); -  get_all_args("set_yspacing_scale", args, "%f", &f); +  get_all_args(NULL, args, "%f", &f);       if(f <= 0.0) f=0.1;    THIS->yspacing_scale = (double)f;   }         /*! @decl int baseline()    *!    *! Returns font baseline (pixels from top)    *!