Save work on Unicode font support - still something isn't quite right.

This commit is contained in:
Michael R Sweet
2021-06-21 07:58:23 -04:00
parent a2da67c415
commit e9d5e082af
7 changed files with 417 additions and 244 deletions

View File

@@ -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.
//