Home
last modified time | relevance | path

Searched refs:glyphID (Results 1 – 25 of 81) sorted by relevance

1234

/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/
DClassTable.java23 private int glyphID; field in ClassTable.ClassEntry
26 public ClassEntry(int glyphID, int classID) in ClassEntry() argument
28 this.glyphID = glyphID; in ClassEntry()
34 return glyphID; in getGlyphID()
44 return this.glyphID - that.glyphID; in compareTo()
68 public static int search(ClassEntry[] table, int glyphID) in search() argument
76 if (table[extra].glyphID <= glyphID) { in search()
83 if (table[index + probe].glyphID <= glyphID) { in search()
88 if (table[index].glyphID == glyphID) { in search()
149 public int getGlyphClassID(int glyphID) in getGlyphClassID() argument
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
D_p_o_s_t.py91 for glyphID in range(numGlyphs):
92 index = indices[glyphID]
101 glyphOrder[glyphID] = name
159 for glyphID in range(numGlyphs):
160 glyphName = glyphOrder[glyphID]
183 for glyphID in glyphOrder:
184 glyphID = glyphID.split('#')[0]
185 if glyphID in agl.AGL2UV:
186 indices.append(agl.AGL2UV[glyphID])
187 elif len(glyphID) == 7 and glyphID[:3] == 'uni':
[all …]
DT_S_I__0.py15 def fixlongs(glyphID, textLength, textOffset): argument
16 return int(glyphID), int(textLength), textOffset
28 glyphID, textLength, textOffset = fixlongs(*struct.unpack(tsi0Format, data[:size]))
29 indices.append((glyphID, textLength, textOffset))
DotTables.py421 return [font.getGlyphName(glyphID)
422 for glyphID in reader.readUShortArray(count)]
484 glyphID = font.getGlyphID(glyph)
485 result += struct.pack(">H", glyphID)
550 glyphs.extend(glyphOrder[glyphID] for glyphID in range(startID, endID))
569 for glyphID in glyphIDs[1:]:
570 if glyphID != last + 1:
572 ranges.append([glyphID])
573 last = glyphID
703 outGIDS = [ (glyphID + delta) % 65536 for glyphID in inputGIDS ]
[all …]
D_c_m_a_p.py618 glyphID = cmap[code]
620 if glyphID - 1 == lastID:
630 lastID = glyphID
733 glyphID = glyphIndexArray[index] + delta
735 glyphID = 0 # missing glyph
736 gids.append(glyphID & 0xFFFF)
944 startCharCode, endCharCode, glyphID = struct.unpack(">LLL",data[pos:pos+12] )
948 gids.extend(self._computeGIDs(glyphID, lenGroup))
996 glyphID = cmap[charCode]
997 if not self._IsInSameRun(glyphID, lastGlyphID, charCode, lastCharCode):
[all …]
DT_S_I__1.py25 for i, (glyphID, textLength, textOffset) in enumerate(indices):
27 name = self.extras[glyphID]
29 name = ttFont.getGlyphName(glyphID)
/external/skia/tools/fonts/
DSkTestTypeface.cpp104 SkGlyphID glyphID = glyph->getGlyphID(); in getAdvance() local
105 glyphID = glyphID < fTestFont->fCharCodesCount ? glyphID : 0; in getAdvance()
108 glyph->fAdvanceX = SkFixedToFloat(fTestFont->fWidths[glyphID]); in getAdvance()
116 void SkTestTypeface::getPath(SkGlyphID glyphID, SkPath* path) { in getPath() argument
117 glyphID = glyphID < fTestFont->fCharCodesCount ? glyphID : 0; in getPath()
118 *path = *fTestFont->fPaths[glyphID]; in getPath()
DSkTestSVGTypeface.cpp92 SkGlyphID glyphID = glyph->getGlyphID(); in getAdvance() local
93 glyphID = glyphID < fGlyphCount ? glyphID : 0; in getAdvance()
95 glyph->fAdvanceX = fGlyphs[glyphID].fAdvance; in getAdvance()
193 SkGlyphID glyphID = glyph->getGlyphID(); in generateMetrics() local
194 glyphID = glyphID < this->getTestSVGTypeface()->fGlyphCount ? glyphID : 0; in generateMetrics()
200 SkTestSVGTypeface::Glyph& glyphData = this->getTestSVGTypeface()->fGlyphs[glyphID]; in generateMetrics()
222 SkGlyphID glyphID = glyph.getGlyphID(); in generateImage() local
223 glyphID = glyphID < this->getTestSVGTypeface()->fGlyphCount ? glyphID : 0; in generateImage()
231 SkTestSVGTypeface::Glyph& glyphData = this->getTestSVGTypeface()->fGlyphs[glyphID]; in generateImage()
/external/skqp/tools/fonts/
DSkTestTypeface.cpp104 SkGlyphID glyphID = glyph->getGlyphID(); in getAdvance() local
105 glyphID = glyphID < fTestFont->fCharCodesCount ? glyphID : 0; in getAdvance()
108 glyph->fAdvanceX = SkFixedToFloat(fTestFont->fWidths[glyphID]); in getAdvance()
116 void SkTestTypeface::getPath(SkGlyphID glyphID, SkPath* path) { in getPath() argument
117 glyphID = glyphID < fTestFont->fCharCodesCount ? glyphID : 0; in getPath()
118 *path = *fTestFont->fPaths[glyphID]; in getPath()
DSkTestSVGTypeface.cpp92 SkGlyphID glyphID = glyph->getGlyphID(); in getAdvance() local
93 glyphID = glyphID < fGlyphCount ? glyphID : 0; in getAdvance()
95 glyph->fAdvanceX = fGlyphs[glyphID].fAdvance; in getAdvance()
195 SkGlyphID glyphID = glyph->getGlyphID(); in generateMetrics() local
196 glyphID = glyphID < this->geTestSVGTypeface()->fGlyphCount ? glyphID : 0; in generateMetrics()
202 SkTestSVGTypeface::Glyph& glyphData = this->geTestSVGTypeface()->fGlyphs[glyphID]; in generateMetrics()
224 SkGlyphID glyphID = glyph.getGlyphID(); in generateImage() local
225 glyphID = glyphID < this->geTestSVGTypeface()->fGlyphCount ? glyphID : 0; in generateImage()
233 SkTestSVGTypeface::Glyph& glyphData = this->geTestSVGTypeface()->fGlyphs[glyphID]; in generateImage()
/external/fonttools/Lib/fontTools/ttLib/
DttFont.py546 def getGlyphName(self, glyphID, requireReal=False): argument
548 return self.getGlyphOrder()[glyphID]
553 return "glyph%.5d" % glyphID
557 glyphName = self.VIDDict[glyphID]
559 glyphName ="glyph%.5d" % glyphID
560 self.last_vid = min(glyphID, self.last_vid )
561 self.reverseVIDDict[glyphName] = glyphID
562 self.VIDDict[glyphID] = glyphName
587 glyphID = self.reverseVIDDict[glyphName]
592 glyphID = int(glyphName[5:])
[all …]
Dwoff2.py648 for glyphID, glyphName in enumerate(self.glyphOrder):
649 glyph = self._decodeGlyph(glyphID)
677 for glyphID in range(self.numGlyphs):
678 self._encodeGlyph(glyphID)
688 def _decodeGlyph(self, glyphID): argument
690 glyph.numberOfContours = self.nContourStream[glyphID]
697 self._decodeBBox(glyphID, glyph)
736 def _decodeBBox(self, glyphID, glyph): argument
737 haveBBox = bool(self.bboxBitmap[glyphID >> 3] & (0x80 >> (glyphID & 7)))
739 raise TTLibError('no bbox values for composite glyph %d' % glyphID)
[all …]
/external/skia/src/core/
DSkStrike.cpp57 bool SkStrike::isGlyphCached(SkGlyphID glyphID, SkFixed x, SkFixed y) const { in isGlyphCached() argument
58 SkPackedGlyphID packedGlyphID{glyphID, x, y}; in isGlyphCached()
66 const SkGlyph& SkStrike::getGlyphIDAdvance(uint16_t glyphID) { in getGlyphIDAdvance() argument
68 SkPackedGlyphID packedGlyphID(glyphID); in getGlyphIDAdvance()
72 const SkGlyph& SkStrike::getGlyphIDMetrics(uint16_t glyphID) { in getGlyphIDMetrics() argument
74 SkPackedGlyphID packedGlyphID(glyphID); in getGlyphIDMetrics()
78 const SkGlyph& SkStrike::getGlyphIDMetrics(uint16_t glyphID, SkFixed x, SkFixed y) { in getGlyphIDMetrics() argument
80 SkPackedGlyphID packedGlyphID(glyphID, x, y); in getGlyphIDMetrics()
85 for (auto glyphID : glyphIDs) { in getAdvances() local
86 auto glyph = this->getGlyphIDAdvance(glyphID); in getAdvances()
[all …]
DSkRemoteGlyphCache.cpp481 for (const auto& glyphID : fPendingGlyphImages) { in writePendingGlyphs() local
482 SkGlyph glyph{glyphID}; in writePendingGlyphs()
498 for (const auto& glyphID : fPendingGlyphPaths) { in writePendingGlyphs() local
499 SkGlyph glyph{glyphID}; in writePendingGlyphs()
502 writeGlyphPath(glyphID, serializer); in writePendingGlyphs()
534 SkGlyphID glyphID, SkPoint position) { in getGlyphMetrics() argument
536 SkPackedGlyphID packedGlyphID = fIsSubpixel ? SkPackedGlyphID{glyphID, lookupPoint} in getGlyphMetrics()
537 : SkPackedGlyphID{glyphID}; in getGlyphMetrics()
585 void SkStrikeServer::SkGlyphCacheState::writeGlyphPath(const SkPackedGlyphID& glyphID, in writeGlyphPath() argument
588 if (!fContext->getPath(glyphID, &path)) { in writeGlyphPath()
[all …]
DSkGlyphRun.cpp131 for (auto glyphID : glyphIDs) { in uniquifyGlyphIDs() local
134 if (glyphID >= universeSize) { in uniquifyGlyphIDs()
135 glyphID = kUndefGlyph; in uniquifyGlyphIDs()
139 auto uniqueIndex = fUniverseToUnique[glyphID]; in uniquifyGlyphIDs()
141 if (uniqueIndex >= uniqueSize || uniqueGlyphIDs[uniqueIndex] != glyphID) { in uniquifyGlyphIDs()
143 uniqueGlyphIDs[uniqueSize] = glyphID; in uniquifyGlyphIDs()
144 fUniverseToUnique[glyphID] = uniqueIndex; in uniquifyGlyphIDs()
DSkStrikeCache.cpp35 const SkGlyph& getGlyphMetrics(SkGlyphID glyphID, SkPoint position) override { in getGlyphMetrics() argument
36 return fStrike.getGlyphMetrics(glyphID, position); in getGlyphMetrics()
368 SkGlyphID glyphID = glyph->getGlyphID(); in desperationSearchForImage() local
374 auto targetGlyphID = SkPackedGlyphID(glyphID, targetSubX, targetSubY); in desperationSearchForImage()
375 if (node->fStrike.isGlyphCached(glyphID, targetSubX, targetSubY)) { in desperationSearchForImage()
385 if (const auto* fallback = node->fStrike.getCachedGlyphAnySubPix(glyphID)) { in desperationSearchForImage()
396 const SkDescriptor& desc, SkGlyphID glyphID, SkPath* path) { in desperationSearchForPath() argument
407 if (node->fStrike.isGlyphCached(glyphID, 0, 0)) { in desperationSearchForPath()
408 SkGlyph* from = node->fStrike.getRawGlyphByID(SkPackedGlyphID(glyphID)); in desperationSearchForPath()
DSkGlyphRunPainter.cpp198 for (auto glyphID : glyphRun.glyphsIDs()) { in drawForBitmapDevice() local
201 const SkGlyph& glyph = pathCache->getGlyphMetrics(glyphID, {0, 0}); in drawForBitmapDevice()
234 for (auto glyphID : glyphRun.glyphsIDs()) { in drawForBitmapDevice() local
237 const SkGlyph& glyph = cache->getGlyphMetrics(glyphID, position); in drawForBitmapDevice()
354 for (SkGlyphID glyphID : fARGBGlyphsIDs) { in processARGBFallback() local
356 const SkGlyph& glyph = strike->getGlyphMetrics(glyphID, {0, 0}); in processARGBFallback()
417 for (auto glyphID : glyphRun.glyphsIDs()) { in processGlyphRunList() local
418 const SkGlyph& glyph = strike->getGlyphMetrics(glyphID, {0, 0}); in processGlyphRunList()
434 fARGBGlyphsIDs.push_back(glyphID); in processGlyphRunList()
494 for (auto glyphID : glyphRun.glyphsIDs()) { in processGlyphRunList() local
[all …]
/external/skqp/src/core/
DSkStrike.cpp57 bool SkStrike::isGlyphCached(SkGlyphID glyphID, SkFixed x, SkFixed y) const { in isGlyphCached() argument
58 SkPackedGlyphID packedGlyphID{glyphID, x, y}; in isGlyphCached()
66 const SkGlyph& SkStrike::getGlyphIDAdvance(uint16_t glyphID) { in getGlyphIDAdvance() argument
68 SkPackedGlyphID packedGlyphID(glyphID); in getGlyphIDAdvance()
72 const SkGlyph& SkStrike::getGlyphIDMetrics(uint16_t glyphID) { in getGlyphIDMetrics() argument
74 SkPackedGlyphID packedGlyphID(glyphID); in getGlyphIDMetrics()
78 const SkGlyph& SkStrike::getGlyphIDMetrics(uint16_t glyphID, SkFixed x, SkFixed y) { in getGlyphIDMetrics() argument
80 SkPackedGlyphID packedGlyphID(glyphID, x, y); in getGlyphIDMetrics()
85 for (auto glyphID : glyphIDs) { in getAdvances() local
86 auto glyph = this->getGlyphIDAdvance(glyphID); in getAdvances()
[all …]
DSkRemoteGlyphCache.cpp474 for (const auto& glyphID : fPendingGlyphImages) { in writePendingGlyphs() local
475 SkGlyph glyph{glyphID}; in writePendingGlyphs()
491 for (const auto& glyphID : fPendingGlyphPaths) { in writePendingGlyphs() local
492 SkGlyph glyph{glyphID}; in writePendingGlyphs()
495 writeGlyphPath(glyphID, serializer); in writePendingGlyphs()
501 const SkGlyph& SkStrikeServer::SkGlyphCacheState::findGlyph(SkPackedGlyphID glyphID) { in findGlyph() argument
502 SkGlyph* glyphPtr = fGlyphMap.findOrNull(glyphID); in findGlyph()
504 glyphPtr = fAlloc.make<SkGlyph>(glyphID); in findGlyph()
536 SkGlyphID glyphID, SkPoint position) { in getGlyphMetrics() argument
538 SkPackedGlyphID packedGlyphID = fIsSubpixel ? SkPackedGlyphID{glyphID, lookupPoint} in getGlyphMetrics()
[all …]
DSkGlyphRunPainter.cpp184 for (auto glyphID : glyphRun.glyphsIDs()) { in drawForBitmapDevice() local
187 const SkGlyph& glyph = pathCache->getGlyphMetrics(glyphID, {0, 0}); in drawForBitmapDevice()
220 for (auto glyphID : glyphRun.glyphsIDs()) { in drawForBitmapDevice() local
223 const SkGlyph& glyph = cache->getGlyphMetrics(glyphID, position); in drawForBitmapDevice()
344 for (auto glyphID : glyphRun.glyphsIDs()) { in drawGlyphRunAsPathWithARGBFallback() local
346 const SkGlyph& glyph = pathCache->getGlyphMetrics(glyphID, {0, 0}); in drawGlyphRunAsPathWithARGBFallback()
358 fARGBGlyphsIDs.push_back(glyphID); in drawGlyphRunAsPathWithARGBFallback()
389 for (auto glyphID : glyphRun.glyphsIDs()) { in drawGlyphRunAsBMPWithPathFallback() local
393 [glyphID](const SkGlyph* g) { return g->getGlyphID() == glyphID; })) { in drawGlyphRunAsBMPWithPathFallback()
398 const SkGlyph& glyph = cache->getGlyphMetrics(glyphID, mappedPt); in drawGlyphRunAsBMPWithPathFallback()
[all …]
DSkGlyphRun.cpp131 for (auto glyphID : glyphIDs) { in uniquifyGlyphIDs() local
134 if (glyphID >= universeSize) { in uniquifyGlyphIDs()
135 glyphID = kUndefGlyph; in uniquifyGlyphIDs()
139 auto uniqueIndex = fUniverseToUnique[glyphID]; in uniquifyGlyphIDs()
141 if (uniqueIndex >= uniqueSize || uniqueGlyphIDs[uniqueIndex] != glyphID) { in uniquifyGlyphIDs()
143 uniqueGlyphIDs[uniqueSize] = glyphID; in uniquifyGlyphIDs()
144 fUniverseToUnique[glyphID] = uniqueIndex; in uniquifyGlyphIDs()
DSkStrikeCache.cpp35 const SkGlyph& getGlyphMetrics(SkGlyphID glyphID, SkPoint position) override { in getGlyphMetrics() argument
36 return fCache.getGlyphMetrics(glyphID, position); in getGlyphMetrics()
343 SkGlyphID glyphID = glyph->getGlyphID(); in desperationSearchForImage() local
349 auto targetGlyphID = SkPackedGlyphID(glyphID, targetSubX, targetSubY); in desperationSearchForImage()
350 if (node->fCache.isGlyphCached(glyphID, targetSubX, targetSubY)) { in desperationSearchForImage()
360 if (const auto* fallback = node->fCache.getCachedGlyphAnySubPix(glyphID)) { in desperationSearchForImage()
371 const SkDescriptor& desc, SkGlyphID glyphID, SkPath* path) { in desperationSearchForPath() argument
382 if (node->fCache.isGlyphCached(glyphID, 0, 0)) { in desperationSearchForPath()
383 SkGlyph* from = node->fCache.getRawGlyphByID(SkPackedGlyphID(glyphID)); in desperationSearchForPath()
/external/fonttools/Lib/fontTools/misc/
DtestTools.py64 def getGlyphName(self, glyphID): argument
65 if glyphID < len(self.glyphOrder_):
66 return self.glyphOrder_[glyphID]
68 return "glyph%.5d" % glyphID
/external/skia/gm/
Dpoly2poly.cpp57 uint16_t glyphID = 3; // X in doDraw() local
58 SkTextUtils::Draw(canvas, &glyphID, sizeof(glyphID), kGlyphID_SkTextEncoding, x, y, in doDraw()
/external/harfbuzz_ng/src/
Dhb-ot-cmap-table.hh415 HBUINT32 glyphID; /* Glyph index; interpretation depends on member
518 group.glyphID + (u - group.startCharCode) : 0; } in group_get_glyph()
557 group->glyphID.set (new_gid); in create_sub_table_plan()
565 …artCharCode, (uint32_t) group.endCharCode, (uint32_t) group.glyphID, (uint32_t) group.glyphID + ((… in create_sub_table_plan()
577 new_gid == group->glyphID + (cp - group->startCharCode); in _is_gid_consecutive()
586 { return group.glyphID; } in group_get_glyph()
650 GlyphID glyphID; /* Glyph ID of the UVS */ member
661 out->add (arrayZ[i].glyphID); in collect_unicodes()
677 if (nonDefault.glyphID) in get_glyph()
679 *glyph = nonDefault.glyphID; in get_glyph()

1234