mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-08-29 15:22:06 +02:00
Save work on Unicode font support - still something isn't quite right.
This commit is contained in:
@@ -556,6 +556,26 @@ pdfioStreamPrintf(
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// '()' - Write a single character to a stream.
|
||||
//
|
||||
|
||||
bool // O - `true` on success, `false` on failure
|
||||
pdfioStreamPutChar(pdfio_stream_t *st, // I - Stream
|
||||
int ch) // I - Character
|
||||
{
|
||||
char buffer[1]; // Write buffer
|
||||
|
||||
|
||||
if (!st || st->pdf->mode != _PDFIO_MODE_WRITE)
|
||||
return (false);
|
||||
|
||||
buffer[0] = (char)ch;
|
||||
|
||||
return (pdfioStreamWrite(st, buffer, 1));
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// 'pdfioStreamPuts()' - Write a literal string to a stream.
|
||||
//
|
||||
|
Reference in New Issue
Block a user