Index

C/C++ Functions

txTextIniViaBuffer

DT_SLONG txTextIniViaBuffer(DT_TXDOC* text_doc, DT_PDENGINE engine, DT_SLONG nr_of_chars, const DT_UBYTE* buffer, DT_ID_SWORD buffer_format, DT_SWORD unicode_flags, const DT_TX_TEXTFLOW_AREA* area, const DT_TX_ATTRIBS text_attribs[], const DT_STREAM_DESC* fontmap_sd)

Short Description: Create and initialize text document - via buffer

This is a convenience function. It has the same effect as calling txTextIni followed by a call to txTextMakeViaBuffer.

Parameters

ParameterDescription

text_doc

See txTextIni.

engine

See txTextMakeViaBuffer.

nr_of_chars

See txTextMakeViaBuffer.

buffer

See txTextMakeViaBuffer.

buffer_format

See txTextMakeViaBuffer.

unicode_flags

See txTextMakeViaBuffer.

area

See txTextMakeViaBuffer.

text_attribs

See txTextMakeViaBuffer.

fontmap_sd

See txTextMakeViaBuffer.

Return Value

If the new Unicode text document was built successfully, the return value will be the number of its characters. Otherwise, the function returns -1 and text_doc holds DV_NULL.

Comments, Notes and Related Functions

See txTextIni and txTextMakeViaBuffer.

 

Index