Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

46 rindas
969 B

  1. /*
  2. * figfont libcucul FIGfont test program
  3. * Copyright (c) 2007 Sam Hocevar <sam@zoy.org>
  4. * All Rights Reserved
  5. *
  6. * $Id$
  7. *
  8. * This program is free software. It comes without any warranty, to
  9. * the extent permitted by applicable law. You can redistribute it
  10. * and/or modify it under the terms of the Do What The Fuck You Want
  11. * To Public License, Version 2, as published by Sam Hocevar. See
  12. * http://sam.zoy.org/wtfpl/COPYING for more details.
  13. */
  14. #include "config.h"
  15. #include "common.h"
  16. #if !defined(__KERNEL__)
  17. # include <stdio.h>
  18. #endif
  19. #include "cucul.h"
  20. int main(int argc, char *argv[])
  21. {
  22. cucul_canvas_t *cv;
  23. if(argc < 2)
  24. {
  25. fprintf(stderr, "Too few arguments\n");
  26. return -1;
  27. }
  28. cv = cucul_create_canvas(0, 0);
  29. if(cucul_canvas_set_figfont(cv, argv[1]))
  30. {
  31. fprintf(stderr, "Could not open font\n");
  32. return -1;
  33. }
  34. cucul_free_canvas(cv);
  35. return 0;
  36. }