Lines Matching refs:pFont
548 CPDF_Font* CPDF_Document::AddMacFont(CTFontRef pFont,
551 CTFontRef font = (CTFontRef)pFont;
797 static void _InsertWidthArray1(CFX_Font* pFont,
807 widths[i] = pFont->GetGlyphWidth(glyph_index);
827 CPDF_Font* CPDF_Document::AddFont(CFX_Font* pFont, int charset, FX_BOOL bVert) {
828 if (!pFont) {
835 CFX_ByteString basefont = pFont->GetFamilyName();
838 if (pFont->IsBold()) {
841 if (pFont->IsItalic()) {
844 if (pFont->IsFixedWidth()) {
850 new CFX_UnicodeEncoding(pFont));
857 int char_width = pFont->GetGlyphWidth(glyph_index);
870 int char_width = pFont->GetGlyphWidth(glyph_index);
895 int char_width = pFont->GetGlyphWidth(glyph_index);
903 if (pFont->IsBold() && pFont->IsItalic()) {
905 } else if (pFont->IsBold()) {
907 } else if (pFont->IsItalic()) {
928 _InsertWidthArray1(pFont, pEncoding.get(), 0x20, 0x7e, pWidthArray);
934 _InsertWidthArray1(pFont, pEncoding.get(), 0x20, 0x20, pWidthArray);
936 _InsertWidthArray1(pFont, pEncoding.get(), 0x21, 0x7e, pWidthArray);
943 _InsertWidthArray1(pFont, pEncoding.get(), 0x20, 0x7e, pWidthArray);
950 _InsertWidthArray1(pFont, pEncoding.get(), 0x20, 0x7d, pWidthArray);
952 _InsertWidthArray1(pFont, pEncoding.get(), 0xa0, 0xa0, pWidthArray);
954 _InsertWidthArray1(pFont, pEncoding.get(), 0xa1, 0xdf, pWidthArray);
956 _InsertWidthArray1(pFont, pEncoding.get(), 0x7e, 0x7e, pWidthArray);
983 pFont->GetSubstFont() ? pFont->GetSubstFont()->m_ItalicAngle : 0);
984 pFontDesc->SetAtInteger("Ascent", pFont->GetAscent());
985 pFontDesc->SetAtInteger("Descent", pFont->GetDescent());
987 pFont->GetBBox(bbox);
995 if (pFont->GetSubstFont()) {
996 nStemV = pFont->GetSubstFont()->m_Weight / 5;
1001 nStemV = pFont->GetGlyphWidth(glyph);
1004 int width = pFont->GetGlyphWidth(glyph);