/external/pdfium/core/fpdfapi/font/ |
D | cpdf_truetypefont.cpp | 74 int charcode = 0; in LoadGlyphMap() local 75 for (; charcode < nStartChar; charcode++) in LoadGlyphMap() 76 m_GlyphIndex[charcode] = 0; in LoadGlyphMap() 77 uint16_t nGlyph = charcode - nStartChar + 3; in LoadGlyphMap() 78 for (; charcode < 256; charcode++, nGlyph++) in LoadGlyphMap() 79 m_GlyphIndex[charcode] = nGlyph; in LoadGlyphMap() 95 for (int charcode = 0; charcode < 256; charcode++) { in LoadGlyphMap() local 96 const char* name = GetAdobeCharName(baseEncoding, m_CharNames, charcode); in LoadGlyphMap() 98 m_GlyphIndex[charcode] = in LoadGlyphMap() 99 m_pFontFile ? FXFT_Get_Char_Index(m_Font.GetFace(), charcode) : -1; in LoadGlyphMap() [all …]
|
D | cpdf_type1font.cpp | 100 int CPDF_Type1Font::GlyphFromCharCodeExt(uint32_t charcode) { in GlyphFromCharCodeExt() argument 101 if (charcode > 0xff) { in GlyphFromCharCodeExt() 104 int index = m_ExtGID[(uint8_t)charcode]; in GlyphFromCharCodeExt() 133 for (int charcode = 0; charcode < 256; charcode++) { in LoadGlyphMap() local 136 uint16_t unicode = prefix[j] * 256 + charcode; in LoadGlyphMap() 137 m_GlyphIndex[charcode] = in LoadGlyphMap() 140 CalcExtGID(charcode); in LoadGlyphMap() 142 if (m_GlyphIndex[charcode]) { in LoadGlyphMap() 160 for (int charcode = 0; charcode < 256; charcode++) { in LoadGlyphMap() local 162 GetAdobeCharName(m_BaseEncoding, m_CharNames, charcode); in LoadGlyphMap() [all …]
|
D | cpdf_simplefont.cpp | 24 int CPDF_SimpleFont::GlyphFromCharCode(uint32_t charcode, bool* pVertGlyph) { in GlyphFromCharCode() argument 28 if (charcode > 0xff) in GlyphFromCharCode() 31 int index = m_GlyphIndex[charcode]; in GlyphFromCharCode() 38 void CPDF_SimpleFont::LoadCharMetrics(int charcode) { in LoadCharMetrics() argument 42 if (charcode < 0 || charcode > 0xff) { in LoadCharMetrics() 45 int glyph_index = m_GlyphIndex[charcode]; in LoadCharMetrics() 47 if (!m_pFontFile && charcode != 32) { in LoadCharMetrics() 49 m_CharBBox[charcode] = m_CharBBox[32]; in LoadCharMetrics() 51 m_CharWidth[charcode] = m_CharWidth[32]; in LoadCharMetrics() 65 m_CharBBox[charcode] = in LoadCharMetrics() [all …]
|
D | cpdf_cmap.cpp | 208 uint32_t charcode, in GetFourByteCharSizeImpl() argument 215 codes[2] = static_cast<uint8_t>(charcode >> 8 & 0xFF); in GetFourByteCharSizeImpl() 216 codes[3] = static_cast<uint8_t>(charcode); in GetFourByteCharSizeImpl() 315 uint16_t CPDF_CMap::CIDFromCharCode(uint32_t charcode) const { in CIDFromCharCode() 317 return static_cast<uint16_t>(charcode); in CIDFromCharCode() 320 return FPDFAPI_CIDFromCharCode(m_pEmbedMap, charcode); in CIDFromCharCode() 323 return static_cast<uint16_t>(charcode); in CIDFromCharCode() 325 if (charcode < 0x10000) in CIDFromCharCode() 326 return m_DirectCharcodeToCIDTable[charcode]; in CIDFromCharCode() 329 m_AdditionalCharcodeToCIDMappings.end(), charcode, in CIDFromCharCode() [all …]
|
D | cpdf_cidfont.cpp | 145 uint32_t charcode) { in EmbeddedUnicodeFromCharcode() argument 149 uint16_t cid = FPDFAPI_CIDFromCharCode(pEmbedMap, charcode); in EmbeddedUnicodeFromCharcode() 239 uint16_t CPDF_CIDFont::CIDFromCharCode(uint32_t charcode) const { in CIDFromCharCode() 240 return m_pCMap ? m_pCMap->CIDFromCharCode(charcode) in CIDFromCharCode() 241 : static_cast<uint16_t>(charcode); in CIDFromCharCode() 248 WideString CPDF_CIDFont::UnicodeFromCharCode(uint32_t charcode) const { in UnicodeFromCharCode() 249 WideString str = CPDF_Font::UnicodeFromCharCode(charcode); in UnicodeFromCharCode() 252 wchar_t ret = GetUnicodeFromCharCode(charcode); in UnicodeFromCharCode() 256 wchar_t CPDF_CIDFont::GetUnicodeFromCharCode(uint32_t charcode) const { in GetUnicodeFromCharCode() 260 return static_cast<wchar_t>(charcode); in GetUnicodeFromCharCode() [all …]
|
D | cpdf_type3font.cpp | 91 CPDF_Type3Char* CPDF_Type3Font::LoadChar(uint32_t charcode) { in LoadChar() argument 95 auto it = m_CacheMap.find(charcode); in LoadChar() 99 const char* name = GetAdobeCharName(m_BaseEncoding, m_CharNames, charcode); in LoadChar() 120 it = m_CacheMap.find(charcode); in LoadChar() 125 m_CacheMap[charcode] = std::move(pNewChar); in LoadChar() 126 CPDF_Type3Char* pCachedChar = m_CacheMap[charcode].get(); in LoadChar() 132 int CPDF_Type3Font::GetCharWidthF(uint32_t charcode) { in GetCharWidthF() argument 133 if (charcode >= FX_ArraySize(m_CharWidthL)) in GetCharWidthF() 134 charcode = 0; in GetCharWidthF() 136 if (m_CharWidthL[charcode]) in GetCharWidthF() [all …]
|
D | cpdf_fontencoding.cpp | 1770 const char* PDF_CharNameFromPredefinedCharSet(int encoding, uint8_t charcode) { in PDF_CharNameFromPredefinedCharSet() argument 1772 if (charcode < 24) in PDF_CharNameFromPredefinedCharSet() 1775 charcode -= 24; in PDF_CharNameFromPredefinedCharSet() 1777 if (charcode < 32) in PDF_CharNameFromPredefinedCharSet() 1780 charcode -= 32; in PDF_CharNameFromPredefinedCharSet() 1784 return AdobeWinAnsiEncodingNames[charcode]; in PDF_CharNameFromPredefinedCharSet() 1786 return MacRomanEncodingNames[charcode]; in PDF_CharNameFromPredefinedCharSet() 1788 return MacExpertEncodingNames[charcode]; in PDF_CharNameFromPredefinedCharSet() 1790 return StandardEncodingNames[charcode]; in PDF_CharNameFromPredefinedCharSet() 1792 return AdobeSymbolEncodingNames[charcode]; in PDF_CharNameFromPredefinedCharSet() [all …]
|
D | cpdf_font.h | 60 virtual int AppendChar(char* buf, uint32_t charcode) const; 61 virtual int GlyphFromCharCode(uint32_t charcode, bool* pVertGlyph) = 0; 62 virtual int GlyphFromCharCodeExt(uint32_t charcode); 63 virtual WideString UnicodeFromCharCode(uint32_t charcode) const; 73 void AppendChar(ByteString* str, uint32_t charcode) const; 79 uint32_t FallbackFontFromCharcode(uint32_t charcode); 80 int FallbackGlyphFromCharcode(int fallbackFont, uint32_t charcode); 82 virtual int GetCharWidthF(uint32_t charcode) = 0; 83 virtual FX_RECT GetCharBBox(uint32_t charcode) = 0; 109 int charcode);
|
D | cpdf_font.cpp | 129 int CPDF_Font::GlyphFromCharCodeExt(uint32_t charcode) { in GlyphFromCharCodeExt() argument 130 return GlyphFromCharCode(charcode, nullptr); in GlyphFromCharCodeExt() 138 int CPDF_Font::AppendChar(char* buf, uint32_t charcode) const { in AppendChar() 139 *buf = static_cast<char>(charcode); in AppendChar() 143 void CPDF_Font::AppendChar(ByteString* str, uint32_t charcode) const { in AppendChar() 145 int len = AppendChar(buf, charcode); in AppendChar() 149 WideString CPDF_Font::UnicodeFromCharCode(uint32_t charcode) const { in UnicodeFromCharCode() 153 return m_pToUnicodeMap ? m_pToUnicodeMap->Lookup(charcode) : WideString(); in UnicodeFromCharCode() 292 uint32_t charcode = GetNextChar(pString, size, offset); in GetStringWidth() local 293 width += GetCharWidthF(charcode); in GetStringWidth() [all …]
|
D | cpdf_cidfont.h | 46 int GlyphFromCharCode(uint32_t charcode, bool* pVertGlyph) override; 47 int GetCharWidthF(uint32_t charcode) override; 48 FX_RECT GetCharBBox(uint32_t charcode) override; 53 int AppendChar(char* str, uint32_t charcode) const override; 57 WideString UnicodeFromCharCode(uint32_t charcode) const override; 60 uint16_t CIDFromCharCode(uint32_t charcode) const; 64 int GetCharSize(uint32_t charcode) const; 74 wchar_t GetUnicodeFromCharCode(uint32_t charcode) const;
|
D | cpdf_fontencoding.h | 27 wchar_t FT_UnicodeFromCharCode(int encoding, uint32_t charcode); 33 const char* PDF_CharNameFromPredefinedCharSet(int encoding, uint8_t charcode); 46 wchar_t UnicodeFromCharCode(uint8_t charcode) const { in UnicodeFromCharCode() argument 47 return m_Unicodes[charcode]; in UnicodeFromCharCode() 51 void SetUnicode(uint8_t charcode, wchar_t unicode) { in SetUnicode() argument 52 m_Unicodes[charcode] = unicode; in SetUnicode()
|
D | cpdf_simplefont.h | 23 int GetCharWidthF(uint32_t charcode) override; 24 FX_RECT GetCharBBox(uint32_t charcode) override; 25 int GlyphFromCharCode(uint32_t charcode, bool* pVertGlyph) override; 27 WideString UnicodeFromCharCode(uint32_t charcode) const override; 39 void LoadCharMetrics(int charcode);
|
D | cpdf_type1font.h | 21 int GlyphFromCharCodeExt(uint32_t charcode) override; 33 void SetExtGID(const char* name, int charcode); 34 void CalcExtGID(int charcode);
|
D | cpdf_type3font.h | 29 int GetCharWidthF(uint32_t charcode) override; 30 FX_RECT GetCharBBox(uint32_t charcode) override; 35 CPDF_Type3Char* LoadChar(uint32_t charcode);
|
/external/python/cpython3/Tools/scripts/ |
D | parseentities.py | 29 name,charcode,comment = m.groups() 30 d[name] = charcode,comment 38 for name, (charcode,comment) in items: 39 if charcode[:2] == '&#': 40 code = int(charcode[2:-1]) 42 charcode = r"'\%o'" % code 44 charcode = repr(charcode) 46 charcode = repr(charcode) 48 f.write(" '%s':\t%s, \t# %s\n" % (name,charcode,comment))
|
/external/python/cpython2/Tools/scripts/ |
D | parseentities.py | 30 name,charcode,comment = m.groups() 31 d[name] = charcode,comment 40 for name,(charcode,comment) in items: 41 if charcode[:2] == '&#': 42 code = int(charcode[2:-1]) 44 charcode = "'\%o'" % code 46 charcode = repr(charcode) 48 charcode = repr(charcode) 50 f.write(" '%s':\t%s, \t# %s\n" % (name,charcode,comment))
|
/external/pdfium/core/fxge/ |
D | cfx_unicodeencoding.cpp | 18 uint32_t CFX_UnicodeEncoding::GlyphFromCharCode(uint32_t charcode) { in GlyphFromCharCode() argument 21 return charcode; in GlyphFromCharCode() 24 return FXFT_Get_Char_Index(face, charcode); in GlyphFromCharCode() 30 index = FXFT_Get_Char_Index(face, charcode); in GlyphFromCharCode() 32 return FXFT_Get_Char_Index(face, charcode); in GlyphFromCharCode() 34 return charcode; in GlyphFromCharCode()
|
/external/pdfium/testing/resources/pixel/ |
D | bug_113910.evt | 4 charcode,49 5 charcode,50 6 charcode,51 7 charcode,52 8 charcode,13
|
/external/freetype/src/sfnt/ |
D | ttcmap.c | 147 FT_UInt32 charcode = *pchar_code; in tt_cmap0_char_next() local 153 while ( ++charcode < 256 ) in tt_cmap0_char_next() 155 gindex = table[charcode]; in tt_cmap0_char_next() 158 result = charcode; in tt_cmap0_char_next() 502 FT_UInt32 charcode = *pcharcode + 1; in tt_cmap2_char_next() local 506 while ( charcode < 0x10000UL ) in tt_cmap2_char_next() 508 subheader = tt_cmap2_get_subheader( table, charcode ); in tt_cmap2_char_next() 516 FT_UInt char_lo = (FT_UInt)( charcode & 0xFF ); in tt_cmap2_char_next() 520 if ( char_lo >= start + count && charcode <= 0xFF ) in tt_cmap2_char_next() 523 charcode = 0x100; in tt_cmap2_char_next() [all …]
|
/external/pdfium/core/fpdfapi/page/ |
D | cpdf_textobject.cpp | 60 for (uint32_t charcode : m_CharCodes) { in CountChars() local 61 if (charcode != CPDF_Font::kInvalidCharCode) in CountChars() 68 uint32_t* charcode, in GetCharInfo() argument 76 *charcode = m_CharCodes[i]; in GetCharInfo() 91 uint32_t charcode = m_CharCodes[i]; in GetCharInfo() local 92 if (charcode == CPDF_Font::kInvalidCharCode) in GetCharInfo() 178 float CPDF_TextObject::GetCharWidth(uint32_t charcode) const { in GetCharWidth() 186 return pFont->GetCharWidthF(charcode) * fontsize; in GetCharWidth() 188 uint16_t CID = pCIDFont->CIDFromCharCode(charcode); in GetCharWidth() 214 uint32_t charcode = m_CharCodes[i]; in CalcPositionData() local [all …]
|
/external/pdfium/core/fpdfapi/cmaps/ |
D | fpdf_cmaps.cpp | 39 uint16_t FPDFAPI_CIDFromCharCode(const FXCMAP_CMap* pMap, uint32_t charcode) { in FPDFAPI_CIDFromCharCode() argument 41 const uint16_t loword = static_cast<uint16_t>(charcode); in FPDFAPI_CIDFromCharCode() 42 if (charcode >> 16) { in FPDFAPI_CIDFromCharCode() 48 begin, end, charcode, in FPDFAPI_CIDFromCharCode() 49 [](const FXCMAP_DWordCIDMap& element, uint32_t charcode) { in FPDFAPI_CIDFromCharCode() argument 50 uint16_t hiword = static_cast<uint16_t>(charcode >> 16); in FPDFAPI_CIDFromCharCode() 53 return element.m_LoWordHigh < static_cast<uint16_t>(charcode); in FPDFAPI_CIDFromCharCode()
|
/external/freetype/src/autofit/ |
D | afglobal.c | 183 FT_ULong charcode = range->first; in af_face_globals_compute_style_coverage() local 187 gindex = FT_Get_Char_Index( face, charcode ); in af_face_globals_compute_style_coverage() 196 charcode = FT_Get_Next_Char( face, charcode, &gindex ); in af_face_globals_compute_style_coverage() 198 if ( gindex == 0 || charcode > range->last ) in af_face_globals_compute_style_coverage() 212 FT_ULong charcode = range->first; in af_face_globals_compute_style_coverage() local 216 gindex = FT_Get_Char_Index( face, charcode ); in af_face_globals_compute_style_coverage() 225 charcode = FT_Get_Next_Char( face, charcode, &gindex ); in af_face_globals_compute_style_coverage() 227 if ( gindex == 0 || charcode > range->last ) in af_face_globals_compute_style_coverage()
|
/external/freetype/src/type42/ |
D | t42objs.c | 101 FT_Int charcode, idx, min_char, max_char; in T42_Open_Face() local 114 charcode = 0; in T42_Open_Face() 115 for ( ; charcode < loader.encoding_table.max_elems; charcode++ ) in T42_Open_Face() 120 type1->encoding.char_index[charcode] = 0; in T42_Open_Face() 121 type1->encoding.char_name [charcode] = (char *)".notdef"; in T42_Open_Face() 123 char_name = loader.encoding_table.elements[charcode]; in T42_Open_Face() 131 type1->encoding.char_index[charcode] = (FT_UShort)idx; in T42_Open_Face() 132 type1->encoding.char_name [charcode] = (char*)glyph_name; in T42_Open_Face() 139 if ( charcode < min_char ) in T42_Open_Face() 140 min_char = charcode; in T42_Open_Face() [all …]
|
/external/pdfium/core/fpdfapi/render/ |
D | cpdf_type3cache.cpp | 86 CFX_GlyphBitmap* CPDF_Type3Cache::LoadGlyph(uint32_t charcode, in LoadGlyph() argument 104 auto it2 = pSizeCache->m_GlyphMap.find(charcode); in LoadGlyph() 109 RenderGlyph(pSizeCache, charcode, pMatrix, retinaScaleX, retinaScaleY); in LoadGlyph() 111 pSizeCache->m_GlyphMap[charcode] = std::move(pNewBitmap); in LoadGlyph() 117 uint32_t charcode, in RenderGlyph() argument 121 const CPDF_Type3Char* pChar = m_pFont->LoadChar(charcode); in RenderGlyph()
|
/external/freetype/src/pcf/ |
D | pcfdrivr.c | 109 FT_UInt32 charcode ) in pcf_cmap_char_index() argument 128 if ( charcode == code ) in pcf_cmap_char_index() 134 if ( charcode < code ) in pcf_cmap_char_index() 151 FT_ULong charcode = *acharcode + 1; in pcf_cmap_char_next() local 166 if ( charcode == code ) in pcf_cmap_char_next() 172 if ( charcode < code ) in pcf_cmap_char_next() 178 charcode = 0; in pcf_cmap_char_next() 181 charcode = encodings[min].enc; in pcf_cmap_char_next() 186 if ( charcode > 0xFFFFFFFFUL ) in pcf_cmap_char_next() 193 *acharcode = (FT_UInt32)charcode; in pcf_cmap_char_next()
|