Lines Matching refs:unitsPerEm
59 static inline float scaleEmToUnits(float x, unsigned unitsPerEm) { return x / unitsPerEm; }
221 unsigned unitsPerEm;
223 wkGetFontMetrics(m_platformData.cgFont(), &iAscent, &iDescent, &iLineGap, &unitsPerEm);
228 unitsPerEm = CGFontGetUnitsPerEm(m_platformData.cgFont());
232 float ascent = scaleEmToUnits(iAscent, unitsPerEm) * pointSize;
233 float descent = -scaleEmToUnits(iDescent, unitsPerEm) * pointSize;
234 float lineGap = scaleEmToUnits(iLineGap, unitsPerEm) * pointSize;
287 xHeight = scaleEmToUnits(CGFontGetXHeight(m_platformData.cgFont()), unitsPerEm) * pointSize;
291 m_fontMetrics.setUnitsPerEm(unitsPerEm);
332 m_avgCharWidth = scaleEmToUnits(os2AvgCharWidth, m_fontMetrics.unitsPerEm()) * m_platformData.m_size;
343 m_maxCharWidth = scaleEmToUnits(diff, m_fontMetrics.unitsPerEm()) * m_platformData.m_size;