Home
last modified time | relevance | path

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

123

/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])
88 data = data[2*numGlyphs:]
90 self.glyphOrder = glyphOrder = [""] * int(ttFont['maxp'].numGlyphs)
91 for glyphID in range(numGlyphs):
107 for i in range(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_m_t_x.py25 numGlyphs = ttFont['maxp'].numGlyphs
30 numberOfMetrics = numGlyphs
31 if numberOfMetrics > numGlyphs:
34 numberOfMetrics = numGlyphs
43 numberOfSideBearings = numGlyphs - numberOfMetrics
94 numberOfMetrics = ttFont["maxp"].numGlyphs
D_h_d_m_x.py40 numGlyphs = ttFont['maxp'].numGlyphs
47 widths = _GlyphnamedList(ttFont.getReverseGlyphMap(), array.array("B", data[2:2+numGlyphs]))
54 numGlyphs = ttFont['maxp'].numGlyphs
56 self.recordSize = 4 * ((2 + numGlyphs + 3) // 4)
57 pad = (self.recordSize - 2 - numGlyphs) * b"\0"
DT_S_I__5.py17 numGlyphs = ttFont['maxp'].numGlyphs
18 assert len(data) == 2 * numGlyphs
23 for i in range(numGlyphs):
DT_S_I__0.py24 numGlyphs = ttFont['maxp'].numGlyphs
27 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)
DsbixStrike.py48 …self.numGlyphs = (firstGlyphDataOffset - sbixStrikeHeaderFormatSize) // sbixGlyphDataOffsetFormatS…
53 for i in range(self.numGlyphs + 1): # + 1 because there's one more offset than glyphs
59 for i in range(self.numGlyphs):
64 del self.numGlyphs
D_l_o_c_a.py30 if len(locations) < (ttFont['maxp'].numGlyphs + 1):
32 len(locations) - 1, ttFont['maxp'].numGlyphs)
DE_B_L_C_.py437 numGlyphs = self.lastGlyphIndex - self.firstGlyphIndex + 1
438 indexingOffsets = [glyphIndex * offsetDataSize for glyphIndex in range(numGlyphs+2)]
555 (numGlyphs,) = struct.unpack(">L", self.data[:4])
557 indexingOffsets = [glyphIndex * codeOffsetPairSize for glyphIndex in range(numGlyphs+2)]
599 (numGlyphs,) = struct.unpack(">L", data[:4])
601 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.py27 def makeFont(self, numGlyphs, numberOfMetrics): argument
30 maxp.numGlyphs = numGlyphs
32 font.glyphOrder = [chr(i) for i in range(65, 65+numGlyphs)]
40 font = self.makeFont(numGlyphs=3, numberOfMetrics=3)
51 font = self.makeFont(numGlyphs=4, numberOfMetrics=2)
66 font = self.makeFont(numGlyphs=1, numberOfMetrics=1)
74 font = self.makeFont(numGlyphs=1, numberOfMetrics=1)
85 font = self.makeFont(numGlyphs=1, numberOfMetrics=2)
97 font = self.makeFont(numGlyphs=1, numberOfMetrics=1)
113 maxp.numGlyphs = 3
[all …]
DT_S_I__0_test.py65 def test_decompile(table, numGlyphs, data, expected_indices, argument
67 font = {'maxp': SimpleNamespace(numGlyphs=numGlyphs)}
71 assert len(table.indices) == numGlyphs
85 def test_compile(table, numGlyphs, indices, extra_indices, expected_data): argument
/external/skia/modules/skshaper/src/
DSkShaper_primitive.cpp176 int numGlyphs = SkUTF::CountUTF8(utf8text, bytesVisible); in shape() local
183 const auto buffer = handler->newRunBuffer(info, font, numGlyphs, in shape()
186 memcpy(buffer.glyphs, glyphs.get() + glyphOffset, numGlyphs * sizeof(SkGlyphID)); in shape()
188 for (int i = 0; i < numGlyphs; ++i) { in shape()
194 for (int i = 0; i < numGlyphs; ++i) { in shape()
/external/harfbuzz_ng/src/
Dhb-ot-maxp-table.hh76 unsigned int get_num_glyphs () const { return numGlyphs; } in get_num_glyphs()
80 numGlyphs.set (count); in set_num_glyphs()
135 HBUINT16 numGlyphs; /* The number of glyphs in the font. */ member
/external/fonttools/Lib/fontTools/ttLib/
Dwoff2.py239 numGlyphs = self.ttFont['maxp'].numGlyphs
240 glyphOrder = ['.notdef'] + ["glyph%.5d" % i for i in range(1, numGlyphs)]
623 bboxBitmapSize = ((self.numGlyphs + 31) >> 5) << 2
630 assert len(self.nContourStream) == self.numGlyphs
640 self.glyphOrder.extend(["glyph%.5d" % i for i in range(1, self.numGlyphs)])
642 if len(self.glyphOrder) != self.numGlyphs:
645 (len(self.glyphOrder), self.numGlyphs))
654 self.numGlyphs = len(self.glyphs)
662 self.glyphOrder.extend(["glyph%.5d" % i for i in range(1, self.numGlyphs)])
663 if len(self.glyphOrder) != self.numGlyphs:
[all …]
/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.h121 SK_OT_ULONG numGlyphs; member
133 SK_OT_ULONG numGlyphs; member
/external/skqp/src/sfnt/
DSkOTTable_maxp_CFF.h20 SK_OT_USHORT numGlyphs; member
27 static_assert(offsetof(SkOTTableMaximumProfile_CFF, numGlyphs) == 4, "SkOTTableMaximumProfile_CFF_n…
DSkOTTable_EBLC.h121 SK_OT_ULONG numGlyphs; member
133 SK_OT_ULONG numGlyphs; member
/external/icu/icu4c/source/test/perf/leperf/
DFontObject.cpp24 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()
DFontObject.h138 le_uint16 numGlyphs; member
233 le_uint16 numGlyphs; variable
/external/icu/icu4c/source/test/letest/
DFontObject.cpp20 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()
DFontObject.h134 le_uint16 numGlyphs; member
229 le_uint16 numGlyphs; variable
/external/freetype/src/sfnt/
Dttpost.c183 if ( num_glyphs > face->max_profile.numGlyphs ) in load_format_20()
332 if ( num_glyphs > face->max_profile.numGlyphs || in load_format_25()
504 if ( idx >= (FT_UInt)face->max_profile.numGlyphs ) in tt_face_get_ps_name()
/external/fonttools/Lib/fontTools/cffLib/
D__init__.py803 def __init__(self, file=None, numGlyphs=None, format=None): argument
809 self.gidArray = array("B", file.read(numGlyphs)).tolist()
811 gidArray = [None] * numGlyphs
1282 numGlyphs = parent.numGlyphs
1288 charset = parseCharset0(numGlyphs, file, parent.strings, isCID)
1290 charset = parseCharset(numGlyphs, file, parent.strings, isCID, format)
1293 assert len(charset) == numGlyphs
1307 if charset and (len(charset) != parent.numGlyphs):
1308 charset = charset[:parent.numGlyphs]
1427 def parseCharset0(numGlyphs, file, strings, isCID): argument
[all …]

123