Add proper TrueType font support (Issue #2)

Still need to implement proper Unicode support (currently only writes WinAnsi
font descriptor and handles UTF-8 for 0-255...)
This commit is contained in:
Michael R Sweet
2021-06-17 10:18:55 -04:00
parent d1f199c7ae
commit bbdf0cdb18
6 changed files with 2140 additions and 15 deletions

View File

@ -273,6 +273,32 @@ pdfioFileCreate(
}
//
// 'pdfioFileCreateArrayObj()' - Create a new object in a PDF file containing an array.
//
// This function creates a new object with an array value in a PDF file.
// You must call @link pdfioObjClose@ to write the object to the file.
//
pdfio_obj_t * // O - New object
pdfioFileCreateArrayObj(
pdfio_file_t *pdf, // I - PDF file
pdfio_array_t *array) // I - Object array
{
_pdfio_value_t value; // Object value
// Range check input...
if (!pdf || !array)
return (NULL);
value.type = PDFIO_VALTYPE_ARRAY;
value.value.array = array;
return (_pdfioFileCreateObj(pdf, array->pdf, &value));
}
//
// 'pdfioFileCreateObj()' - Create a new object in a PDF file.
//