Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(681)

Unified Diff: public/fpdf_sysfontinfo.h

Issue 1126283004: NEW public API for pdfwindow font manipulation (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rework to use thestig's suggestion. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/src/fpdf_sysfontinfo.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/fpdf_sysfontinfo.h
diff --git a/public/fpdf_sysfontinfo.h b/public/fpdf_sysfontinfo.h
index 00c9fab0e670a5a6169763a91e4c391a7d6d8daa..275ca84d55bd85fcfb37eb1b75ab8b04b1d7b0ad 100644
--- a/public/fpdf_sysfontinfo.h
+++ b/public/fpdf_sysfontinfo.h
@@ -32,7 +32,6 @@
extern "C" {
#endif
-
/**
* Interface: FPDF_SYSFONTINFO
* Interface for getting system font information and font mapping
@@ -193,6 +192,28 @@ typedef struct _FPDF_SYSFONTINFO {
} FPDF_SYSFONTINFO;
/**
+ * Struct: FPDF_CharsetFontMap
+ * Provides the name of a font to use for a given charset value.
+ **/
+typedef struct FPDF_CharsetFontMap_
+{
+ int charset; // Character Set Enum value, see FXFONT_*_CHARSET above.
+ const char* fontname; // Name of default font to use with that charset.
+} FPDF_CharsetFontMap;
+
+/**
+ * Function: FPDF_GetDefaultTTFMap
+ * Returns a pointer to the default character set to TT Font name map. The
+ * map is an array of FPDF_CharsetFontMap structs, with its end indicated
+ * by a { -1, NULL } entry.
+ * Parameters:
+ * None.
+ * Return Value:
+ * Pointer to the Charset Font Map.
+ **/
+DLLEXPORT const FPDF_CharsetFontMap* STDCALL FPDF_GetDefaultTTFMap();
+
+/**
* Function: FPDF_AddInstalledFont
* Add a system font to the list in Foxit SDK.
* Comments:
« no previous file with comments | « fpdfsdk/src/fpdf_sysfontinfo.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698