Searched refs:numberOfMetrics (Results 1 – 2 of 2) sorted by relevance
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | _h_m_t_x.py | 26 numberOfMetrics = int(getattr(headerTable, self.numberOfMetricsName)) 28 numberOfMetrics = numGlyphs 29 if numberOfMetrics > numGlyphs: 32 numberOfMetrics = numGlyphs 33 if len(data) < 4 * numberOfMetrics: 38 metricsFmt = ">" + self.longMetricFormat * numberOfMetrics 39 metrics = struct.unpack(metricsFmt, data[:4 * numberOfMetrics]) 40 data = data[4 * numberOfMetrics:] 41 numberOfSideBearings = numGlyphs - numberOfMetrics 50 for i in range(numberOfMetrics): [all …]
|
/external/fonttools/Tests/ttLib/tables/ |
D | _h_m_t_x_test.py | 24 def makeFont(self, numGlyphs, numberOfMetrics): argument 33 setattr(font[headerTag], numberOfMetricsName, numberOfMetrics) 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) 130 font = self.makeFont(numGlyphs=3, numberOfMetrics=4) 147 font = self.makeFont(numGlyphs=4, numberOfMetrics=1) [all …]
|