C# Класс SharpFont.FTStream

A handle to an input stream.
Наследование: NativeObject
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
FTStream System

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
FTStream ( IntPtr reference ) : System

Описание методов

OpenGzip() публичный Метод

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.
Результат void

OpenLzw() публичный Метод

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.
Результат void

StreamOpenBzip2() публичный Метод

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.
Результат void