Functions | Variables
logos.cpp File Reference
#include <stdio.h>
#include <qfile.h>
#include <qdir.h>

Go to the source code of this file.

Functions

void writeDoxFont (const char *dir)
 
void removeDoxFont (const char *dir)
 

Variables

unsigned char FreeSans_ttf []
 
unsigned int FreeSans_ttf_len = 22932
 

Function Documentation

void removeDoxFont ( const char *  dir)

Definition at line 1981 of file logos.cpp.

1982 {
1983  QDir d(dir);
1984  d.remove("FreeSans.ttf");
1985 }
Traverses directory structures and contents in a platform-independent way.
Definition: qdir.h:52
string dir
void writeDoxFont ( const char *  dir)

Definition at line 1968 of file logos.cpp.

1969 {
1970  QCString fileName=(QCString)dir+"/FreeSans.ttf";
1971  QFile f(fileName);
1972  if (f.open(IO_WriteOnly))
1973  f.writeBlock((char *)FreeSans_ttf,FreeSans_ttf_len);
1974  else
1975  {
1976  fprintf(stderr,"error: Cannot open file %s for writing\n",fileName.data());
1977  }
1978  f.close();
1979 }
unsigned int FreeSans_ttf_len
Definition: logos.cpp:1938
#define IO_WriteOnly
Definition: qiodevice.h:62
unsigned char FreeSans_ttf[]
Definition: logos.cpp:25
string dir
fileName
Definition: dumpTree.py:9
const char * data() const
Definition: qcstring.h:207
The QFile class is an I/O device that operates on files.
Definition: qfile.h:50

Variable Documentation

unsigned char FreeSans_ttf[]

Definition at line 25 of file logos.cpp.

unsigned int FreeSans_ttf_len = 22932

Definition at line 1938 of file logos.cpp.