ReactOS 0.4.15-dev-7942-gd23573b
fontsub.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define TTFCFP_SUBSET   0
#define TTFCFP_SUBSET1   1
#define TTFCFP_DELTA   2
#define TTFCFP_DONT_CARE   0xffff
#define TTFCFP_FLAGS_SUBSET   0x0001
#define TTFCFP_FLAGS_COMPRESS   0x0002
#define TTFCFP_FLAGS_TTC   0x0004
#define ERR_GENERIC   1000
#define ERR_MEM   1005


typedef void *(__cdeclCFP_ALLOCPROC) (size_t)
typedef void *(__cdeclCFP_REALLOCPROC) (void *, size_t)
typedef void(__cdeclCFP_FREEPROC) (void *)


ULONG __cdecl CreateFontPackage (const unsigned char *src, const ULONG src_len, unsigned char **dest, ULONG *dest_len, ULONG *written, const unsigned short flags, const unsigned short face_index, const unsigned short format, const unsigned short lang, const unsigned short platform, const unsigned short encoding, const unsigned short *keep_list, const unsigned short keep_len, CFP_ALLOCPROC allocproc, CFP_REALLOCPROC reallocproc, CFP_FREEPROC freeproc, void *reserved)

Macro Definition Documentation


#define ERR_GENERIC   1000

Definition at line 51 of file fontsub.h.


#define ERR_MEM   1005

Definition at line 52 of file fontsub.h.



Definition at line 35 of file fontsub.h.


#define TTFCFP_DELTA   2

Definition at line 32 of file fontsub.h.


#define TTFCFP_DONT_CARE   0xffff

Definition at line 42 of file fontsub.h.


#define TTFCFP_FLAGS_COMPRESS   0x0002

Definition at line 47 of file fontsub.h.



Definition at line 49 of file fontsub.h.


#define TTFCFP_FLAGS_SUBSET   0x0001

Definition at line 46 of file fontsub.h.


#define TTFCFP_FLAGS_TTC   0x0004

Definition at line 48 of file fontsub.h.



Definition at line 36 of file fontsub.h.



Definition at line 44 of file fontsub.h.



Definition at line 37 of file fontsub.h.



Definition at line 39 of file fontsub.h.


#define TTFCFP_SUBSET   0

Definition at line 30 of file fontsub.h.


#define TTFCFP_SUBSET1   1

Definition at line 31 of file fontsub.h.



Definition at line 40 of file fontsub.h.



Definition at line 41 of file fontsub.h.



Definition at line 34 of file fontsub.h.

Typedef Documentation


typedef void *(__cdecl * CFP_ALLOCPROC) (size_t)

Definition at line 26 of file fontsub.h.


typedef void(__cdecl * CFP_FREEPROC) (void *)

Definition at line 28 of file fontsub.h.


typedef void *(__cdecl * CFP_REALLOCPROC) (void *, size_t)

Definition at line 27 of file fontsub.h.

Function Documentation

◆ CreateFontPackage()

ULONG __cdecl CreateFontPackage ( const unsigned char src,
const ULONG  src_len,
unsigned char **  dest,
ULONG dest_len,
ULONG written,
const unsigned short  flags,
const unsigned short  face_index,
const unsigned short  format,
const unsigned short  lang,
const unsigned short  platform,
const unsigned short  encoding,
const unsigned short keep_list,
const unsigned short  keep_len,
CFP_ALLOCPROC  allocproc,
CFP_REALLOCPROC  reallocproc,
CFP_FREEPROC  freeproc,
void reserved 

Definition at line 43 of file main.c.

49 FIXME("(%p %u %p %p %p %#x %u %u %u %u %u %p %u %p %p %p %p): stub\n", src, src_len, dest, dest_len,
50 written, flags, face_index, format, lang, platform, encoding, keep_list, keep_len, allocproc,
51 reallocproc, freeproc, reserved);
53 if (format != TTFCFP_SUBSET)
54 return ERR_GENERIC;
56 *dest = allocproc(src_len);
57 if (!*dest)
58 return ERR_MEM;
60 memcpy(*dest, src, src_len);
61 *dest_len = src_len;
62 *written = src_len;
64 return NO_ERROR;
#define FIXME(fmt,...)
Definition: debug.h:111
#define NO_ERROR
Definition: dderror.h:5
r reserved
Definition: btrfs.c:3006
#define ERR_MEM
Definition: err.h:53
Definition: fontsub.h:30
Definition: fontsub.h:51
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
GLenum src
Definition: glext.h:6340
GLbitfield flags
Definition: glext.h:7161
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
static char * dest
Definition: rtl.c:135
Definition: msipriv.h:364
static const WCHAR lang[]
Definition: wbemdisp.c:287
static char * encoding
Definition: xmllint.c:155