|
Open Font Render 2.0
|
#include "FileSupport.h"
Functions | |
| void | OFR_fclose (FT_FILE *stream) |
| Close file. | |
| FT_FILE * | OFR_fopen (const char *filename, const char *mode) |
| Open file and get file pointer. | |
| size_t | OFR_fread (void *ptr, size_t size, size_t nmemb, FT_FILE *stream) |
| Read data from a file and store it in a buffer. | |
| int | OFR_fseek (FT_FILE *stream, long int offset, int whence) |
| Moves the cursor to the specified position. | |
| long int | OFR_ftell (FT_FILE *stream) |
| Get file cursor position. | |
| void OFR_fclose | ( | FT_FILE * | stream | ) |
Close file.
| [in] | (*stream) | File pointer. |
| FT_FILE * OFR_fopen | ( | const char * | filename, |
| const char * | mode | ||
| ) |
Open file and get file pointer.
| [in] | (*filename) | Target file path. |
| [in] | (*mode) | Open mode. |
| size_t OFR_fread | ( | void * | ptr, |
| size_t | size, | ||
| size_t | nmemb, | ||
| FT_FILE * | stream | ||
| ) |
Read data from a file and store it in a buffer.
| [in] | (*ptr) | Buffer pointer. |
| [in] | (size) | Data size. |
| [in] | (nmemb) | Number of read data. |
| [in] | (*stream) | File pointer. |
| int OFR_fseek | ( | FT_FILE * | stream, |
| long int | offset, | ||
| int | whence | ||
| ) |
Moves the cursor to the specified position.
| [in] | (*stream) | File pointer. |
| [in] | (offset) | Move offset. |
| [in] | (whence) | Seek position. |
| long int OFR_ftell | ( | FT_FILE * | stream | ) |
Get file cursor position.
| [in] | (*stream) | File pointer. |