diff options
author | Nicolas Pena <npm@chromium.org> | 2017-05-02 14:12:50 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-02 18:37:40 +0000 |
commit | b31618571938e4873dcf1cdd44eeedb40caa5bd7 (patch) | |
tree | a337f11a62a35e8c0d52be8c5c9ec55902a6055a /fpdfsdk/fpdfview_c_api_test.c | |
parent | 336544a7451ac80c9f33216b7f61e9347d251108 (diff) | |
download | pdfium-b31618571938e4873dcf1cdd44eeedb40caa5bd7.tar.xz |
Add API to create a text object using a loaded font.
There is already a method to add text from standard font, this CL adds
an option to add text using a loaded font. The font set into a text object
is ref counted and may be released, so call LoadFont on this new text obj,
and add a method to close the font. This CL also improves the SetText method
so that it now uses a WideString, in preparation for CID fonts with non-Latin
characters.
Bug: pdfium:667
Change-Id: I6829d702357d2a898a12f5297e4fd2ec993a9891
Reviewed-on: https://pdfium-review.googlesource.com/4770
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfview_c_api_test.c')
-rw-r--r-- | fpdfsdk/fpdfview_c_api_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fpdfsdk/fpdfview_c_api_test.c b/fpdfsdk/fpdfview_c_api_test.c index b4da951947..1606abbf08 100644 --- a/fpdfsdk/fpdfview_c_api_test.c +++ b/fpdfsdk/fpdfview_c_api_test.c @@ -102,6 +102,8 @@ int CheckPDFiumCApi() { CHK(FPDFPageObj_NewTextObj); CHK(FPDFText_SetText); CHK(FPDFText_LoadFont); + CHK(FPDFFont_Close); + CHK(FPDFPageObj_CreateTextObj); // fpdf_ext.h CHK(FSDK_SetUnSpObjProcessHandler); |