Searched refs:numberOfMetrics (Results 1 – 2 of 2) sorted by relevance
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | _h_m_t_x.py | 28 numberOfMetrics = int(getattr(headerTable, self.numberOfMetricsName)) 30 numberOfMetrics = numGlyphs 31 if numberOfMetrics > numGlyphs: 34 numberOfMetrics = numGlyphs 35 if len(data) < 4 * numberOfMetrics: 40 metricsFmt = ">" + self.longMetricFormat * numberOfMetrics 41 metrics = struct.unpack(metricsFmt, data[:4 * numberOfMetrics]) 42 data = data[4 * numberOfMetrics:] 43 numberOfSideBearings = numGlyphs - numberOfMetrics 52 for i in range(numberOfMetrics): [all …]
|
/external/fonttools/Tests/ttLib/tables/ |
D | _h_m_t_x_test.py | 27 def makeFont(self, numGlyphs, numberOfMetrics): argument 36 setattr(font[headerTag], numberOfMetricsName, numberOfMetrics) 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) 133 font = self.makeFont(numGlyphs=3, numberOfMetrics=4) 150 font = self.makeFont(numGlyphs=4, numberOfMetrics=1) [all …]
|