From f1ad982fd1bc868a1cd081efaf6c75456ade8da2 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 4 Dec 2023 21:21:18 -0500 Subject: [PATCH] Update docos. --- doc/pdfio.3 | 16 +++++++++++++++- doc/pdfio.html | 26 +++++++++++++++++++++++--- 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/doc/pdfio.3 b/doc/pdfio.3 index 7ed5ef3..e8d913e 100644 --- a/doc/pdfio.3 +++ b/doc/pdfio.3 @@ -1,4 +1,4 @@ -.TH pdfio 3 "pdf read/write library" "2023-11-15" "pdf read/write library" +.TH pdfio 3 "pdf read/write library" "2023-12-04" "pdf read/write library" .SH NAME pdfio \- pdf read/write library .SH Introduction @@ -1774,6 +1774,20 @@ bool pdfioContentTextEnd ( pdfio_stream_t *st ); .fi +.SS pdfioContentTextMeasure +Measure a text string and return its width. +.PP +.nf +double pdfioContentTextMeasure ( + pdfio_obj_t *font, + const char *s, + double size +); +.fi +.PP +This function measures the given text string "s" and returns its width based +on "size". The text string must always use the UTF-8 (Unicode) encoding but +any control characters (such as newlines) are ignored. .SS pdfioContentTextMoveLine Move to the next line and offset. .PP diff --git a/doc/pdfio.html b/doc/pdfio.html index 3a8bba8..7d4a8eb 100644 --- a/doc/pdfio.html +++ b/doc/pdfio.html @@ -1,13 +1,13 @@ -PDFio Programming Manual v1.1.3 +PDFio Programming Manual v1.2.0 - +