Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed




Rev Author Line No. Line
3918 Serge 1
2
"http://www.w3.org/TR/html4/loose.dtd">
3
4
5
6
FreeType-2.5.0 API Reference
7
32
33
34
 
35
[Index]
36
37
[TOC]
38

FreeType-2.5.0 API Reference

39
 
40

41
LZW Streams
42
43

Synopsis

44
45
FT_Stream_OpenLZW
46


47
 
48
49

This section contains the declaration of LZW-specific functions.

50

51
52

FT_Stream_OpenLZW

53
54
Defined in FT_LZW_H (freetype/ftlzw.h).
55

56
57
 
58
  FT_EXPORT( FT_Error )
59
  FT_Stream_OpenLZW( FT_Stream  stream,
60
                     FT_Stream  source );
61
 
62

63
64

Open a new stream to parse LZW-compressed font files. This is mainly used to support the compressed ‘*.pcf.Z’ fonts that come with XFree86.

65

66
input
67

68
69
stream
70

The target embedding stream.

71
72
source
73

The source stream.

74
75
76
77
return
78

FreeType error code. 0 means success.

79
80
note
81

The source stream must be opened before calling this function.

82

Calling the internal function ‘FT_Stream_Close’ on the new stream will not call ‘FT_Stream_Close’ on the source stream. None of the stream objects will be released to the heap.

83

The stream implementation is very basic and resets the decompression process each time seeking backwards is needed within the stream

84

In certain builds of the library, LZW compression recognition is automatically handled when calling FT_New_Face or FT_Open_Face. This means that if no font driver is capable of handling the raw compressed file, the library will try to open a LZW stream from it and re-open the face with it.

85

This function may return ‘FT_Err_Unimplemented_Feature’ if your build of FreeType was not compiled with LZW support.

86
87
88

89
[Index]
90
91
[TOC]
92
 
93
94