Home
last modified time | relevance | path

Searched refs:charcode (Results 1 – 25 of 77) sorted by relevance

1234

/external/pdfium/testing/resources/pixel/xfa_specific/
Ddynamic_password_field_background_fill.evt4 charcode,72
5 charcode,101
6 charcode,108
7 charcode,108
8 charcode,111
9 charcode,33
12 charcode,72
13 charcode,101
14 charcode,108
15 charcode,108
[all …]
Dbarcode_test.evt3 charcode,72
4 charcode,101
5 charcode,108
6 charcode,108
7 charcode,111
8 charcode,33
/external/pdfium/core/fpdfapi/font/
Dcpdf_truetypefont.cpp20 uint16_t GetGlyphIndexForMSSymbol(FXFT_FaceRec* face, uint32_t charcode) { in GetGlyphIndexForMSSymbol() argument
22 uint16_t unicode = c * 256 + charcode; in GetGlyphIndexForMSSymbol()
75 for (uint32_t charcode = 0; charcode < 256; charcode++) { in LoadGlyphMap() local
76 const char* name = GetAdobeCharName(base_encoding, m_CharNames, charcode); in LoadGlyphMap()
78 m_GlyphIndex[charcode] = in LoadGlyphMap()
79 m_pFontFile ? FT_Get_Char_Index(face, charcode) : -1; in LoadGlyphMap()
82 m_Encoding.SetUnicode(charcode, UnicodeFromAdobeName(name)); in LoadGlyphMap()
84 m_GlyphIndex[charcode] = GetGlyphIndexForMSSymbol(face, charcode); in LoadGlyphMap()
85 } else if (m_Encoding.UnicodeFromCharCode(charcode)) { in LoadGlyphMap()
87 m_GlyphIndex[charcode] = in LoadGlyphMap()
[all …]
Dcpdf_type1font.cpp116 int CPDF_Type1Font::GlyphFromCharCodeExt(uint32_t charcode) { in GlyphFromCharCodeExt() argument
117 if (charcode > 0xff) in GlyphFromCharCodeExt()
120 int index = m_ExtGID[static_cast<uint8_t>(charcode)]; in GlyphFromCharCodeExt()
145 for (uint32_t charcode = 0; charcode < kInternalTableSize; charcode++) { in LoadGlyphMap() local
148 uint16_t unicode = prefix[j] * 256 + charcode; in LoadGlyphMap()
149 m_GlyphIndex[charcode] = in LoadGlyphMap()
152 CalcExtGID(charcode); in LoadGlyphMap()
154 if (m_GlyphIndex[charcode]) { in LoadGlyphMap()
172 for (uint32_t charcode = 0; charcode < kInternalTableSize; charcode++) { in LoadGlyphMap() local
174 GetAdobeCharName(m_BaseEncoding, m_CharNames, charcode); in LoadGlyphMap()
[all …]
Dcpdf_simplefont.cpp48 int CPDF_SimpleFont::GlyphFromCharCode(uint32_t charcode, bool* pVertGlyph) { in GlyphFromCharCode() argument
52 if (charcode > 0xff) in GlyphFromCharCode()
55 int index = m_GlyphIndex[charcode]; in GlyphFromCharCode()
62 void CPDF_SimpleFont::LoadCharMetrics(int charcode) { in LoadCharMetrics() argument
66 if (charcode < 0 || charcode > 0xff) { in LoadCharMetrics()
69 int glyph_index = m_GlyphIndex[charcode]; in LoadCharMetrics()
71 if (!m_pFontFile && charcode != 32) { in LoadCharMetrics()
73 m_CharBBox[charcode] = m_CharBBox[32]; in LoadCharMetrics()
75 m_CharWidth[charcode] = m_CharWidth[32]; in LoadCharMetrics()
89 m_CharBBox[charcode] = in LoadCharMetrics()
[all …]
Dcpdf_cmap.cpp253 uint32_t charcode, in GetFourByteCharSizeImpl() argument
260 codes[2] = static_cast<uint8_t>(charcode >> 8 & 0xFF); in GetFourByteCharSizeImpl()
261 codes[3] = static_cast<uint8_t>(charcode); in GetFourByteCharSizeImpl()
335 uint16_t CPDF_CMap::CIDFromCharCode(uint32_t charcode) const { in CIDFromCharCode()
337 return static_cast<uint16_t>(charcode); in CIDFromCharCode()
340 return fxcmap::CIDFromCharCode(m_pEmbedMap, charcode); in CIDFromCharCode()
343 return static_cast<uint16_t>(charcode); in CIDFromCharCode()
346 if (charcode < table_span.size()) in CIDFromCharCode()
347 return table_span[charcode]; in CIDFromCharCode()
350 m_AdditionalCharcodeToCIDMappings.end(), charcode, in CIDFromCharCode()
[all …]
Dcpdf_cidfont.cpp164 uint32_t charcode) { in EmbeddedUnicodeFromCharcode() argument
168 uint16_t cid = fxcmap::CIDFromCharCode(pEmbedMap, charcode); in EmbeddedUnicodeFromCharcode()
301 uint16_t CPDF_CIDFont::CIDFromCharCode(uint32_t charcode) const { in CIDFromCharCode()
302 return m_pCMap ? m_pCMap->CIDFromCharCode(charcode) in CIDFromCharCode()
303 : static_cast<uint16_t>(charcode); in CIDFromCharCode()
310 WideString CPDF_CIDFont::UnicodeFromCharCode(uint32_t charcode) const { in UnicodeFromCharCode()
311 WideString str = CPDF_Font::UnicodeFromCharCode(charcode); in UnicodeFromCharCode()
314 wchar_t ret = GetUnicodeFromCharCode(charcode); in UnicodeFromCharCode()
318 wchar_t CPDF_CIDFont::GetUnicodeFromCharCode(uint32_t charcode) const { in GetUnicodeFromCharCode()
322 return static_cast<wchar_t>(charcode); in GetUnicodeFromCharCode()
[all …]
Dcpdf_type3font.cpp106 CPDF_Type3Char* CPDF_Type3Font::LoadChar(uint32_t charcode) { in LoadChar() argument
110 auto it = m_CacheMap.find(charcode); in LoadChar()
114 const char* name = GetAdobeCharName(m_BaseEncoding, m_CharNames, charcode); in LoadChar()
140 it = m_CacheMap.find(charcode); in LoadChar()
149 m_CacheMap[charcode] = std::move(pNewChar); in LoadChar()
153 int CPDF_Type3Font::GetCharWidthF(uint32_t charcode) { in GetCharWidthF() argument
154 if (charcode >= std::size(m_CharWidthL)) in GetCharWidthF()
155 charcode = 0; in GetCharWidthF()
157 if (m_CharWidthL[charcode]) in GetCharWidthF()
158 return m_CharWidthL[charcode]; in GetCharWidthF()
[all …]
Dcpdf_cidfont.h47 int GlyphFromCharCode(uint32_t charcode, bool* pVertGlyph) override;
48 int GetCharWidthF(uint32_t charcode) override;
49 FX_RECT GetCharBBox(uint32_t charcode) override;
52 int AppendChar(char* str, uint32_t charcode) const override;
56 WideString UnicodeFromCharCode(uint32_t charcode) const override;
59 uint16_t CIDFromCharCode(uint32_t charcode) const;
63 int GetCharSize(uint32_t charcode) const;
77 wchar_t GetUnicodeFromCharCode(uint32_t charcode) const;
Dcpdf_fontencoding.h28 wchar_t UnicodeFromAppleRomanCharCode(uint8_t charcode);
32 uint8_t charcode);
44 wchar_t UnicodeFromCharCode(uint8_t charcode) const { in UnicodeFromCharCode() argument
45 return m_Unicodes[charcode]; in UnicodeFromCharCode()
49 void SetUnicode(uint8_t charcode, wchar_t unicode) { in SetUnicode() argument
50 m_Unicodes[charcode] = unicode; in SetUnicode()
Dcpdf_fontencoding.cpp1753 wchar_t UnicodeFromAppleRomanCharCode(uint8_t charcode) { in UnicodeFromAppleRomanCharCode() argument
1754 return kMacRomanEncoding[charcode]; in UnicodeFromAppleRomanCharCode()
1781 uint8_t charcode) { in CharNameFromPredefinedCharSet() argument
1783 if (charcode < kPDFDocEncodingTableFirstChar) in CharNameFromPredefinedCharSet()
1786 charcode -= kPDFDocEncodingTableFirstChar; in CharNameFromPredefinedCharSet()
1788 if (charcode < kEncodingTableFirstChar) in CharNameFromPredefinedCharSet()
1791 charcode -= kEncodingTableFirstChar; in CharNameFromPredefinedCharSet()
1795 return kAdobeWinAnsiEncodingNames[charcode]; in CharNameFromPredefinedCharSet()
1797 return kMacRomanEncodingNames[charcode]; in CharNameFromPredefinedCharSet()
1799 return kMacExpertEncodingNames[charcode]; in CharNameFromPredefinedCharSet()
[all …]
Dcpdf_font.cpp115 int CPDF_Font::GlyphFromCharCodeExt(uint32_t charcode) { in GlyphFromCharCodeExt() argument
116 return GlyphFromCharCode(charcode, nullptr); in GlyphFromCharCodeExt()
127 int CPDF_Font::AppendChar(char* buf, uint32_t charcode) const { in AppendChar()
128 *buf = static_cast<char>(charcode); in AppendChar()
132 void CPDF_Font::AppendChar(ByteString* str, uint32_t charcode) const { in AppendChar()
134 int len = AppendChar(buf, charcode); in AppendChar()
138 WideString CPDF_Font::UnicodeFromCharCode(uint32_t charcode) const { in UnicodeFromCharCode()
142 return m_pToUnicodeMap ? m_pToUnicodeMap->Lookup(charcode) : WideString(); in UnicodeFromCharCode()
357 uint32_t charcode) { in GetAdobeCharName() argument
358 if (charcode >= 256) in GetAdobeCharName()
[all …]
Dcpdf_font.h91 virtual int AppendChar(char* buf, uint32_t charcode) const;
92 virtual int GlyphFromCharCode(uint32_t charcode, bool* pVertGlyph) = 0;
94 virtual int GlyphFromCharCodeExt(uint32_t charcode);
96 virtual WideString UnicodeFromCharCode(uint32_t charcode) const;
112 void AppendChar(ByteString* str, uint32_t charcode) const;
118 uint32_t FallbackFontFromCharcode(uint32_t charcode);
119 int FallbackGlyphFromCharcode(int fallbackFont, uint32_t charcode);
124 virtual int GetCharWidthF(uint32_t charcode) = 0;
125 virtual FX_RECT GetCharBBox(uint32_t charcode) = 0;
160 uint32_t charcode);
Dcpdf_simplefont.h23 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;
44 void LoadCharMetrics(int charcode);
/external/pdfium/testing/resources/pixel/
Dpassword.evt4 charcode,116
5 charcode,105
6 charcode,103
7 charcode,101
8 charcode,114
9 charcode,115
10 charcode,115
11 charcode,115
12 charcode,115
17 charcode,116
[all …]
Dbug_113910.evt4 charcode,49
5 charcode,50
6 charcode,51
7 charcode,52
8 charcode,13
/external/python/cpython2/Tools/scripts/
Dparseentities.py30 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/python/cpython3/Tools/scripts/
Dparseentities.py29 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/pdfium/testing/resources/pixel/xfa_specific/use_ahem/
Dxfa_textfield.evt2 charcode,72
3 charcode,101
4 charcode,108
5 charcode,108
6 charcode,111
7 charcode,33
/external/pdfium/core/fxge/
Dcfx_unicodeencoding.cpp20 uint32_t CFX_UnicodeEncoding::GlyphFromCharCode(uint32_t charcode) { in GlyphFromCharCode() argument
23 return charcode; in GlyphFromCharCode()
26 return FT_Get_Char_Index(face, charcode); in GlyphFromCharCode()
32 index = FT_Get_Char_Index(face, charcode); in GlyphFromCharCode()
34 return FT_Get_Char_Index(face, charcode); in GlyphFromCharCode()
36 return charcode; in GlyphFromCharCode()
/external/pdfium/core/fpdfapi/page/
Dcpdf_textobject.cpp70 for (uint32_t charcode : m_CharCodes) { in CountChars() local
71 if (charcode != CPDF_Font::kInvalidCharCode) in CountChars()
92 uint32_t charcode = m_CharCodes[i]; in GetCharInfo() local
93 if (charcode == CPDF_Font::kInvalidCharCode) in GetCharInfo()
106 uint32_t charcode = GetCharCode(i); in CountWords() local
108 WideString swUnicode = pFont->UnicodeFromCharCode(charcode); in CountWords()
131 uint32_t charcode = GetCharCode(i); in GetWordString() local
133 WideString swUnicode = pFont->UnicodeFromCharCode(charcode); in GetWordString()
231 float CPDF_TextObject::GetCharWidth(uint32_t charcode) const { in GetCharWidth()
236 return pFont->GetCharWidthF(charcode) * fontsize; in GetCharWidth()
[all …]
/external/freetype/src/sfnt/
Dttcmap.c146 FT_UInt32 charcode = *pchar_code; in tt_cmap0_char_next() local
152 while ( ++charcode < 256 ) in tt_cmap0_char_next()
154 gindex = table[charcode]; in tt_cmap0_char_next()
157 result = charcode; in tt_cmap0_char_next()
501 FT_UInt32 charcode = *pcharcode + 1; in tt_cmap2_char_next() local
505 while ( charcode < 0x10000UL ) in tt_cmap2_char_next()
507 subheader = tt_cmap2_get_subheader( table, charcode ); in tt_cmap2_char_next()
515 FT_UInt char_lo = (FT_UInt)( charcode & 0xFF ); in tt_cmap2_char_next()
519 if ( char_lo >= start + count && charcode <= 0xFF ) in tt_cmap2_char_next()
522 charcode = 0x100; in tt_cmap2_char_next()
[all …]
/external/pdfium/testing/resources/javascript/xfa_specific/
Dbug_976753.evt3 charcode,72
4 charcode,72
5 charcode,72
6 charcode,72
/external/pdfium/core/fpdfapi/cmaps/
Dfpdf_cmaps.cpp34 uint16_t CIDFromCharCode(const CMap* pMap, uint32_t charcode) { in CIDFromCharCode() argument
36 const uint16_t loword = static_cast<uint16_t>(charcode); in CIDFromCharCode()
37 if (charcode >> 16) { in CIDFromCharCode()
43 begin, end, charcode, in CIDFromCharCode()
44 [](const DWordCIDMap& element, uint32_t charcode) { in CIDFromCharCode() argument
45 uint16_t hiword = static_cast<uint16_t>(charcode >> 16); in CIDFromCharCode()
48 return element.m_LoWordHigh < static_cast<uint16_t>(charcode); in CIDFromCharCode()
/external/freetype/src/autofit/
Dafglobal.c178 FT_ULong charcode = range->first; in af_face_globals_compute_style_coverage() local
182 gindex = FT_Get_Char_Index( face, charcode ); in af_face_globals_compute_style_coverage()
191 charcode = FT_Get_Next_Char( face, charcode, &gindex ); in af_face_globals_compute_style_coverage()
193 if ( gindex == 0 || charcode > range->last ) in af_face_globals_compute_style_coverage()
207 FT_ULong charcode = range->first; in af_face_globals_compute_style_coverage() local
211 gindex = FT_Get_Char_Index( face, charcode ); in af_face_globals_compute_style_coverage()
220 charcode = FT_Get_Next_Char( face, charcode, &gindex ); in af_face_globals_compute_style_coverage()
222 if ( gindex == 0 || charcode > range->last ) in af_face_globals_compute_style_coverage()

1234