| Index: core/src/fpdfdoc/doc_form.cpp
|
| diff --git a/core/src/fpdfdoc/doc_form.cpp b/core/src/fpdfdoc/doc_form.cpp
|
| index 07c54a08a8003a88f87fc46fd96ef073089e500b..ffd6bf7955f728d27eac19fa5da01ef35804ea58 100644
|
| --- a/core/src/fpdfdoc/doc_form.cpp
|
| +++ b/core/src/fpdfdoc/doc_form.cpp
|
| @@ -371,6 +371,21 @@ static FX_BOOL RetrieveSpecificFont(uint8_t charSet,
|
| }
|
| return RetrieveSpecificFont(lf);
|
| }
|
| +#ifdef PDF_ENABLE_XFA
|
| +static FX_BOOL RetrieveStockFont(int iFontObject,
|
| + uint8_t charSet,
|
| + LOGFONTA& lf) {
|
| + HFONT hFont = (HFONT)::GetStockObject(iFontObject);
|
| + if (hFont != NULL) {
|
| + memset(&lf, 0, sizeof(LOGFONTA));
|
| + int iRet = ::GetObject(hFont, sizeof(LOGFONTA), &lf);
|
| + if (iRet > 0 && (lf.lfCharSet == charSet || charSet == 255)) {
|
| + return RetrieveSpecificFont(lf);
|
| + }
|
| + }
|
| + return FALSE;
|
| +}
|
| +#endif
|
| #endif
|
|
|
| CPDF_Font* CPDF_InterForm::AddStandardFont(CPDF_Document* pDocument,
|
|
|