ReactOS  0.4.13-dev-482-ge57f103
fontsub.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TTFCFP_SUBSET   0
 
#define TTFCFP_SUBSET1   1
 
#define TTFCFP_DELTA   2
 
#define TTFCFP_UNICODE_PLATFORMID   0
 
#define TTFCFP_APPLE_PLATFORMID   1
 
#define TTFCFP_ISO_PLATFORMID   2
 
#define TTFCFP_MS_PLATFORMID   3
 
#define TTFCFP_STD_MAC_CHAR_SET   0
 
#define TTFCFP_SYMBOL_CHAR_SET   0
 
#define TTFCFP_UNICODE_CHAR_SET   1
 
#define TTFCFP_DONT_CARE   0xffff
 
#define TTFCFP_LANG_KEEP_ALL   0
 
#define TTFCFP_FLAGS_SUBSET   0x0001
 
#define TTFCFP_FLAGS_COMPRESS   0x0002
 
#define TTFCFP_FLAGS_TTC   0x0004
 
#define TTFCFP_FLAGS_GLYPHLIST   0x0008
 
#define ERR_GENERIC   1000
 
#define ERR_MEM   1005
 

Typedefs

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

Functions

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

◆ ERR_GENERIC

#define ERR_GENERIC   1000

Definition at line 51 of file fontsub.h.

◆ ERR_MEM

#define ERR_MEM   1005

Definition at line 52 of file fontsub.h.

◆ TTFCFP_APPLE_PLATFORMID

#define TTFCFP_APPLE_PLATFORMID   1

Definition at line 35 of file fontsub.h.

◆ TTFCFP_DELTA

#define TTFCFP_DELTA   2

Definition at line 32 of file fontsub.h.

◆ TTFCFP_DONT_CARE

#define TTFCFP_DONT_CARE   0xffff

Definition at line 42 of file fontsub.h.

◆ TTFCFP_FLAGS_COMPRESS

#define TTFCFP_FLAGS_COMPRESS   0x0002

Definition at line 47 of file fontsub.h.

◆ TTFCFP_FLAGS_GLYPHLIST

#define TTFCFP_FLAGS_GLYPHLIST   0x0008

Definition at line 49 of file fontsub.h.

◆ TTFCFP_FLAGS_SUBSET

#define TTFCFP_FLAGS_SUBSET   0x0001

Definition at line 46 of file fontsub.h.

◆ TTFCFP_FLAGS_TTC

#define TTFCFP_FLAGS_TTC   0x0004

Definition at line 48 of file fontsub.h.

◆ TTFCFP_ISO_PLATFORMID

#define TTFCFP_ISO_PLATFORMID   2

Definition at line 36 of file fontsub.h.

◆ TTFCFP_LANG_KEEP_ALL

#define TTFCFP_LANG_KEEP_ALL   0

Definition at line 44 of file fontsub.h.

◆ TTFCFP_MS_PLATFORMID

#define TTFCFP_MS_PLATFORMID   3

Definition at line 37 of file fontsub.h.

◆ TTFCFP_STD_MAC_CHAR_SET

#define TTFCFP_STD_MAC_CHAR_SET   0

Definition at line 39 of file fontsub.h.

◆ TTFCFP_SUBSET

#define TTFCFP_SUBSET   0

Definition at line 30 of file fontsub.h.

◆ TTFCFP_SUBSET1

#define TTFCFP_SUBSET1   1

Definition at line 31 of file fontsub.h.

◆ TTFCFP_SYMBOL_CHAR_SET

#define TTFCFP_SYMBOL_CHAR_SET   0

Definition at line 40 of file fontsub.h.

◆ TTFCFP_UNICODE_CHAR_SET

#define TTFCFP_UNICODE_CHAR_SET   1

Definition at line 41 of file fontsub.h.

◆ TTFCFP_UNICODE_PLATFORMID

#define TTFCFP_UNICODE_PLATFORMID   0

Definition at line 34 of file fontsub.h.

Typedef Documentation

◆ CFP_ALLOCPROC

typedef void*(__cdecl * CFP_ALLOCPROC) (size_t)

Definition at line 26 of file fontsub.h.

◆ CFP_FREEPROC

typedef void(__cdecl * CFP_FREEPROC) (void *)

Definition at line 28 of file fontsub.h.

◆ CFP_REALLOCPROC

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.

48 {
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);
52 
53  if (format != TTFCFP_SUBSET)
54  return ERR_GENERIC;
55 
56  *dest = allocproc(src_len);
57  if (!*dest)
58  return ERR_MEM;
59 
60  memcpy(*dest, src, src_len);
61  *dest_len = src_len;
62  *written = src_len;
63 
64  return NO_ERROR;
65 }
#define NO_ERROR
Definition: dderror.h:5
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
#define FIXME(fmt,...)
Definition: debug.h:110
r reserved
Definition: btrfs.c:2704
#define ERR_GENERIC
Definition: fontsub.h:51
platform
Definition: msipriv.h:356
static const WCHAR lang[]
Definition: wbemdisp.c:287
GLbitfield flags
Definition: glext.h:7161
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
GLenum src
Definition: glext.h:6340
ed encoding
Definition: write.c:2847
#define ERR_MEM
Definition: fontsub.h:52
static char * dest
Definition: rtl.c:135
#define TTFCFP_SUBSET
Definition: fontsub.h:30