/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | _p_o_s_t.py | 72 self.glyphOrder = standardGlyphOrder[:ttFont["maxp"].numGlyphs] 75 numGlyphs, = struct.unpack(">H", data[:2]) 76 numGlyphs = int(numGlyphs) 77 if numGlyphs > ttFont['maxp'].numGlyphs: 82 numGlyphs = ttFont['maxp'].numGlyphs 85 indices.frombytes(data[:2*numGlyphs]) 87 data = data[2*numGlyphs:] 89 self.glyphOrder = glyphOrder = [""] * int(ttFont['maxp'].numGlyphs) 90 for glyphID in range(numGlyphs): 106 for i in range(ttFont['maxp'].numGlyphs): [all …]
|
D | L_T_S_H_.py | 13 version, numGlyphs = struct.unpack(">HH", data[:4]) 16 assert (len(data) % numGlyphs) < 4, "numGlyphs doesn't match data length" 22 for i in range(numGlyphs): 28 numGlyphs = len(names) 29 yPels = [0] * numGlyphs 35 return struct.pack(">HH", version, numGlyphs) + yPels.tobytes()
|
D | _h_d_m_x.py | 35 numGlyphs = ttFont['maxp'].numGlyphs 42 widths = _GlyphnamedList(ttFont.getReverseGlyphMap(), array.array("B", data[2:2+numGlyphs])) 49 numGlyphs = ttFont['maxp'].numGlyphs 51 self.recordSize = 4 * ((2 + numGlyphs + 3) // 4) 52 pad = (self.recordSize - 2 - numGlyphs) * b"\0"
|
D | _h_m_t_x.py | 23 numGlyphs = ttFont['maxp'].numGlyphs 28 numberOfMetrics = numGlyphs 29 if numberOfMetrics > numGlyphs: 32 numberOfMetrics = numGlyphs 41 numberOfSideBearings = numGlyphs - numberOfMetrics 92 numberOfMetrics = ttFont["maxp"].numGlyphs
|
D | T_S_I__5.py | 15 numGlyphs = ttFont['maxp'].numGlyphs 16 assert len(data) == 2 * numGlyphs 21 for i in range(numGlyphs):
|
D | T_S_I__0.py | 22 numGlyphs = ttFont['maxp'].numGlyphs 25 for i in range(numGlyphs + 5):
|
D | _m_a_x_p.py | 35 self.numGlyphs = int(self.numGlyphs) 46 self.numGlyphs = len(ttFont.getGlyphOrder()) 62 self.numGlyphs = len(glyfTable)
|
D | sbixStrike.py | 46 …self.numGlyphs = (firstGlyphDataOffset - sbixStrikeHeaderFormatSize) // sbixGlyphDataOffsetFormatS… 51 for i in range(self.numGlyphs + 1): # + 1 because there's one more offset than glyphs 57 for i in range(self.numGlyphs): 62 del self.numGlyphs
|
D | _l_o_c_a.py | 28 if len(locations) < (ttFont['maxp'].numGlyphs + 1): 30 len(locations) - 1, ttFont['maxp'].numGlyphs)
|
D | E_B_L_C_.py | 436 numGlyphs = self.lastGlyphIndex - self.firstGlyphIndex + 1 437 indexingOffsets = [glyphIndex * offsetDataSize for glyphIndex in range(numGlyphs+2)] 554 (numGlyphs,) = struct.unpack(">L", self.data[:4]) 556 indexingOffsets = [glyphIndex * codeOffsetPairSize for glyphIndex in range(numGlyphs+2)] 598 (numGlyphs,) = struct.unpack(">L", data[:4]) 600 glyphIds = [struct.unpack(">H", data[2*i:2*(i+1)])[0] for i in range(numGlyphs)]
|
/external/fonttools/Tests/ttLib/tables/ |
D | _h_m_t_x_test.py | 24 def makeFont(self, numGlyphs, numberOfMetrics): argument 27 maxp.numGlyphs = numGlyphs 29 font.glyphOrder = [chr(i) for i in range(65, 65+numGlyphs)] 37 font = self.makeFont(numGlyphs=3, numberOfMetrics=3) 48 font = self.makeFont(numGlyphs=4, numberOfMetrics=2) 63 font = self.makeFont(numGlyphs=1, numberOfMetrics=1) 71 font = self.makeFont(numGlyphs=1, numberOfMetrics=1) 82 font = self.makeFont(numGlyphs=1, numberOfMetrics=2) 94 font = self.makeFont(numGlyphs=1, numberOfMetrics=1) 110 maxp.numGlyphs = 3 [all …]
|
D | T_S_I__0_test.py | 64 def test_decompile(table, numGlyphs, data, expected_indices, argument 66 font = {'maxp': SimpleNamespace(numGlyphs=numGlyphs)} 70 assert len(table.indices) == numGlyphs 84 def test_compile(table, numGlyphs, indices, extra_indices, expected_data): argument
|
/external/harfbuzz_ng/src/ |
D | hb-ot-maxp-table.hh | 76 unsigned int get_num_glyphs () const { return numGlyphs; } in get_num_glyphs() 80 numGlyphs = count; in set_num_glyphs() 103 maxp_prime->numGlyphs = c->plan->num_output_glyphs (); in subset() 131 HBUINT16 numGlyphs; /* The number of glyphs in the font. */ member
|
/external/skia/modules/skshaper/src/ |
D | SkShaper_primitive.cpp | 190 size_t numGlyphs = SkUTF::CountUTF8(utf8, bytesVisible); in shape() local 195 numGlyphs, in shape() 203 memcpy(buffer.glyphs, glyphs.get() + glyphOffset, numGlyphs * sizeof(SkGlyphID)); in shape() 205 for (size_t i = 0; i < numGlyphs; ++i) { in shape() 211 for (size_t i = 0; i < numGlyphs; ++i) { in shape()
|
/external/skqp/src/sfnt/ |
D | SkOTTable_maxp_CFF.h | 20 SK_OT_USHORT numGlyphs; member 27 static_assert(offsetof(SkOTTableMaximumProfile_CFF, numGlyphs) == 4, "SkOTTableMaximumProfile_CFF_n…
|
D | SkOTTable_EBLC.h | 121 SK_OT_ULONG numGlyphs; member 133 SK_OT_ULONG numGlyphs; member
|
/external/skia/src/sfnt/ |
D | SkOTTable_maxp_CFF.h | 20 SK_OT_USHORT numGlyphs; member 27 static_assert(offsetof(SkOTTableMaximumProfile_CFF, numGlyphs) == 4, "SkOTTableMaximumProfile_CFF_n…
|
D | SkOTTable_EBLC.h | 121 SK_OT_ULONG numGlyphs; member 133 SK_OT_ULONG numGlyphs; member
|
/external/icu/icu4c/source/test/perf/leperf/ |
D | FontObject.cpp | 24 headTable(NULL), hmtxTable(NULL), numGlyphs(0), numOfLongHorMetrics(0), file(NULL) in FontObject() 223 numGlyphs = SWAPW(maxpTable->numGlyphs); in getGlyphAdvance() 235 if (glyph >= numGlyphs) { in getGlyphAdvance()
|
D | FontObject.h | 138 le_uint16 numGlyphs; member 233 le_uint16 numGlyphs; variable
|
/external/icu/icu4c/source/test/letest/ |
D | FontObject.cpp | 20 headTable(NULL), hmtxTable(NULL), numGlyphs(0), numOfLongHorMetrics(0), file(NULL) in FontObject() 219 numGlyphs = SWAPW(maxpTable->numGlyphs); in getGlyphAdvance() 231 if (glyph >= numGlyphs) { in getGlyphAdvance()
|
D | FontObject.h | 134 le_uint16 numGlyphs; member 229 le_uint16 numGlyphs; variable
|
/external/fonttools/Lib/fontTools/ttLib/ |
D | woff2.py | 699 bboxBitmapSize = ((self.numGlyphs + 31) >> 5) << 2 706 assert len(self.nContourStream) == self.numGlyphs 716 self.glyphOrder.extend(["glyph%.5d" % i for i in range(1, self.numGlyphs)]) 718 if len(self.glyphOrder) != self.numGlyphs: 721 (len(self.glyphOrder), self.numGlyphs)) 730 self.numGlyphs = len(self.glyphs) 731 assert len(self.glyphOrder) == self.numGlyphs 733 ttFont['maxp'].numGlyphs = self.numGlyphs 738 bboxBitmapSize = ((self.numGlyphs + 31) >> 5) << 2 741 for glyphID in range(self.numGlyphs): [all …]
|
/external/freetype/src/sfnt/ |
D | ttpost.c | 182 if ( num_glyphs > face->max_profile.numGlyphs ) in load_format_20() 331 if ( num_glyphs > face->max_profile.numGlyphs || in load_format_25() 503 if ( idx >= (FT_UInt)face->max_profile.numGlyphs ) in tt_face_get_ps_name()
|
/external/fonttools/Lib/fontTools/cffLib/ |
D | __init__.py | 945 def __init__(self, file=None, numGlyphs=None, format=None): argument 951 self.gidArray = array("B", file.read(numGlyphs)).tolist() 953 gidArray = [None] * numGlyphs 970 gidArray = [None] * numGlyphs 1459 numGlyphs = parent.numGlyphs 1465 charset = parseCharset0(numGlyphs, file, parent.strings, isCID) 1467 charset = parseCharset(numGlyphs, file, parent.strings, isCID, format) 1470 assert len(charset) == numGlyphs 1498 if charset and (len(charset) != parent.numGlyphs): 1499 charset = charset[:parent.numGlyphs] [all …]
|