Home
last modified time | relevance | path

Searched refs:numGlyphs (Results 1 – 25 of 44) sorted by relevance

12

/external/fonttools/Lib/fontTools/ttLib/tables/
D_p_o_s_t.py73 self.glyphOrder = standardGlyphOrder[:ttFont["maxp"].numGlyphs]
76 numGlyphs, = struct.unpack(">H", data[:2])
77 numGlyphs = int(numGlyphs)
78 if numGlyphs > ttFont['maxp'].numGlyphs:
83 numGlyphs = ttFont['maxp'].numGlyphs
86 indices.fromstring(data[:2*numGlyphs])
89 data = data[2*numGlyphs:]
91 self.glyphOrder = glyphOrder = [None] * int(ttFont['maxp'].numGlyphs)
92 for glyphID in range(numGlyphs):
102 if numGlyphs < ttFont['maxp'].numGlyphs:
[all …]
DL_T_S_H_.py15 version, numGlyphs = struct.unpack(">HH", data[:4])
18 assert (len(data) % numGlyphs) < 4, "numGlyphs doesn't match data length"
24 for i in range(numGlyphs):
30 numGlyphs = len(names)
31 yPels = [0] * numGlyphs
37 return struct.pack(">HH", version, numGlyphs) + yPels.tostring()
D_h_d_m_x.py16 numGlyphs = ttFont['maxp'].numGlyphs
24 for glyphID in range(numGlyphs):
32 numGlyphs = ttFont['maxp'].numGlyphs
34 self.recordSize = 4 * ((2 + numGlyphs + 3) // 4)
35 pad = (self.recordSize - 2 - numGlyphs) * b"\0"
DT_S_I__5.py12 numGlyphs = ttFont['maxp'].numGlyphs
13 assert len(data) == 2 * numGlyphs
19 for i in range(numGlyphs):
D_h_m_t_x.py18 numGlyphs = ttFont['maxp'].numGlyphs
20 if numberOfMetrics > numGlyphs:
21 numberOfMetrics = numGlyphs # We warn later.
27 numberOfSideBearings = numGlyphs - numberOfMetrics
DT_S_I__0.py17 numGlyphs = ttFont['maxp'].numGlyphs
20 for i in range(numGlyphs + 5):
D_m_a_x_p.py37 self.numGlyphs = int(self.numGlyphs)
48 self.numGlyphs = len(ttFont.getGlyphOrder())
64 self.numGlyphs = len(glyfTable)
D_l_o_c_a.py27 if len(locations) < (ttFont['maxp'].numGlyphs + 1):
28 …loca' table, or wrong numGlyphs in 'maxp': %d %d" % (len(locations) - 1, ttFont['maxp'].numGlyphs))
DE_B_L_C_.py431 numGlyphs = self.lastGlyphIndex - self.firstGlyphIndex + 1
432 indexingOffsets = [glyphIndex * offsetDataSize for glyphIndex in range(numGlyphs+2)]
547 (numGlyphs,) = struct.unpack(">L", self.data[:4])
549 indexingOffsets = [glyphIndex * codeOffsetPairSize for glyphIndex in range(numGlyphs+2)]
590 (numGlyphs,) = struct.unpack(">L", data[:4])
592 glyphIds = [struct.unpack(">H", data[2*i:2*(i+1)])[0] for i in range(numGlyphs)]
/external/skia/src/sfnt/
DSkOTTable_maxp_CFF.h20 SK_OT_USHORT numGlyphs; member
27 static_assert(offsetof(SkOTTableMaximumProfile_CFF, numGlyphs) == 4, "SkOTTableMaximumProfile_CFF_n…
DSkOTTable_EBLC.h123 SK_OT_ULONG numGlyphs; member
135 SK_OT_ULONG numGlyphs; member
DSkOTTable_maxp_TT.h21 SK_OT_USHORT numGlyphs; member
/external/harfbuzz_ng/src/
Dhb-ot-maxp-table.hh48 return numGlyphs; in get_num_glyphs()
63 USHORT numGlyphs; /* The number of glyphs in the font. */ member
/external/skia/src/pdf/
DSkPDFFont.h28 void set(const uint16_t* glyphIDs, int numGlyphs);
64 int numGlyphs);
119 int glyphsToPDFFontEncoding(uint16_t* glyphIDs, int numGlyphs);
DSkPDFDevice.cpp132 int numGlyphs = paint.textToGlyphs(text, len, nullptr); in force_glyph_encoding() local
133 storage->reset(numGlyphs); in force_glyph_encoding()
136 return numGlyphs; in force_glyph_encoding()
141 int numGlyphs = SkToInt(len / 2); in force_glyph_encoding() local
146 for (validated = 0; validated < numGlyphs; ++validated) { in force_glyph_encoding()
151 if (validated >= numGlyphs) { in force_glyph_encoding()
153 return numGlyphs; in force_glyph_encoding()
157 storage->reset(numGlyphs); in force_glyph_encoding()
162 for (int i = validated; i < numGlyphs; ++i) { in force_glyph_encoding()
169 return numGlyphs; in force_glyph_encoding()
[all …]
DSkPDFFont.cpp642 void SkPDFGlyphSet::set(const uint16_t* glyphIDs, int numGlyphs) { in set() argument
643 for (int i = 0; i < numGlyphs; ++i) { in set()
707 int numGlyphs) { in noteGlyphUsage() argument
710 subset->set(glyphIDs, numGlyphs); in noteGlyphUsage()
776 int SkPDFFont::glyphsToPDFFontEncoding(uint16_t* glyphIDs, int numGlyphs) { in glyphsToPDFFontEncoding() argument
779 return numGlyphs; in glyphsToPDFFontEncoding()
782 for (int i = 0; i < numGlyphs; i++) { in glyphsToPDFFontEncoding()
792 return numGlyphs; in glyphsToPDFFontEncoding()
/external/icu/icu4c/source/test/perf/leperf/
DFontObject.cpp18 headTable(NULL), hmtxTable(NULL), numGlyphs(0), numOfLongHorMetrics(0), file(NULL) in FontObject()
217 numGlyphs = SWAPW(maxpTable->numGlyphs); in getGlyphAdvance()
229 if (glyph >= numGlyphs) { in getGlyphAdvance()
DFontObject.h132 le_uint16 numGlyphs; member
227 le_uint16 numGlyphs; variable
/external/icu/icu4c/source/test/letest/
DFontObject.cpp18 headTable(NULL), hmtxTable(NULL), numGlyphs(0), numOfLongHorMetrics(0), file(NULL) in FontObject()
217 numGlyphs = SWAPW(maxpTable->numGlyphs); in getGlyphAdvance()
229 if (glyph >= numGlyphs) { in getGlyphAdvance()
DFontObject.h132 le_uint16 numGlyphs; member
227 le_uint16 numGlyphs; variable
/external/fonttools/Lib/fontTools/
DcffLib.py452 def __init__(self, file = None, numGlyphs = None, format=None): argument
458 self.gidArray = array("B", file.read(numGlyphs)).tolist()
460 gidArray = [None] * numGlyphs
559 numGlyphs = len(names)
577 progress.increment(step / numGlyphs)
784 numGlyphs = parent.numGlyphs
791 charset = parseCharset0(numGlyphs, file, parent.strings, isCID)
793 charset = parseCharset(numGlyphs, file, parent.strings, isCID, format)
796 assert len(charset) == numGlyphs
901 def parseCharset0(numGlyphs, file, strings, isCID): argument
[all …]
/external/freetype/src/sfnt/
Dttpost.c179 if ( num_glyphs > face->max_profile.numGlyphs ) in load_format_20()
329 if ( num_glyphs > face->max_profile.numGlyphs || num_glyphs > 258 ) in load_format_25()
496 if ( idx >= (FT_UInt)face->max_profile.numGlyphs ) in tt_face_get_ps_name()
/external/pdfium/third_party/freetype/src/sfnt/
Dttpost.c179 if ( num_glyphs > face->max_profile.numGlyphs ) in load_format_20()
329 if ( num_glyphs > face->max_profile.numGlyphs || num_glyphs > 258 ) in load_format_25()
496 if ( idx >= (FT_UInt)face->max_profile.numGlyphs ) in tt_face_get_ps_name()
/external/fonttools/Lib/fontTools/ttLib/
D__init__.py479 numGlyphs = int(self['maxp'].numGlyphs)
480 glyphOrder = [None] * numGlyphs
482 for i in range(1, numGlyphs):
498 for i in range(numGlyphs):
/external/skia/src/gpu/batches/
DGrAtlasTextBatch.cpp121 int glyphCount = this->numGlyphs(); in onPrepareDraws()
226 fBatch.fNumGlyphs += that->numGlyphs(); in onCombineIfPossible()

12