• Home
  • Raw
  • Download

Lines Matching refs:pFace

39   RetainPtr<CFX_Face> pFace = pFont->GetDevFont()->GetFace();  in VerifyUnicode()  local
40 if (!pFace) in VerifyUnicode()
43 FXFT_FaceRec* pFaceRec = pFace->GetRec(); in VerifyUnicode()
433 void GetUSBCSB(FXFT_FaceRec* pFace, uint32_t* USB, uint32_t* CSB) { in GetUSBCSB() argument
434 TT_OS2* pOS2 = static_cast<TT_OS2*>(FT_Get_Sfnt_Table(pFace, ft_sfnt_os2)); in GetUSBCSB()
452 uint32_t GetFlags(FXFT_FaceRec* pFace) { in GetFlags() argument
454 if (FXFT_Is_Face_Bold(pFace)) in GetFlags()
456 if (FXFT_Is_Face_Italic(pFace)) in GetFlags()
458 if (FT_IS_FIXED_WIDTH(pFace)) in GetFlags()
461 TT_OS2* pOS2 = static_cast<TT_OS2*>(FT_Get_Sfnt_Table(pFace, ft_sfnt_os2)); in GetFlags()
527 RetainPtr<CFX_Face> pFace = CFX_Face::Open(library, &ftArgs, iFaceIndex); in LoadFace() local
528 if (!pFace) { in LoadFace()
532 FT_Set_Pixel_Sizes(pFace->GetRec(), 0, 64); in LoadFace()
533 return pFace; in LoadFace()
543 RetainPtr<CFX_Face> pFace = LoadFace(pFileRead, pDesc->m_nFaceIndex); in VerifyUnicodeForFontDescriptor() local
544 if (!pFace) in VerifyUnicodeForFontDescriptor()
548 FXFT_Select_Charmap(pFace->GetRec(), FT_ENCODING_UNICODE); in VerifyUnicodeForFontDescriptor()
549 FT_Error retIndex = FT_Get_Char_Index(pFace->GetRec(), wcUnicode); in VerifyUnicodeForFontDescriptor()
551 if (FXFT_Get_Face_External_Stream(pFace->GetRec())) in VerifyUnicodeForFontDescriptor()
552 FXFT_Clear_Face_External_Stream(pFace->GetRec()); in VerifyUnicodeForFontDescriptor()
727 void CFGAS_FontMgr::RegisterFace(RetainPtr<CFX_Face> pFace, in RegisterFace() argument
729 if ((pFace->GetRec()->face_flags & FT_FACE_FLAG_SCALABLE) == 0) in RegisterFace()
733 pFont->m_dwFontStyles |= GetFlags(pFace->GetRec()); in RegisterFace()
735 GetUSBCSB(pFace->GetRec(), pFont->m_dwUsb, pFont->m_dwCsb); in RegisterFace()
743 FT_Load_Sfnt_Table(pFace->GetRec(), dwTag, 0, nullptr, &nLength); in RegisterFace()
746 if (FT_Load_Sfnt_Table(pFace->GetRec(), dwTag, 0, table.data(), nullptr)) in RegisterFace()
751 WideString::FromUTF8(pFace->GetRec()->family_name)); in RegisterFace()
754 pdfium::base::checked_cast<int32_t>(pFace->GetRec()->face_index); in RegisterFace()
764 RetainPtr<CFX_Face> pFace = LoadFace(pFontStream, index++); in RegisterFaces() local
765 if (!pFace) in RegisterFaces()
770 pdfium::base::checked_cast<int32_t>(pFace->GetRec()->num_faces); in RegisterFaces()
772 RegisterFace(pFace, wsFaceName); in RegisterFaces()
773 if (FXFT_Get_Face_External_Stream(pFace->GetRec())) in RegisterFaces()
774 FXFT_Clear_Face_External_Stream(pFace->GetRec()); in RegisterFaces()