Home
last modified time | relevance | path

Searched refs:SkScalarFromCGFloat (Results 1 – 4 of 4) sorted by relevance

/external/skia/src/ports/
DSkScalerContext_mac_ct.cpp672 metrics->fTop = SkScalarFromCGFloat(-SkCGRectGetMaxY(theBounds)); in generateFontMetrics()
673 metrics->fAscent = SkScalarFromCGFloat(-CTFontGetAscent(fCTFont.get())); in generateFontMetrics()
674 metrics->fDescent = SkScalarFromCGFloat( CTFontGetDescent(fCTFont.get())); in generateFontMetrics()
675 metrics->fBottom = SkScalarFromCGFloat(-SkCGRectGetMinY(theBounds)); in generateFontMetrics()
676 metrics->fLeading = SkScalarFromCGFloat( CTFontGetLeading(fCTFont.get())); in generateFontMetrics()
677 metrics->fAvgCharWidth = SkScalarFromCGFloat( SkCGRectGetWidth(theBounds)); in generateFontMetrics()
678 metrics->fXMin = SkScalarFromCGFloat( SkCGRectGetMinX(theBounds)); in generateFontMetrics()
679 metrics->fXMax = SkScalarFromCGFloat( SkCGRectGetMaxX(theBounds)); in generateFontMetrics()
681 metrics->fXHeight = SkScalarFromCGFloat( CTFontGetXHeight(fCTFont.get())); in generateFontMetrics()
682 metrics->fCapHeight = SkScalarFromCGFloat( CTFontGetCapHeight(fCTFont.get())); in generateFontMetrics()
[all …]
DSkTypeface_mac_ct.cpp614 r.setLTRB(SkScalarFromCGFloat(SkCGRectGetMinX(bbox)), // Left in onGetAdvancedMetrics()
615 SkScalarFromCGFloat(SkCGRectGetMaxY(bbox)), // Top in onGetAdvancedMetrics()
616 SkScalarFromCGFloat(SkCGRectGetMaxX(bbox)), // Right in onGetAdvancedMetrics()
617 SkScalarFromCGFloat(SkCGRectGetMinY(bbox))); // Bottom in onGetAdvancedMetrics()
823 coordinates[i].value = SkScalarFromCGFloat(valueCGFloat); in onGetVariationDesignPosition()
/external/skia/src/utils/mac/
DSkCGBase.h28 static inline SkScalar SkScalarFromCGFloat(CGFloat cgFloat) { in SkScalarFromCGFloat() function
/external/skia/modules/skshaper/src/
DSkShaper_coretext.cpp298 buffer.point.fX + SkScalarFromCGFloat(positions[k].x) - lineAdvance, in shape()