Lines Matching refs:CGToScalar
278 static SkScalar CGToScalar(CGFloat cgFloat) { in CGToScalar() function
938 SkPoint skVertOffset = { CGToScalar(cgVertOffset.width), CGToScalar(cgVertOffset.height) }; in getVerticalOffset()
945 SkPoint skVertOffset = { CGToScalar(cgVertOffset.width), CGToScalar(cgVertOffset.height) }; in getVerticalOffset()
1404 metrics->fTop = CGToScalar(-CGRectGetMaxY_inline(theBounds)); in generateFontMetrics()
1405 metrics->fAscent = CGToScalar(-CTFontGetAscent(fCTFont)); in generateFontMetrics()
1406 metrics->fDescent = CGToScalar( CTFontGetDescent(fCTFont)); in generateFontMetrics()
1407 metrics->fBottom = CGToScalar(-CGRectGetMinY_inline(theBounds)); in generateFontMetrics()
1408 metrics->fLeading = CGToScalar( CTFontGetLeading(fCTFont)); in generateFontMetrics()
1409 metrics->fAvgCharWidth = CGToScalar( CGRectGetWidth_inline(theBounds)); in generateFontMetrics()
1410 metrics->fXMin = CGToScalar( CGRectGetMinX_inline(theBounds)); in generateFontMetrics()
1411 metrics->fXMax = CGToScalar( CGRectGetMaxX_inline(theBounds)); in generateFontMetrics()
1413 metrics->fXHeight = CGToScalar( CTFontGetXHeight(fCTFont)); in generateFontMetrics()
1414 metrics->fCapHeight = CGToScalar( CTFontGetCapHeight(fCTFont)); in generateFontMetrics()
1415 metrics->fUnderlineThickness = CGToScalar( CTFontGetUnderlineThickness(fCTFont)); in generateFontMetrics()
1416 metrics->fUnderlinePosition = -CGToScalar( CTFontGetUnderlinePosition(fCTFont)); in generateFontMetrics()
1615 r.set( CGToScalar(CGRectGetMinX_inline(bbox)), // Left in onGetAdvancedTypefaceMetrics()
1616 CGToScalar(CGRectGetMaxY_inline(bbox)), // Top in onGetAdvancedTypefaceMetrics()
1617 CGToScalar(CGRectGetMaxX_inline(bbox)), // Right in onGetAdvancedTypefaceMetrics()
1618 CGToScalar(CGRectGetMinY_inline(bbox))); // Bottom in onGetAdvancedTypefaceMetrics()