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

Unified Diff: public/fpdf_sysfontinfo.h

Issue 2485283002: Add FPDF_FreeDefaultSystemFontInfo API (Closed)
Patch Set: Nit Created 4 years, 1 month 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/fpdfview_c_api_test.c ('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 c2da74b70bb71d1929e68e3ae3db371553fd6f57..d75aa196295d753732db591413b446ce87cdab57 100644
--- a/public/fpdf_sysfontinfo.h
+++ b/public/fpdf_sysfontinfo.h
@@ -290,11 +290,24 @@ DLLEXPORT void STDCALL FPDF_SetSystemFontInfo(FPDF_SYSFONTINFO* pFontInfo);
* Pointer to a FPDF_SYSFONTINFO structure describing the default
*interface.
* Or NULL if the platform doesn't have a default interface.
- * Application should call FPDF_FreeMemory to free the returned
- *pointer.
+ * Application should call FPDF_FreeDefaultSystemFontInfo to free the
+ *returned pointer.
**/
DLLEXPORT FPDF_SYSFONTINFO* STDCALL FPDF_GetDefaultSystemFontInfo();
+/**
+ * Function: FPDF_FreeDefaultSystemFontInfo
+ * Free a default system font info interface
+ * Comments:
+ * This function should be called on the output from
+ *FPDF_SetSystemFontInfo once it is no longer needed by the client.
+ * Parameters:
+ * pFontInfo - Pointer to a FPDF_SYSFONTINFO structure
+ * Return Value:
+ * None
+ **/
+DLLEXPORT void FPDF_FreeDefaultSystemFontInfo(FPDF_SYSFONTINFO* pFontInfo);
+
#ifdef __cplusplus
}
#endif
« no previous file with comments | « fpdfsdk/fpdfview_c_api_test.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698