From 8625d3b73eb51d2100cdf15e7a43b998b8251dc9 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 26 Jun 2018 15:12:48 +0000 Subject: Add FPDFTextObj_GetFontSize() API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In contrast with FPDFText_GetFontSize(), this exposes the font size of the text object according to the text state, rather than the font size of a particular character. Change-Id: Iac88d1aea8fb6bb5522bdaf01363aa6d32025b8f Reviewed-on: https://pdfium-review.googlesource.com/35931 Reviewed-by: Nicolás Peña Moreno Commit-Queue: Nicolás Peña Moreno --- public/fpdf_edit.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'public') diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h index 6df5e32370..6e613bca07 100644 --- a/public/fpdf_edit.h +++ b/public/fpdf_edit.h @@ -1090,6 +1090,15 @@ FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFText_GetMatrix(FPDF_PAGEOBJECT text, double* e, double* f); +// Experimental API. +// Get the font size of a text object. +// +// text - handle to a text. +// +// Returns the font size of the text object, measured in points (about 1/72 +// inch) on success; 0 on failure. +FPDF_EXPORT double FPDF_CALLCONV FPDFTextObj_GetFontSize(FPDF_PAGEOBJECT text); + // Close a loaded PDF font. // // font - Handle to the loaded font. -- cgit v1.2.3