C# Class SharpFont.FTStream

A handle to an input stream.
Inheritance: NativeObject
Mostra file Open project: Robmaister/SharpFont Class Usage Examples

Private Properties

Property Type Description
FTStream System

Public Methods

Method Description
OpenGzip ( FTStream source ) : void

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

The source stream must be opened before calling this function.

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.

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

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

This function may return Error.UnimplementedFeature if your build of FreeType was not compiled with zlib support.

OpenLzw ( FTStream source ) : void

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.

The source stream must be opened before calling this function.

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.

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

In certain builds of the library, LZW compression recognition is automatically handled when calling Library.NewFace or Library.OpenFace. 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.

This function may return Error.UnimplementedFeature if your build of FreeType was not compiled with LZW support.

StreamOpenBzip2 ( FTStream source ) : void

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

The source stream must be opened before calling this function.

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.

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

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

This function may return Error.UnimplementedFeature if your build of FreeType was not compiled with bzip2 support.

Private Methods

Method Description
FTStream ( IntPtr reference ) : System

Method Details

OpenGzip() public method

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

The source stream must be opened before calling this function.

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.

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

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

This function may return Error.UnimplementedFeature if your build of FreeType was not compiled with zlib support.

public OpenGzip ( FTStream source ) : void
source FTStream The source stream.
return void

OpenLzw() public method

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.

The source stream must be opened before calling this function.

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.

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

In certain builds of the library, LZW compression recognition is automatically handled when calling Library.NewFace or Library.OpenFace. 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.

This function may return Error.UnimplementedFeature if your build of FreeType was not compiled with LZW support.

public OpenLzw ( FTStream source ) : void
source FTStream The source stream.
return void

StreamOpenBzip2() public method

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

The source stream must be opened before calling this function.

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.

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

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

This function may return Error.UnimplementedFeature if your build of FreeType was not compiled with bzip2 support.

public StreamOpenBzip2 ( FTStream source ) : void
source FTStream The source stream.
return void