Lines Matching refs:unitsPerEm
50 static inline float scaleEmToUnits(float x, unsigned unitsPerEm) { return unitsPerEm ? x / static_cast<float>(unitsPerEm) : x; }
66 unsigned unitsPerEm = CGFontGetUnitsPerEm(font);
68 float fAscent = scaleEmToUnits(iAscent, unitsPerEm) * pointSize;
69 float fDescent = -scaleEmToUnits(iDescent, unitsPerEm) * pointSize;
70 float fLineGap = scaleEmToUnits(iLineGap, unitsPerEm) * pointSize;
107 m_fontMetrics.setXHeight(scaleEmToUnits(CGRectGetMaxY(xBox), unitsPerEm) * pointSize);
110 m_fontMetrics.setXHeight(scaleEmToUnits(iXHeight, unitsPerEm) * pointSize);
113 m_fontMetrics.setUnitsPerEm(unitsPerEm);
133 CGFloat scale = pointSize / fontMetrics().unitsPerEm();