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

Unified Diff: fpdfsdk/src/fpdf_sysfontinfo.cpp

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/include/pdfwindow/PWL_FontMap.h ('k') | public/fpdf_sysfontinfo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/src/fpdf_sysfontinfo.cpp
diff --git a/fpdfsdk/src/fpdf_sysfontinfo.cpp b/fpdfsdk/src/fpdf_sysfontinfo.cpp
index 9be2fe9223fc35a96a84b85809002830f04f7073..6bb41b82ffaff5a85a20721e55b68346528b8011 100644
--- a/fpdfsdk/src/fpdf_sysfontinfo.cpp
+++ b/fpdfsdk/src/fpdf_sysfontinfo.cpp
@@ -6,6 +6,7 @@
#include "../../public/fpdf_sysfontinfo.h"
#include "../include/fsdk_define.h"
+#include "../include/pdfwindow/PWL_FontMap.h"
class CSysFontInfo_Ext FX_FINAL : public IFX_SystemFontInfo
{
@@ -94,6 +95,11 @@ DLLEXPORT void STDCALL FPDF_SetSystemFontInfo(FPDF_SYSFONTINFO* pFontInfoExt)
CFX_GEModule::Get()->GetFontMgr()->SetSystemFontInfo(pFontInfo);
}
+DLLEXPORT const FPDF_CharsetFontMap* STDCALL FPDF_GetDefaultTTFMap()
+{
+ return CPWL_FontMap::defaultTTFMap;
+}
+
struct FPDF_SYSFONTINFO_DEFAULT : public FPDF_SYSFONTINFO
{
IFX_SystemFontInfo* m_pFontInfo;
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_FontMap.h ('k') | public/fpdf_sysfontinfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698